aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-04-21 03:46:44 +0000
committerAndrew Cagney <cagney@redhat.com>2002-04-21 03:46:44 +0000
commit29673b2905f938f0bedfc8035e3ab51f8483c112 (patch)
treea0dd4cd6813b84cd6c83c2e5757a30b21d488ff2 /gdb/arm-tdep.c
parent6c86dcd550938e405f823819f26ab9bc5cfb0246 (diff)
downloadgdb-29673b2905f938f0bedfc8035e3ab51f8483c112.zip
gdb-29673b2905f938f0bedfc8035e3ab51f8483c112.tar.gz
gdb-29673b2905f938f0bedfc8035e3ab51f8483c112.tar.bz2
* arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
instead of NUM_PSEUDO_REGS.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index b164f8e..3474d1f 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -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;
}