Skip to content

Commit

Permalink
dbgutil: allow passing gdb expressions to oro tt at/virt
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- committed Sep 12, 2024
1 parent e4e7ec9 commit d2f89ff
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dbgutil/oro_debug_suite/cmd/tt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit d2f89ff

Please sign in to comment.