Index: alpha-tdep.c =================================================================== RCS file: /nile.c/cvs/Dev/gdb/gdb-6.3/gdb/alpha-tdep.c,v retrieving revision 1.2 diff -u -p -r1.2 alpha-tdep.c --- alpha-tdep.c 1 Dec 2004 01:52:42 -0000 1.2 +++ alpha-tdep.c 1 Dec 2004 01:58:08 -0000 @@ -47,6 +47,13 @@ #include "alpha-tdep.h" +/* Return the name of the REGNO register. + + An empty name correspond 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 * Index: alpha-nat.c =================================================================== RCS file: /nile.c/cvs/Dev/gdb/gdb-6.3/gdb/alpha-nat.c,v retrieving revision 1.1 diff -u -p -r1.1 alpha-nat.c --- alpha-nat.c 20 Oct 2004 23:11:33 -0000 1.1 +++ alpha-nat.c 1 Dec 2004 01:58:08 -0000 @@ -80,7 +80,7 @@ fetch_osf_core_registers (char *core_reg 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 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 };