looking for gdb's help

Simon Marchi simark@simark.ca
Tue May 14 22:04:00 GMT 2019


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



More information about the Gdb mailing list