gdb and threads

Folkert van Heusden folkert@vanheusden.com
Thu Apr 12 09:44:00 GMT 2012


Hi,

I'm trying to debug a mulithreaded application running on a multicore cpu.
It is a C++ application which uses the new std::thread (which uses
pthreads underneath).
Now when my program gets a SIGSEGV, I can use 'bt' in gdb to get a backtrace.
Can I be sure that the backtrace I get is the one from the thread
causing the SIGSEGV?


Thanks,

Folkert.
www.vanheusden.com



More information about the Gdb mailing list