diff --git a/gdb-port/commands.py b/gdb-port/commands.py index 9c2e098fc2732bb06be9a417b81c09c3560ac45d..a1559ff9ce8bcbc0e05fb84e98980c7da5d74323 100644 --- a/gdb-port/commands.py +++ b/gdb-port/commands.py @@ -30,7 +30,9 @@ class HammerParserBacktrace(gdb.Command): maxsize = len(parserstack) print("Argument must be a positive integer") - print("[" + str(hex(top_level_parse.h_do_parse_parser.address)) + "] " + top_level_parse.h_do_parse_parser.name + " [current]") #TODO: GUI widget should reflect this + parser_name = top_level_parse.h_do_parse_parser.name or "(Parser type resolution pending)" # TODO: should we just look at the vtable and name the parser in h_do_parse? + + print("[" + str(hex(top_level_parse.h_do_parse_parser.address)) + "] " + parser_name + " [current]") #TODO: GUI widget should reflect this print(" ") depth = min(len(parserstack), maxsize) if depth > 0: # if stack not empty