How to break on assembly instruction at a given address in gdb?

@Blauhirn Perhaps as a supposed analogy with stepi and nexti , which are used for single-stepping at the instruction level.

Commented Dec 9, 2017 at 21:39

2 Answers 2

try break *0x0000000000400448

answered Mar 28, 2011 at 13:27 3,134 1 1 gold badge 19 19 silver badges 10 10 bronze badges

Probably because * is required to specify an address. see sourceware.org/gdb/current/onlinedocs/gdb/…

Commented Mar 28, 2011 at 13:38 And of course you can remove the leading zeroes and abbreviate break , give b *0x400448 . Commented Jun 16, 2018 at 8:56 To disambiguate with function or data named 0x0000000000400448 (unusual as that would be!) Commented Jun 3, 2019 at 18:21

@compile-fan break *address Set a breakpoint at address address. You can use this to set breakpoints in parts of your program which do not have debugging information or source files. ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_28.html I was debugging a assembly code and reached here for the same question which you asked.