* mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
authorDaniel Jacobowitz <drow@false.org>
Wed, 30 Oct 2002 04:10:06 +0000 (04:10 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 30 Oct 2002 04:10:06 +0000 (04:10 +0000)
        registers without a name.
        (mips_linux_cannot_store_register): Don't store registers without
        a name.

gdb/ChangeLog
gdb/mips-linux-nat.c

index 337c186..903e0f5 100644 (file)
@@ -1,3 +1,10 @@
+2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
+
+       * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
+       registers without a name.
+       (mips_linux_cannot_store_register): Don't store registers without
+       a name.
+
 2002-10-28  David Carlton  <carlton@math.stanford.edu>
 
        * symtab.c (find_addr_symbol): Delete.  (It was already commented
index 454520d..a0469f6 100644 (file)
@@ -29,6 +29,8 @@
 int
 mips_linux_cannot_fetch_register (int regno)
 {
+  if (REGISTER_NAME (regno)[0] == 0)
+    return 1;
   if (regno == PS_REGNUM)
     return 1;
   else if (regno == ZERO_REGNUM)
@@ -40,6 +42,8 @@ mips_linux_cannot_fetch_register (int regno)
 int
 mips_linux_cannot_store_register (int regno)
 {
+  if (REGISTER_NAME (regno)[0] == 0)
+    return 1;
   if (regno == PS_REGNUM)
     return 1;
   else if (regno == ZERO_REGNUM)