This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: dump memory to file


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]