This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] 64-bit corefile support for Irix


Hi,
This patch will allow gdb (and hopefully objdump/objcopy) to read
64-bit corefiles on Irix native.

The file isn't maintained so ...
Oops, it's also a BFD file so outside of GDB's control.  Just ignore me :-)

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.
Turns out that the file can only be compiled on an IRIX system anyway.

Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]