From a5e762c0c8cc6d662c9095c32e613489e86883dd Mon Sep 17 00:00:00 2001 From: Dejan <21058883+0xhebi@users.noreply.github.com> Date: Sat, 17 Aug 2024 00:53:35 +0200 Subject: [PATCH] resolving address expression for #2271 (#2360) * resolving address expression for #2271 * reverting back to the trivial change, we will still have to deal with rebase as a new issue * Update peda.py --------- Co-authored-by: Disconnect3d --- pwndbg/commands/peda.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pwndbg/commands/peda.py b/pwndbg/commands/peda.py index ef6596b68..92f2da5d8 100644 --- a/pwndbg/commands/peda.py +++ b/pwndbg/commands/peda.py @@ -19,14 +19,14 @@ def getfile() -> None: print(repr(pwndbg.auxv.get().AT_EXECFN)) -parser = argparse.ArgumentParser(description="Continue execution until an address or function.") -parser.add_argument("target", type=str, help="Address or function to stop execution at") +parser = argparse.ArgumentParser(description="Continue execution until an address or expression.") +parser.add_argument("target", type=int, help="Location to stop execution at") @pwndbg.commands.ArgparsedCommand(parser, category=CommandCategory.NEXT) def xuntil(target) -> None: try: - addr = int(target, 0) + addr = target if not pwndbg.gdblib.memory.peek(addr): print(message.error("Invalid address %#x" % addr))