Re: looking for gdb's help
Simon Marchi <[email protected]> Tue, 14 May 2019 12:17:49 -0400
| Newsgroups | gmane.comp.gdb.devel,gmane.comp.gdb.bugs.general |
|---|---|
| Message-ID | <[email protected]> |
On 2019-05-14 3:26 a.m., XXX wrote: > hello! > > i have a question about gdb debugging. while a signal cause a core dump, how can i get which thread cause the signal. the _siginfo only records the pid, not thread id. while debugging the core file, the current thread is not the thread which cause the core signal. > > > i am looking for your reply, thank you! > Is this core dump created by the Linux kernel? IIRC, the Linux kernel typically places the signalled thread first in the list of of threads, such that when I open a core dump in GDB, thread 1 is usually the one that caused the problem. Simon