parameters: (
          test,
          symbol,
          extra_options=None,
          num_expected_locations=-1,
          sym_exact=False,
          module_name=None)
return_statement: return get_bpno_from_match(break_results)
docstring: Set a breakpoint by symbol name.  Common options are the same as run_break_set_by_file_and_line.
  
      If sym_exact is true, then the output symbol must match the input exactly, otherwise we do a substring match.
docstring_summary: Set a breakpoint by symbol name.  Common options are the same as run_break_set_by_file_and_line.
docstring_tokens: Set a breakpoint by symbol name . Common options are the same as run_break_set_by_file_and_line .
function: def run_break_set_by_symbol(
          test,
          symbol,
          extra_options=None,
          num_expected_locations=-1,
          sym_exact=False,
          module_name=None):
      """Set a breakpoint by symbol name.  Common options are the same as run_break_set_by_file_and_line.
  
      If sym_exact is true, then the output symbol must match the input exactly, otherwise we do a substring match."""
      command = 'breakpoint set -n "%s"' % (symbol)
  
      if module_name:
          command += " --shlib '%s'" % (module_name)
  
      if extra_options:
          command += " " + extra_options
  
      break_results = run_break_set_command(test, command)
  
      if num_expected_locations == 1 and sym_exact:
          check_breakpoint_result(
              test,
              break_results,
              num_locations=num_expected_locations,
              symbol_name=symbol,
              module_name=module_name)
      else:
          check_breakpoint_result(
              test,
              break_results,
              num_locations=num_expected_locations)
  
      return get_bpno_from_match(break_results)
function_tokens: def run_break_set_by_symbol ( test , symbol , extra_options = None , num_expected_locations = - 1 , sym_exact = False , module_name = None ) : command = 'breakpoint set -n "%s"' % ( symbol ) if module_name : command += " --shlib '%s'" % ( module_name ) if extra_options : command += " " + extra_options break_results = run_break_set_command ( test , command ) if num_expected_locations == 1 and sym_exact : check_breakpoint_result ( test , break_results , num_locations = num_expected_locations , symbol_name = symbol , module_name = module_name ) else : check_breakpoint_result ( test , break_results , num_locations = num_expected_locations ) return get_bpno_from_match ( break_results )