* alpha-tdep.c (alpha_register_name): Add comment.
authorJoel Brobecker <brobecker@gnat.com>
Wed, 1 Dec 2004 17:13:44 +0000 (17:13 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 1 Dec 2004 17:13:44 +0000 (17:13 +0000)
        (alpha_cannot_fetch_register): Exclude registers numbers which
        are no longer used from the list of registers that can be fetched.
        (alpha_cannot_store_register): Exclude registers numbers which
        are no longer used from the list of registers that can be stored.
        * alpha-nat.c (fetch_osf_core_registers): Add missing value in
        core_reg_mapping array.

gdb/ChangeLog
gdb/alpha-nat.c
gdb/alpha-tdep.c

index e9c9f5a94f0587c3471f97c13744ff662a7cd0f7..ad5143792474fbe86c7c2530c9befd93949f0672 100644 (file)
@@ -1,3 +1,13 @@
+2004-12-01  Joel Brobecker  <brobecker@gnat.com>
+
+       * alpha-tdep.c (alpha_register_name): Add comment.
+       (alpha_cannot_fetch_register): Exclude registers numbers which
+       are no longer used from the list of registers that can be fetched.
+       (alpha_cannot_store_register): Exclude registers numbers which
+       are no longer used from the list of registers that can be stored.
+       * alpha-nat.c (fetch_osf_core_registers): Add missing value in
+       core_reg_mapping array.
+
 2004-12-01  Joel Brobecker  <brobecker@gnat.com>
 
        * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
index 6fe6bdfeec62a8419143aaf33cbf0d566d95d12b..f8d04b1c280ce000c00f4d644df636dd18abeeb1 100644 (file)
@@ -80,7 +80,7 @@ fetch_osf_core_registers (char *core_reg_sect, unsigned core_reg_size,
     EFL + 8, EFL + 9, EFL + 10, EFL + 11, EFL + 12, EFL + 13, EFL + 14, EFL + 15,
     EFL + 16, EFL + 17, EFL + 18, EFL + 19, EFL + 20, EFL + 21, EFL + 22, EFL + 23,
     EFL + 24, EFL + 25, EFL + 26, EFL + 27, EFL + 28, EFL + 29, EFL + 30, EFL + 31,
-    CF_PC, -1
+    CF_PC, -1, -1
 #else
 #define EFL (EF_SIZE / 8)
     EF_V0, EF_T0, EF_T1, EF_T2, EF_T3, EF_T4, EF_T5, EF_T6,
@@ -91,7 +91,7 @@ fetch_osf_core_registers (char *core_reg_sect, unsigned core_reg_size,
     EFL + 8, EFL + 9, EFL + 10, EFL + 11, EFL + 12, EFL + 13, EFL + 14, EFL + 15,
     EFL + 16, EFL + 17, EFL + 18, EFL + 19, EFL + 20, EFL + 21, EFL + 22, EFL + 23,
     EFL + 24, EFL + 25, EFL + 26, EFL + 27, EFL + 28, EFL + 29, EFL + 30, EFL + 31,
-    EF_PC, -1
+    EF_PC, -1, -1
 #endif
   };
 
index 71d29dad88314cf363317c0d5ed9cd041fa39bde..5dc8558168c95b8a95e3e20487ede0596a05ce3e 100644 (file)
 #include "alpha-tdep.h"
 
 \f
+/* Return the name of the REGNO register.
+
+   An empty name corresponds to a register number that used to
+   be used for a virtual register. That virtual register has
+   been removed, but the index is still reserved to maintain
+   compatibility with existing remote alpha targets.  */
+
 static const char *
 alpha_register_name (int regno)
 {
@@ -73,13 +80,15 @@ alpha_register_name (int regno)
 static int
 alpha_cannot_fetch_register (int regno)
 {
-  return regno == ALPHA_ZERO_REGNUM;
+  return (regno == ALPHA_ZERO_REGNUM
+          || strlen (alpha_register_name (regno)) == 0);
 }
 
 static int
 alpha_cannot_store_register (int regno)
 {
-  return regno == ALPHA_ZERO_REGNUM;
+  return (regno == ALPHA_ZERO_REGNUM
+          || strlen (alpha_register_name (regno)) == 0);
 }
 
 static struct type *
This page took 0.048418 seconds and 4 git commands to generate.