From d1b754dbb893551d8af210ca8e2596eaca3a7583 Mon Sep 17 00:00:00 2001 From: Disconnect3d Date: Wed, 26 Mar 2025 12:44:25 +0100 Subject: [PATCH] Fix windbg's "bp" command alias (#2798) Fixes #2797 --- pwndbg/commands/windbg.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pwndbg/commands/windbg.py b/pwndbg/commands/windbg.py index 891f8301b..d4278f57c 100644 --- a/pwndbg/commands/windbg.py +++ b/pwndbg/commands/windbg.py @@ -414,12 +414,7 @@ if pwndbg.dbg.is_gdblib_available(): @pwndbg.commands.ArgparsedCommand(parser, category=CommandCategory.WINDBG) def bp(where) -> None: - """ - Set a breakpoint at the specified address. - """ - result = pwndbg.commands.fix(where) - if result is not None: - gdb.execute("break *%#x" % int(result)) + gdb.execute(f"break *{where:#x}") @pwndbg.commands.ArgparsedCommand( "Print a backtrace (alias 'bt').", category=CommandCategory.WINDBG