This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

Fix Irix core dumps


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;
 }
 


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