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: Michael Snyder <msnyder at redhat dot com>
- To: Andrew Cagney <ac131313 at ges dot redhat dot com>
- Cc: Michael Snyder <msnyder at cygnus dot com>, binutils at sources dot redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Mon, 09 Sep 2002 17:52:06 -0700
- Subject: Re: [RFA] 64-bit corefile support for Irix
- Organization: Red Hat, Inc.
- References: <200209052318.g85NI1Z08943@reddwarf.sfbay.redhat.com> <3D7CFB4A.9060300@ges.redhat.com>
Andrew Cagney wrote:
>
> > Hi,
> >
> > This patch will allow gdb (and hopefully objdump/objcopy) to read
> > 64-bit corefiles on Irix native.
>
> The file isn't maintained so ...
>
> > 2002-09-05 Michael Snyder <msnyder@redhat.com>
> >
> > * irix-core.c (do_sections, do_sections64): New functions.
> > (irix_core_core_file_p): Call new functions do_sections,
> > do_sections64, depending on corefile (32-bit or 64-bit).
> >
> > Index: irix-core.c
> > ===================================================================
> > RCS file: /cvs/src/src/bfd/irix-core.c,v
> > retrieving revision 1.7
> > diff -p -r1.7 irix-core.c
> > *** irix-core.c 6 Jan 2002 07:30:35 -0000 1.7
> > --- irix-core.c 5 Sep 2002 23:14:39 -0000
> > *************** static boolean irix_core_core_file_match
> > *** 50,55 ****
> > --- 50,154 ----
> > PARAMS ((bfd *, bfd *));
> > static void swap_abort PARAMS ((void));
> >
> > + /* Helper function for irix_core_core_file_p:
> > + 32-bit and 64-bit versions. */
> > +
> > + #ifdef CORE_MAGIC64
>
> Where does the macro come from? Should BFD provide it so that it can
> always be used.
It comes from a system header file on Irix.