This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] 64-bit corefile support for Irix
- From: David Anderson <davea at quasar dot engr dot sgi dot com>
- To: ac131313 at ges dot redhat dot com
- Cc: gdb-patches at sources dot redhat dot com, binutils at sources dot redhat dot com, msnyder at cygnus dot com
- Date: Tue, 10 Sep 2002 09:55:19 -0700 (PDT)
- Subject: Re: [RFA] 64-bit corefile support for Irix
|> + #ifdef CORE_MAGIC64
|
|Where does the macro come from? Should BFD provide it so that it can
|always be used.
|
|enjoy,
|Andrew
It comes from IRIX /usr/include/core.out.h, the
header which defines the IRIX core file format.
The 3 defines are
#define CORE_MAGIC 0xdeadadb0
#define CORE_MAGIC64 0xdeadad40
#define CORE_MAGICN32 0xbabec0bb
The initial struct in the core has a field with one of
the above values (which one depends on which ABI
the executable that coredumped was, of course).
CORE_MAGIC is for o32
CORE_MAGICN32 is for n32
CORE_MAGIC64 is for -64 (some people call it n64).
CORE_MAGIC was first, followed by CORE_MAGIC64, and then by
CORE_MAGICN32 over time. All 3 existed starting in the
mid 1990's.
Regards,
David B. Anderson davea@sgi.com http://reality.sgiweb.org/davea