views:

1045

answers:

3

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.

+1  A: 

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.

fuad
+2  A: 

Googled it.Found some links.They seem helpful :

Ravi
A: 

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