C++/GDB with threading
how could debugg my code in which i use thread using GDB .
Not all systems having GDB support threads. On your GDB execution for a multithreaded program, please type:
on the GDB prompt. This would display the thread ids of all the threads in that process if the GDB on your system supports debugging of threads.
Then you could use the "thread" command and the id of a thread to debug that thread.