* Analyzing AMD64 corefiles on i386
@ 2003-07-08 12:43 Michal Ludvig
2003-07-08 14:45 ` Mark Kettenis
0 siblings, 1 reply; 2+ messages in thread
From: Michal Ludvig @ 2003-07-08 12:43 UTC (permalink / raw)
To: gdb; +Cc: Mark Kettenis
Hi,
what must be done to enable reading of AMD64 corefiles in a gdb running
on i386 with --target=amd64? So far I'm only getting message:
This GDB was configured as "--host=i686-pc-linux-gnu
--target=amd64-linux-gnu"...
GDB can't read core files on this machine.
Thanks!
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* (+420) 296.545.373 * http://www.suse.cz
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Analyzing AMD64 corefiles on i386
2003-07-08 12:43 Analyzing AMD64 corefiles on i386 Michal Ludvig
@ 2003-07-08 14:45 ` Mark Kettenis
0 siblings, 0 replies; 2+ messages in thread
From: Mark Kettenis @ 2003-07-08 14:45 UTC (permalink / raw)
To: mludvig; +Cc: gdb
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-08 14:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-08 12:43 Analyzing AMD64 corefiles on i386 Michal Ludvig
2003-07-08 14:45 ` Mark Kettenis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).