Breakpoint a multi thread application

What happens if I breakpoint a multi thread application.

does it stop all the threads, just the one that is break pointed or does the whole program just crash ?

If it is possible would I want to stop just one thread or would this mess up my application ?

If I cannot break point a multi tread application what are the debug techniques available to me ?


  • It stops all threads.

    It is not normally possible to just stop one thread. For more information on debugging threads with GDB see this part of the manual.