Wed Apr 24 14:22:21 2002 Andrew Cagney * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor NUM_PSEUDO_REGS can be used. Index: arm-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/arm-tdep.c,v retrieving revision 1.52 diff -c -r1.52 arm-tdep.c *** arm-tdep.c 23 Apr 2002 18:10:06 -0000 1.52 --- arm-tdep.c 24 Apr 2002 18:21:17 -0000 *************** *** 3035,3040 **** --- 3035,3043 ---- if (prologue_cache.saved_regs != NULL) xfree (prologue_cache.saved_regs); + /* We can't use NUM_REGS nor NUM_PSEUDO_REGS here, since that still + references the old architecture vector, not the one we are + building here. */ prologue_cache.saved_regs = (CORE_ADDR *) xcalloc (1, (sizeof (CORE_ADDR) * (gdbarch_num_regs (gdbarch)