Category Archives: Debugging with GDB

Debug ncurses with GDB + GDBserver and Full Input Output

Actually, you can use this technique to debug any kind of console app where debugging on the command line interferes with the program’s output. It’s quick and easy, and unlike attaching to a running process in another shell, it allows you to debug as soon as the program starts, meaning you can catch even those fiddly bugs that only […]

GDB | Auto-Load Safe-Path Declined

More GDB shenanigans today, as kindly pointed out by one of my readers – thank you Laurent! Did you know that as of GDB version 7.5 (Aug 2012), there is a new security feature in place that prevents GDB from looking in “non-trusted” directories for the super-useful .gdbinit file? [For more on the usefulness of […]

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