From 29673b2905f938f0bedfc8035e3ab51f8483c112 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 21 Apr 2002 03:46:44 +0000 Subject: [PATCH] * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs instead of NUM_PSEUDO_REGS. --- gdb/ChangeLog | 5 +++++ gdb/arm-tdep.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a0d389b9a65..50ca90d5905 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-04-20 Andrew Cagney + + * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs + instead of NUM_PSEUDO_REGS. + 2002-04-20 David S. Miller * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index b164f8e73a2..3474d1fc078 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; } -- 2.30.2