From: William Tambe <tambewilliam@gmail.com>
To: gdb-patches@sourceware.org
Subject: GDB coredump support: reading NT_PRSTATUS instead of section ".reg"
Date: Sun, 30 Jan 2022 15:36:19 -0600 [thread overview]
Message-ID: <CAF8i9mOZqUO4U_ysfoUNypAd9wiwJEzYpf1yjAPw_DqZGyBaGQ@mail.gmail.com> (raw)
set_gdbarch_iterate_over_regset_sections() is used to add coredump support.
However, in most examples found in the code base, we look for a
section called ".reg", which fails with "Couldn't find general-purpose
registers in core file." if such a section could not be found.
In our port, Linux stores coredump registers in NT_PRSTATUS of the core file.
How does one get GDB to use core file NT_PRSTATUS instead of section
".reg" to retrieve general-purpose registers ?
next reply other threads:[~2022-01-30 21:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-30 21:36 William Tambe [this message]
2022-01-31 18:24 ` John Baldwin
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=CAF8i9mOZqUO4U_ysfoUNypAd9wiwJEzYpf1yjAPw_DqZGyBaGQ@mail.gmail.com \
--to=tambewilliam@gmail.com \
--cc=gdb-patches@sourceware.org \
/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).