Fix windbg's "bp" command alias (#2798)

Fixes #2797
pull/2805/head
Disconnect3d 9 months ago committed by GitHub
parent a229b298da
commit d1b754dbb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -414,12 +414,7 @@ if pwndbg.dbg.is_gdblib_available():
@pwndbg.commands.ArgparsedCommand(parser, category=CommandCategory.WINDBG) @pwndbg.commands.ArgparsedCommand(parser, category=CommandCategory.WINDBG)
def bp(where) -> None: def bp(where) -> None:
""" gdb.execute(f"break *{where:#x}")
Set a breakpoint at the specified address.
"""
result = pwndbg.commands.fix(where)
if result is not None:
gdb.execute("break *%#x" % int(result))
@pwndbg.commands.ArgparsedCommand( @pwndbg.commands.ArgparsedCommand(
"Print a backtrace (alias 'bt').", category=CommandCategory.WINDBG "Print a backtrace (alias 'bt').", category=CommandCategory.WINDBG

Loading…
Cancel
Save