40

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.

4 Answers 4

16

Googled it.Found some links.They seem helpful :

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.

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.

2

Above links broken, So, you can use the following link:Debugging Programs with Multiple Threads

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