This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] x86-64 targeted gdb and corefiles
- From: Mark Kettenis <kettenis at chello dot nl>
- To: Michal Ludvig <mludvig at suse dot cz>
- Cc: GDB Patches <gdb-patches at sources dot redhat dot com>
- Date: 27 May 2002 18:52:40 +0200
- Subject: 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