diff --git a/gdb-port/parser-name-instrumentation-gdb.py b/gdb-port/parser-name-instrumentation-gdb.py index 0d9b504cc506fdd02962f5513c01adaa7b45b889..c6120020bd05c97498bc4fb00d76ac36ea0dd5f8 100644 --- a/gdb-port/parser-name-instrumentation-gdb.py +++ b/gdb-port/parser-name-instrumentation-gdb.py @@ -38,6 +38,9 @@ class Parser: else: return bytes_used.setdefault(state, 0) + def __str__(self): + return "(" + str(self.name) + ", " + hex(self.address) + ")" + class ParserStack: def __init__(self, parse_state, arena): self.parse_state = parse_state