From a0abec0350ce5ea3c78560b3c15b6e9638d3be84 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 24 Apr 2002 18:25:45 +0000 Subject: [PATCH] * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor NUM_PSEUDO_REGS can be used. --- gdb/ChangeLog | 5 +++++ gdb/arm-tdep.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a865bfc6670..f8cc9551c54 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +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. + 2002-04-24 Andrew Cagney * arch-utils.h: Update copyright. diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index b69aef9f081..f05ff6b14eb 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -3035,6 +3035,9 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) 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) -- 2.30.2