Tag Archives: debugging

Debugging For Beginners

This post was also published at O’Reilly Programming – you can read it here. I read an interesting article today, called Debugging for Beginners, over at O’Reilly Programming. You all know how much I love GDB (huh? you didn’t? seriously?), so I always like to take a look at different approaches to finding those elusive […]

GDB Prompt in Colour

Just because you can. Yeah, I know, why bother when you can use a nice front end like Eclipse, or DDD, or CGDB or blah blah blah. If you just like to use it in its raw form on the command line (which, let’s face it, is the best way), you can pretty-up your GDB […]

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 […]