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


Just some side notes.  I don't disagree with your logic.



> gdb> load BINFILE1 .bss


Some versions of load already have a syntax like:

	(gdb) load file [ <offset> ]

see symfile.c:generic_load()

>  or
> gdb> dump BINFILE2 load1
>  would do the desired thing.


I've been playing with load/store architectures for too long - I keep 
thinking that the oposite of load is store ... :-(


> It would be natural to add core file support to load/dump too.
> 
> There is still the issue of how to specify the format (binary,
> elf-core, elf-object, srec, or other bfd type).  Maybe some borrow
> the syntax from objcopy or the loader.


something like:

load/FORMAT
st^D^D dump/FORMAT

Trying to re-use objcopy would be a good idea (if helpful).

Andrew




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