parameters: (self, line)
return_statement: return frame
docstring: Takes in a single line of text and transforms it into a StackFrame.
docstring_summary: Takes in a single line of text and transforms it into a StackFrame.
docstring_tokens: Takes in a single line of text and transforms it into a StackFrame .
function: def _ParseStackFrame(self, line):
      """Takes in a single line of text and transforms it into a StackFrame."""
      frame = StackFrame(line)
  
      # A stack frame is in the format of:
      # |<frame-number> <binary-image> 0x<address> <symbol> <offset>|.
      regex = '^([0-9]+) +(.+)[ \t]+(0x[0-9a-f]+) (.*) \+ ([0-9]+)$'
      matches = re.match(regex, line)
      if matches is None:
        return frame
  
      # Create a stack frame with the information extracted from the regex.
      frame.frame_id = matches.group(1)
      frame.image = matches.group(2)
      frame.address = int(matches.group(3), 0)  # Convert HEX to an int.
      frame.original_symbol = matches.group(4)
      frame.offset = matches.group(5)
      frame.line = None
      return frame
function_tokens: def _ParseStackFrame ( self , line ) : frame = StackFrame ( line ) # A stack frame is in the format of: # |<frame-number> <binary-image> 0x<address> <symbol> <offset>|. regex = '^([0-9]+) +(.+)[ \t]+(0x[0-9a-f]+) (.*) \+ ([0-9]+)$' matches = re . match ( regex , line ) if matches is None : return frame # Create a stack frame with the information extracted from the regex. frame . frame_id = matches . group ( 1 ) frame . image = matches . group ( 2 ) frame . address = int ( matches . group ( 3 ) , 0 ) # Convert HEX to an int. frame . original_symbol = matches . group ( 4 ) frame . offset = matches . group ( 5 ) frame . line = None return frame