This is the mail archive of the
mailing list for the GDB project.
Re: A copy/save command ...
> (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
I'm not sure what you mean by a previously set memory region. Something
(gdb) image save myfile "region 1"
technically ``"region 1"'' is an expression that returns the address of
the string ``region 1'' freshly malloc()d in target memmory.
I'm wondering what the semantics of ``restore'' are and how they differ
from load in some cases. Perhaphs ``(gdb) load <file> <offset>'' is
syntatic sugar for one of the ``(gdb) image ...'' commands.