This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: A copy/save command ...
"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.