Multi-threaded debugging tutorial for GDB and C [closed] Multi-threaded debugging tutorial for GDB and C [closed] multithreading multithreading

Multi-threaded debugging tutorial for GDB and C [closed]


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.


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.