From 419247f795ab7da151b407e0ff80d5a7bd43a99b Mon Sep 17 00:00:00 2001
From: pompolic <pompolic@special-circumstanc.es>
Date: Wed, 16 Nov 2022 16:17:51 +0100
Subject: [PATCH] This exception is no longer likely to be a dependency issue

---
 gdb-port/utility-commands.py | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/gdb-port/utility-commands.py b/gdb-port/utility-commands.py
index 30bb43e..77a30e6 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):
-- 
GitLab