Does anybody know of a good GDB (or other Linux debugger) tutorial for debugging multi-threaded C code? I'm looking for one that includes simple examples.
Asked
Active
Viewed 5.1k times
4 Answers
16
Googled it.Found some links.They seem helpful :

pestophagous
- 4,069
- 3
- 33
- 42

Ravindra S
- 6,302
- 12
- 70
- 108
5
When debugging multi-threaded C code using GDB, I usually refer to the entry in the gdb manual on "Debugging Programs with Multiple Threads". You can find it here.
It's not really a tutorial, but it does have a couple of examples that should get you started.
5
In supplement to the various gdb tutorials out there I would really advise using "watch" alot in multi-threaded debugging. It will break on read/writes to memory/variables rather than specific lines of source.

IanNorton
- 7,145
- 2
- 25
- 28
2
Above links broken, So, you can use the following link:Debugging Programs with Multiple Threads

PersianGulf
- 2,845
- 6
- 47
- 67