This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A copy/save command ...


> 
> 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


I'm not sure what you mean by a previously set memory region.  Something 
like:

(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.

enjoy,
Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]