Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lifthrasiir
12 months ago
|
parent
|
context
|
favorite
| on:
Two handy GDB breakpoint tricks
I sometimes used a placeholder function call to make it easier to place a breakpoint. Of course it shouldn't be ever inlined.
gregfjohnson
12 months ago
[–]
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.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: