2

I know the basics of how to use gdb. But I would like to learn some advanced debugging techniques using gdb. What are the best resources - books, blogs, tutorials - that any of you use regularly. I did look at this question: Tips or resources for learning advanced debugging techniques GDB in xcode but what I'm looking for is the GDB equivalent of the following:

http://www.dumpanalysis.org/

http://WinDbg.info

Memory Dump Analysis Anthology

I understand that this is subjective question. But there are lot of questions which are very similar in nature (e.g The Definitive C++ Book Guide and List) and this question is not asked in here. If there is a duplicate that I missed please site it in the comments and close this question.

closed as primarily opinion-based by jasonwryan, Mat, Anthon, Zelda, Thomas Nyman Jan 10 '14 at 8:16

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

  • The aim of the question is to merely collect some of the resources that other developers have used and found it to be very useful. I did my due research on the internet and couldn't find anything that stood out like the examples I have cited with regards to WinDBG. The question does not solicit opinions. – yasouser Jan 10 '14 at 20:58
  • If you want to learn gdb specifics, Debugging with GDB linked in the SO answer is a good place to go. If you want to learn advanced debugging techniques, it's usually more about general computer and OS architecture knowledge than about anything else. – peterph Jan 10 '14 at 23:41
7

Norman Matloff's book on debugging: The Art of Debugging is quite good, though I don't know if you would consider it advanced. There is also his online tutorial, Guide to Faster, Less Frustrating Debugging, which might be an earlier version of the book.

There is also a tutorial My debugging tutorial, linked from the page Norm Matloff's DDD Tutorial.

Personally, I use print statements. :-) I've tried to use GDB in the past, but only with C++ (I don't use C). The problems I had were that, first GDB was itself quite buggy, and second, did not cope well with displaying complex C++ structures. This was some time ago, and the situation may have improved.

  • +1 for the Guide to Faster, lesser frustrating debugging link. – yasouser Jan 10 '14 at 8:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.