This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fix Irix core dumps
- To: binutils at sources dot redhat dot com
- Subject: Fix Irix core dumps
- From: Jim Kingdon <jkingdon at engr dot sgi dot com>
- Date: Fri, 9 Feb 2001 18:36:11 -0500 (EST)
Reading a core dump on Irix has bit-rotted some time since GDB 4.18
(which works). The enclosed patch to BFD sets a bit which GDB needs
(specifically the so-called GDB multiarch code, which is now used on
all MIPS targets).
This is a companion patch to
http://sources.redhat.com/ml/gdb-patches/2001-02/msg00161.html - if I
apply both of them, core dumps work again on Irix 6.5.8m.
2001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
* irix-core.c (irix_core_core_file_p): Set the architecture (GDB
multiarch needs it).
Index: irix-core.c
===================================================================
RCS file: /cvs/src/src/bfd/irix-core.c,v
retrieving revision 1.2
diff -u -r1.2 irix-core.c
--- irix-core.c 1999/07/19 14:55:16 1.2
+++ irix-core.c 2001/02/09 23:21:26
@@ -168,6 +168,8 @@
/* OK, we believe you. You're a core file (sure, sure). */
+ bfd_default_set_arch_mach (abfd, bfd_arch_mips, 0);
+
return abfd->xvec;
}