Category Archives: Debugging with GDB

Eclipse CDT + GDB: Setting Watchpoints (Juno)

I was trying to watch a variable in Eclipse today and just could not find how to set it up. No matter what I did the Toggle Watchpoint option remained greyed out. A watchpoint is more fun than a regular breakpoint, because the debugger will stop whenever the variable is changed, even if your program […]

GDB: Unable to find dynamic linker breakpoint function

Need more? See my GDB tutorial: Part 1, Part 2, Part 3. You all know how much I loooooooove GDB, so what better thing to write about after a long time away? If you’re seeing this message: warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic […]

GDB Core Dump Files

What’s a Core Dump? It’s a file created when your program terminates abnormally. It contains a snapshot of the program’s state at the time of the failure. What does it look like? On Linux it will appear in the same location as the executable and will be named something like: core.4196 Where the number is […]

GDB Init Files Save Time At Startup

I can’t leave the subject of GDB alone for too long, so today I thought I’d talk about GDB init files. Each time GDB is run, it checks first your home directory and then the current directory for the existence of a file called .gdbinit. If it finds this file, it reads the contents and […]