This is the mail archive of the
mailing list for the GDB project.
Re: A copy/save command ...
> Hi -
> cagney wrote:
>> > [...]
>> > 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. [...]
> I was referring to regions as managed by the "mem" command, as in
> (gdb) mem 2000 2500
> (gdb) info mem
> (gdb) image store region 1 /my/file srec
Ok, it would need a different syntax though. region and 1 are both
valid addresses. (not that I'm actually going to implement this part).
>> 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.
> Yes, quite possibly.
I'm still wondering what the semantics of restore are ...