This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
gdb and threads
- From: Folkert van Heusden <folkert at vanheusden dot com>
- To: gdb at sourceware dot org
- Date: Thu, 12 Apr 2012 11:44:26 +0200
- Subject: gdb and threads
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