Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [2nd RFA] Make core dumps work on Irix
@ 2001-02-13 15:07 Jim Kingdon
  2001-02-13 15:51 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Kingdon @ 2001-02-13 15:07 UTC (permalink / raw)
  To: gdb-patches

The enclosed patch makes GDB able to again read core dumps on Irix.
It broke some time after GDB 4.18 (which works).

Andrew Cagney is listed as the MIPS maintainer.

It was previously submitted as
http://sources.redhat.com/ml/gdb-patches/2001-02/msg00161.html and its
companion patch is
http://sources.redhat.com/ml/binutils/2001-02/msg00199.html

Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.40
diff -u -r1.40 mips-tdep.c
--- mips-tdep.c	2001/02/08 06:03:53	1.40
+++ mips-tdep.c	2001/02/13 23:01:12
@@ -420,7 +420,15 @@
   if (mips64_transfers_32bit_regs_p)
     return REGISTER_VIRTUAL_SIZE (reg_nr);
   else
-    return MIPS_REGSIZE;
+    {
+      /* For MIPS_ABI_N32 (for example) we need 8 byte floating point
+         registers.  */
+      if (reg_nr >= FP0_REGNUM && reg_nr < FP0_REGNUM+32
+	  && FP_REGISTER_DOUBLE)
+	return 8;
+
+      return MIPS_REGSIZE;
+    }
 }
 
 int


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-02-13 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-13 15:07 [2nd RFA] Make core dumps work on Irix Jim Kingdon
2001-02-13 15:51 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox