From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Edwards To: Jamie Guinan Cc: Kevin Buettner , Gdb List Subject: Re: dump memory to file Date: Wed, 22 Aug 2001 14:19:00 -0000 Message-id: <20010822162104.A32545@visi.com> References: <1010822175224.ZM31365@ocotillo.lan> X-SW-Source: 2001-08/msg00201.html 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