8 gdb tricks you should know

“Despite its age, gdb remains an amazingly versatile and flexible tool, and mastering it can save you huge amounts of time when trying to debug problems in your code. In this post, I’ll share 10 tips and tricks for using GDB to debug most efficiently.

I’ll be using the Linux kernel for examples throughout this post, not because these examples are necessarily realistic, but because it’s a large C codebase that I know and that anyone can download and take a look at. Don’t worry if you aren’t familiar with Linux’s source in particular — the details of the examples won’t matter too much…”

https://blogs.oracle.com/ksplice/entry/8_gdb_tricks_you_should

Advertisements