aboutsummaryrefslogtreecommitdiff
path: root/gdb/trad-frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/trad-frame.c')
-rw-r--r--gdb/trad-frame.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/trad-frame.c b/gdb/trad-frame.c
index 7c7952d..b330668 100644
--- a/gdb/trad-frame.c
+++ b/gdb/trad-frame.c
@@ -51,8 +51,7 @@ trad_frame_alloc_saved_regs (struct frame_info *next_frame)
{
int regnum;
struct gdbarch *gdbarch = get_frame_arch (next_frame);
- int numregs = gdbarch_num_regs (current_gdbarch)
- + gdbarch_num_pseudo_regs (current_gdbarch);
+ int numregs = gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch);
struct trad_frame_saved_reg *this_saved_regs
= FRAME_OBSTACK_CALLOC (numregs, struct trad_frame_saved_reg);
for (regnum = 0; regnum < numregs; regnum++)