Re:Two handy GDB breakpoint tricks
by lifthrasiir on Sunday January 28, 2024 @11:12PM
(#39172605)
I sometimes used a placeholder function call to make it easier to place a breakpoint. Of course it shouldn't be ever inlined.
[ Parent
| on HN ]
Re:Two handy GDB breakpoint tricks
by gregfjohnson on Sunday January 28, 2024 @11:21PM
(#39172650)
Same. I typically define a function "void bp1(){}" in a common utility file, put "bp1();" where I need a breakpoint, and "b bp1" in gdb. Hacky, sure, but really convenient.