This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: A copy/save command ...
On Fri, Jan 04, 2002 at 02:07:09PM -0800, Michael Snyder wrote:
> "Frank Ch. Eigler" wrote:
> >
> > cagney wrote:
> >
> > > [...] Lets be honest, ``copy'' is a really bad name. For all those
> > > reasons and probably more :-) [...]
> >
> > Consider:
> >
> > (gdb) image save FILE RANGE [FORMAT]
> > (gdb) image restore FILE [ADDR]
> > (gdb) image compare FILE [ADDR]
> >
> > where, say, RANGE could be
> > ADDR1 ADDR2
> > "region 1" -- previously set memory region
> >
> > and FORMAT could be some bfd-supported forms like "srec" or "binary".
>
> If its a bfd-supported format such as srec, you can already use the
> "load" command to put it back onto the target later. Then all you
> have to worry about is the opposite-of-load direction.
For me, it's binary as often as not. I haven't tried the
"load" command with binary data recently...
--
Grant Edwards
grante@visi.com