From: Fredrik Hederstierna <fredrik.hederstierna@securitas-direct.com>
To: gdb@sourceware.org
Subject: Simple suggestion to get basic core-file alike functionality for bare-metal targets
Date: Mon, 04 Jun 2012 09:33:00 -0000 [thread overview]
Message-ID: <OFC71947E9.4A1F40ED-ONC1257A13.003473EF-C1257A13.003473F6@securitasdirect.se> (raw)
In-Reply-To:
When debugging with bare-metal targets often core-file alike support would be nice.
Though many targets lack core-file support.
If GDB is connected you could eg. store RAM using
dump memory filename.bin start_addr end_addr
restore filename.bin binary start_addr
then save registers by hand to save 'basic' core-file data.
Wouldn't it be great to
1. Have similar command to dump also all registers / CPU-states to file?
Eg. dump registers filename.reg
Then be able to restore them
restore filename.reg registers
2. Perhaps have a generic 'core-light-file' format.
This could contain memory + registers (+ maybe more basic CPU states)?
Note though, that the dump files needs to be generated by debugged code itself,
if running without connection to GDB. This to examine eg. crashes off-line later.
The point is to get some kind of standard format and to ease the restoring of registers etc.
I can consider to look into adding the dump-register command and put some own time into this,
if the community think its a good idea?
Thanks and Best Regards
Fredrik
next reply other threads:[~2012-06-04 9:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-04 9:33 Fredrik Hederstierna [this message]
2012-06-06 18:19 ` Tom Tromey
2012-06-07 7:31 ` Fredrik Hederstierna
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=OFC71947E9.4A1F40ED-ONC1257A13.003473EF-C1257A13.003473F6@securitasdirect.se \
--to=fredrik.hederstierna@securitas-direct.com \
--cc=gdb@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).