Michael Snyder wrote: > > Hello, > > Back in January, there was a discussion about adding commands that > would allow gdb to copy data from target memory to a file and back > again. Andrew and I have done an implementation of those commands, > and here it is for your approval. > > The syntax looks like this: > > dump memory > dump value > restore > > Where may be srec, ihex, tekhex, or binary (defaulting > to binary). Start and end may be numeric or symbolic. > Expression can be any expression that GDB can normally evaluate. > > The restore command can copy a file back into target memory > for any running target. It can bias the copy by an offset, > and it can copy a subrange of the file (specified by start and > end, which are file-relative ie. before the offset is applied). > > There is also an alternate form of the dump command called > append, which will append new data onto an existing file; > it only works with the binary file format at present. > Committed, with docs, and slight mods as shown below.