diff --git a/gdb-port/utility-commands.py b/gdb-port/utility-commands.py index 30bb43e9555b566290021b20d9bdd06be43cd10a..77a30e680f6ac9066fab9e29e5ed528162607c16 100644 --- a/gdb-port/utility-commands.py +++ b/gdb-port/utility-commands.py @@ -16,17 +16,17 @@ HammerParseStopAtInputPos() # __init__ deliberately omitted, because this is not actually a command we want to register, just inherit from class FlowControlWithPrint(gdb.Command): def conditionally_print_backtrace(self): - try: - if gdb.parameter("hammer-extended-parse-step-info"): - print("Parser stack:") - gdb.execute("hammer-parser-backtrace") - print("Input preview:") - gdb.execute("hammer-parser-preview-input") - except RuntimeError as e: + #try: + if gdb.parameter("hammer-extended-parse-step-info"): + print("Parser stack:") + gdb.execute("hammer-parser-backtrace") + print("Input preview:") + gdb.execute("hammer-parser-preview-input") + #except RuntimeError as e: # This probably means parser-name-instrumentation.py is not loaded. #pass - print("Exception: %s" % e) - print("Probably caused by hammer-extended-parse-step-info parameter not existing") + #print("Exception: %s" % e) + #print("Probably caused by hammer-extended-parse-step-info parameter not existing") # Implements the "step" command for parsing. One step is one invocation of h_do_parse() class HammerParseStep(FlowControlWithPrint):