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