This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: siginfo and core files
On 05/25/2012 02:53 PM, jmf list wrote:
> Is it possible to access the si_addr and si_signo siginfo fields from
> a core dump in GDB?
> When debugging a live process I access these
> values via the $_siginfo convenience var. I am not sure if both of
> these values are normally stored in a core dump, or if they are
> accessible via GDB.
I don't think the whole siginfo object is stored on core files.
See /usr/include/linux/elfcore.h . The elf_prstatus and elf_prpsinfo
structures is what is put in the core. We can retrieve some info, but
unfortunately, it doesn't look like si_addr is anywhere to be found.
--
Pedro Alves