Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Grant Edwards <grante@visi.com>
To: Jamie Guinan <guinan@bluebutton.com>
Cc: Kevin Buettner <kevinb@cygnus.com>, Gdb List <gdb@sources.redhat.com>
Subject: Re: dump memory to file
Date: Wed, 22 Aug 2001 14:19:00 -0000	[thread overview]
Message-ID: <20010822162104.A32545@visi.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0108221522170.4909-100000@gemini.home.net>

On Wed, Aug 22, 2001 at 03:38:20PM -0400, Jamie Guinan wrote:

> redirect-output is a neat idea, but I think dumping a section of
> target memory to a file is a different problem, and needs its
> own solution.  This is particularly valuable in embedded systems,

That's also when I've needed it.  Since the debugging hardware
doesn't have a trace buffer, I had to add SW tracing of
selected events (it needed to be in more-or-less real-time).
Then when I hit an error condition I stop execution and need to
dump out 4-8K event records and run them through some programs
to format and filter them.

Other times when working on DSPish type stuff I've needed to
dump out raw data for external analysis and verification.

> So having a 'dump-region' command would be a nice addition to
> GDB,

I think I'll start working on it this weekend.  It should be
pretty trivial -- assuming there are existing routines that
read/write target memory, and bfd routines that read/write
files in various formats.

-- 
Grant Edwards
grante@visi.com


  reply	other threads:[~2001-08-22 14:19 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-22  8:58 Grant Edwards
2001-08-22 10:18 ` Eli Zaretskii
2001-08-22 10:52 ` Kevin Buettner
2001-08-22 11:00   ` Daniel Jacobowitz
2001-08-22 12:00     ` Andrew Cagney
2001-08-22 11:02   ` Grant Edwards
2001-08-22 11:25   ` Per Bothner
2001-08-22 12:06     ` Kevin Buettner
2001-08-22 12:11     ` Andrew Cagney
2001-08-22 13:50   ` Jamie Guinan
2001-08-22 14:19     ` Grant Edwards [this message]
2001-08-22 10:25 Hiro Sugawara
2001-08-22 10:31 ` Grant Edwards
2001-08-22 10:43   ` Kevin Buettner
2001-08-22 10:51     ` Grant Edwards
2001-08-22 11:25       ` Kevin Buettner
2001-08-22 11:01 Hiro Sugawara
2001-08-22 11:10 ` Grant Edwards
2001-08-22 11:18 Hiro Sugawara

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=20010822162104.A32545@visi.com \
    --to=grante@visi.com \
    --cc=gdb@sources.redhat.com \
    --cc=guinan@bluebutton.com \
    --cc=kevinb@cygnus.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