parameters: (test, command)
return_statement: return break_results
docstring: Run the command passed in - it must be some break set variant - and analyze the result.
      Returns a dictionary of information gleaned from the command-line results.
      Will assert if the breakpoint setting fails altogether.
  
      Dictionary will contain:
          bpno          - breakpoint of the newly created breakpoint, -1 on error.
          num_locations - number of locations set for the breakpoint.
  
      If there is only one location, the dictionary MAY contain:
          file          - source file name
          line_no       - source line number
          symbol        - symbol name
          inline_symbol - inlined symbol name
          offset        - offset from the original symbol
          module        - module
          address       - address at which the breakpoint was set.
docstring_summary: Run the command passed in - it must be some break set variant - and analyze the result.
      Returns a dictionary of information gleaned from the command-line results.
      Will assert if the breakpoint setting fails altogether.
docstring_tokens: Run the command passed in - it must be some break set variant - and analyze the result . Returns a dictionary of information gleaned from the command - line results . Will assert if the breakpoint setting fails altogether .
function: def run_break_set_command(test, command):
      """Run the command passed in - it must be some break set variant - and analyze the result.
      Returns a dictionary of information gleaned from the command-line results.
      Will assert if the breakpoint setting fails altogether.
  
      Dictionary will contain:
          bpno          - breakpoint of the newly created breakpoint, -1 on error.
          num_locations - number of locations set for the breakpoint.
  
      If there is only one location, the dictionary MAY contain:
          file          - source file name
          line_no       - source line number
          symbol        - symbol name
          inline_symbol - inlined symbol name
          offset        - offset from the original symbol
          module        - module
          address       - address at which the breakpoint was set."""
  
      patterns = [
          r"^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$",
          r"^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.",
          r"^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+), address = (?P<address>0x[0-9a-fA-F]+)$",
          r"^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>.*)( \+ (?P<offset>[0-9]+)){0,1}, address = (?P<address>0x[0-9a-fA-F]+)$"]
      match_object = test.match(command, patterns)
      break_results = match_object.groupdict()
  
      # We always insert the breakpoint number, setting it to -1 if we couldn't find it
      # Also, make sure it gets stored as an integer.
      if not 'bpno' in break_results:
          break_results['bpno'] = -1
      else:
          break_results['bpno'] = int(break_results['bpno'])
  
      # We always insert the number of locations
      # If ONE location is set for the breakpoint, then the output doesn't mention locations, but it has to be 1...
      # We also make sure it is an integer.
  
      if not 'num_locations' in break_results:
          num_locations = 1
      else:
          num_locations = break_results['num_locations']
          if num_locations == 'no':
              num_locations = 0
          else:
              num_locations = int(break_results['num_locations'])
  
      break_results['num_locations'] = num_locations
  
      if 'line_no' in break_results:
          break_results['line_no'] = int(break_results['line_no'])
  
      return break_results
function_tokens: def run_break_set_command ( test , command ) : patterns = [ r"^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$" , r"^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\." , r"^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+), address = (?P<address>0x[0-9a-fA-F]+)$" , r"^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>.*)( \+ (?P<offset>[0-9]+)){0,1}, address = (?P<address>0x[0-9a-fA-F]+)$" ] match_object = test . match ( command , patterns ) break_results = match_object . groupdict ( ) # We always insert the breakpoint number, setting it to -1 if we couldn't find it # Also, make sure it gets stored as an integer. if not 'bpno' in break_results : break_results [ 'bpno' ] = - 1 else : break_results [ 'bpno' ] = int ( break_results [ 'bpno' ] ) # We always insert the number of locations # If ONE location is set for the breakpoint, then the output doesn't mention locations, but it has to be 1... # We also make sure it is an integer. if not 'num_locations' in break_results : num_locations = 1 else : num_locations = break_results [ 'num_locations' ] if num_locations == 'no' : num_locations = 0 else : num_locations = int ( break_results [ 'num_locations' ] ) break_results [ 'num_locations' ] = num_locations if 'line_no' in break_results : break_results [ 'line_no' ] = int ( break_results [ 'line_no' ] ) return break_results