Re: [RFC] x86-64 targeted gdb and corefiles

Mark Kettenis
2002-05-27T21:59:43Z

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