This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Analyzing AMD64 corefiles on i386
- From: Mark Kettenis <kettenis at chello dot nl>
- To: mludvig at suse dot cz
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 8 Jul 2003 16:45:11 +0200 (CEST)
- Subject: Re: Analyzing AMD64 corefiles on i386
- References: <3F0ABC85.1080700@suse.cz>
Date: Tue, 08 Jul 2003 14:43:49 +0200
From: Michal Ludvig <mludvig@suse.cz>
Hi,
what must be done to enable reading of AMD64 corefiles in a gdb running
on i386 with --target=amd64?
The necessary support for corefiles needs to be added to
x86-64-linux-tdep.c. Take a look at i386nbsd-tdep.c for an example.
You'll need to create a `struct core_fns' together with the necessary
support functions, and register it with add_core_fns. Note that for
the support functions you can't rely on definitions in header files
and such since this is target code. You'll also need to drop
core-regset.o from NATDEPFILES in x86-64-linux.mh.
Success!
Mark