Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] QNX core file reading fix
@ 2003-05-20 21:35 Kris Warkentin
  0 siblings, 0 replies; only message in thread
From: Kris Warkentin @ 2003-05-20 21:35 UTC (permalink / raw)
  To: Gdb-Patches@Sources.Redhat.Com

We were switching on our own regset numbers rather than gdb's.  Applied as
obvious.

cheers,

Kris

ChangeLog:

 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
 regset numbering rather than our own.

Index: nto-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/nto-tdep.c,v
retrieving revision 1.4
diff -u -r1.4 nto-tdep.c
--- nto-tdep.c 12 May 2003 19:11:51 -0000 1.4
+++ nto-tdep.c 20 May 2003 21:33:26 -0000
@@ -269,24 +269,19 @@
         int which, CORE_ADDR reg_addr)
 {
   nto_regset_t regset;
-
-  if (which == NTO_REG_GENERAL)
+
+/* See corelow.c:get_core_registers for values of WHICH.  */
+  if (which == 0)
     {
       memcpy ((char *) &regset, core_reg_sect,
        min (core_reg_size, sizeof (regset)));
       nto_supply_gregset ((char *) &regset);
     }
-  else if (which == NTO_REG_FLOAT)
+  else if (which == 2)
     {
       memcpy ((char *) &regset, core_reg_sect,
        min (core_reg_size, sizeof (regset)));
       nto_supply_fpregset ((char *) &regset);
-    }
-  else if (which == NTO_REG_ALT)
-    {
-      memcpy ((char *) &regset, core_reg_sect,
-       min (core_reg_size, sizeof (regset)));
-      nto_supply_altregset ((char *) &regset);
     }
 }



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-20 21:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-20 21:35 [patch] QNX core file reading fix Kris Warkentin

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