This is the mail archive of the gdb-patches@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: [RFC] x86-64 targeted gdb and corefiles


Michal Ludvig <mludvig@suse.cz> writes:

> Hi all,
> this patch allows reading of coredumps on non-native gdb configured for 
> x86-64 target. It works pretty well in this form, but I had to modify 
> gregset.h, what is unwise. I know I have to move the modifications 
> somewhere else, but ... where? Can someone give me an advice, please?

Take a look at how this is done for various NetBSD targets (sh, alpha,
i386).  Basically, get rid of the elf_gregset_t type and adapt the
functions that "parse" the register set to handle a "raw" buffer.
Since all registers are of the same size, that shouldn't be too
complicated.

Mark


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