From: Paul Mathieu via Gdb-patches <gdb-patches@sourceware.org>
To: gdb-patches@sourceware.org,
Luis Machado <luis.machado@linaro.org>,
Simon Marchi <simark@simark.ca>,
Robin Haberkorn <haberkorn@metratec.com>
Subject: Re: [PATCH v2] gdb: add support for handling core dumps on arm-none-eabi
Date: Sun, 4 Oct 2020 10:30:27 -0700 [thread overview]
Message-ID: <CAO_VGhpBFaj-aGfoj894J3LCH2e3fuZfz8dr-qLMAECFCqT6pg@mail.gmail.com> (raw)
In-Reply-To: <20201003181451.GA2211174@google.com>
Cc'ing Robin, the original author of the patch, who can maybe help us
answer a couple questions.
> > Ok, so that answers the question in my other email, about which tool
> > produces this format of core. The answer is this specific python
> > script, and the format is "Paul's ARM core format" :).
>
> It was some team work between what gdb understood "natively" and what
> the patch does.
> More specifically, this patch only seems to tell gdb to get the
> registers from the core file the way it would normally do, and then
> supply them almost verbatim to the regcache.
> The struct for these registers is nothing special either, you can find
> it in the kernel code as well:
> https://elixir.bootlin.com/linux/latest/source/arch/arm/include/uapi/asm/ptrace.h#L135
>
>
> > I don't know what Luis thinks about this, but I would be a bit hesitant
> > to add support in GDB for a core format that's not standard nor the
> > output of some "well-known" tool (which would be a de facto standard).
> >
> > Is there a format that already exists in the ARM ecosystem for core
> > dumps of bare-metal systems, we could base our stuff on?
>
> I'm not aware of anything that does that. There are tools that generate
> memory dumps and CPU register dumps into their own proprietary format,
> but nothing that I know that you could call a 'core file'.
>
> Are there other tools besides gdb that deal with core dumps? Maybe that
> could help me find other formats.
>
> That being said, the format used here is "well-known" in the sense that
> it's the exact same format the linux kernel would use to dump cores on
> arm-linux-*
Robin, what was the format you used for your core dumps? Did you use a
tool that's already out there?
next prev parent reply other threads:[~2020-10-04 17:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-02 17:32 [PATCH] " Paul Mathieu via Gdb-patches
2020-10-02 17:51 ` Luis Machado via Gdb-patches
2020-10-02 21:54 ` Paul Mathieu via Gdb-patches
2020-10-02 21:59 ` Simon Marchi
2020-10-03 3:57 ` Simon Marchi
2020-10-03 18:14 ` [PATCH v2] " Paul Mathieu via Gdb-patches
2020-10-04 17:30 ` Paul Mathieu via Gdb-patches [this message]
2020-10-04 23:41 ` Simon Marchi
2020-10-06 4:32 ` Paul Mathieu via Gdb-patches
2020-10-06 12:45 ` Luis Machado via Gdb-patches
2020-10-06 14:29 ` Simon Marchi
2020-10-06 16:59 ` Paul Mathieu via Gdb-patches
2020-10-06 17:37 ` Simon Marchi
2020-10-05 12:58 ` Luis Machado via Gdb-patches
2020-10-05 13:24 ` Alan Hayward via Gdb-patches
2020-10-02 23:55 ` [PATCH] " Simon Marchi
2020-10-03 0:35 ` Paul Mathieu via Gdb-patches
2020-10-03 2:24 ` Simon Marchi
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=CAO_VGhpBFaj-aGfoj894J3LCH2e3fuZfz8dr-qLMAECFCqT6pg@mail.gmail.com \
--to=gdb-patches@sourceware.org \
--cc=haberkorn@metratec.com \
--cc=luis.machado@linaro.org \
--cc=paulmathieu@google.com \
--cc=simark@simark.ca \
/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