From: Pedro Alves <palves@redhat.com>
To: jmf list <jmf.list@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: siginfo and core files
Date: Fri, 25 May 2012 14:22:00 -0000 [thread overview]
Message-ID: <4FBF9555.8030902@redhat.com> (raw)
In-Reply-To: <CALuSdM9fTir4su5HpqYqRbOdG0aMf6Kvq83=qua39Jdo96Mvzg@mail.gmail.com>
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
prev parent reply other threads:[~2012-05-25 14:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-25 13:53 jmf list
2012-05-25 14:22 ` Pedro Alves [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FBF9555.8030902@redhat.com \
--to=palves@redhat.com \
--cc=gdb@sourceware.org \
--cc=jmf.list@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).