From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8066 invoked by alias); 10 Sep 2002 16:56:07 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 7958 invoked from network); 10 Sep 2002 16:56:04 -0000 Received: from unknown (HELO rj.sgi.com) (192.82.208.96) by sources.redhat.com with SMTP; 10 Sep 2002 16:56:04 -0000 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by rj.sgi.com (8.12.2/8.12.2/linux-outbound_gateway-1.2) with ESMTP id g8AEtxil020203; Tue, 10 Sep 2002 07:55:59 -0700 Received: from quasar.engr.sgi.com (quasar.engr.sgi.com [130.62.180.91]) by cthulhu.engr.sgi.com (SGI-8.9.3/8.9.3) with ESMTP id JAA21400; Tue, 10 Sep 2002 09:56:00 -0700 (PDT) Received: (from davea@localhost) by quasar.engr.sgi.com (SGI-8.9.3/8.9.3) id JAA83167; Tue, 10 Sep 2002 09:55:19 -0700 (PDT) Date: Tue, 10 Sep 2002 09:56:00 -0000 From: David Anderson Message-Id: <200209101655.JAA83167@quasar.engr.sgi.com> To: ac131313@ges.redhat.com Subject: Re: [RFA] 64-bit corefile support for Irix Cc: gdb-patches@sources.redhat.com, binutils@sources.redhat.com, msnyder@cygnus.com X-SW-Source: 2002-09/txt/msg00153.txt.bz2 |> + #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