diff --git a/dbgutil/oro_debug_suite/cmd/tt.py b/dbgutil/oro_debug_suite/cmd/tt.py index 6b12d66..7b67209 100644 --- a/dbgutil/oro_debug_suite/cmd/tt.py +++ b/dbgutil/oro_debug_suite/cmd/tt.py @@ -82,8 +82,9 @@ def invoke(self, arg, from_tty=False): return try: - virt = int(args[0], 0) - except ValueError: + virt = int(gdb.parse_and_eval(args[0])) & 0xFFFF_FFFF_FFFF_FFFF + except ValueError as e: + error(f"tt: failed to parse expression: {str(e)}") gdb.execute("help oro tt virt") return @@ -608,8 +609,9 @@ def invoke(self, arg, from_tty=False): return try: - virt = int(args[0], 0) - except ValueError: + virt = int(gdb.parse_and_eval(args[0])) & 0xFFFF_FFFF_FFFF_FFFF + except ValueError as e: + error(f"tt: failed to parse expression: {str(e)}") gdb.execute("help oro tt at") return