* arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
authorAndrew Cagney <cagney@redhat.com>
Sun, 21 Apr 2002 03:46:44 +0000 (03:46 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 21 Apr 2002 03:46:44 +0000 (03:46 +0000)
instead of NUM_PSEUDO_REGS.

gdb/ChangeLog
gdb/arm-tdep.c

index a0d389b9a655be819eb0cec4616b2177ffb2fc45..50ca90d5905698de44e42a9fc582d6bd0453762d 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-20  Andrew Cagney  <ac131313@redhat.com>
+
+       * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
+       instead of NUM_PSEUDO_REGS.
+
 2002-04-20  David S. Miller  <davem@redhat.com>
 
        * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
index b164f8e73a21a3b5a959157c55243b37885e4c94..3474d1fc0788c4ad4c163d7cf531a666d7c811e0 100644 (file)
@@ -3015,7 +3015,8 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
   prologue_cache.saved_regs = (CORE_ADDR *)
     xcalloc (1, (sizeof (CORE_ADDR)
-                * (gdbarch_num_regs (gdbarch) + NUM_PSEUDO_REGS)));
+                * (gdbarch_num_regs (gdbarch)
+                   + gdbarch_num_pseudo_regs (gdbarch))));
 
   return gdbarch;
 }