Re: looking for gdb's help

Simon Marchi <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.