aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-04-24 18:25:45 +0000
committerAndrew Cagney <cagney@redhat.com>2002-04-24 18:25:45 +0000
commita0abec0350ce5ea3c78560b3c15b6e9638d3be84 (patch)
tree74dc4440d924f5fd72409ce145541fa4e60589c9 /gdb/arm-tdep.c
parentd7bd68ca3c7db1b7336498cb1651e9d782eb11bc (diff)
downloadgdb-a0abec0350ce5ea3c78560b3c15b6e9638d3be84.zip
gdb-a0abec0350ce5ea3c78560b3c15b6e9638d3be84.tar.gz
gdb-a0abec0350ce5ea3c78560b3c15b6e9638d3be84.tar.bz2
* arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
NUM_PSEUDO_REGS can be used.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index b69aef9..f05ff6b 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)