From 2404952e63ce440e3b9896f20256887d9d888c63 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 4 Jul 2002 14:43:51 +0000 Subject: [PATCH] * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf. Don't call get_current_frame(). --- gdb/ChangeLog | 5 +++++ gdb/dwarf2cfi.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9a7d8e9aa26..d8fab79800e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-07-04 Mark Kettenis + + * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf. + Don't call get_current_frame(). + 2002-07-04 Pierre Muller * i386-nat.c (child_post_startup_inferior): New function diff --git a/gdb/dwarf2cfi.c b/gdb/dwarf2cfi.c index 442ae70e540..7302b45bcdd 100644 --- a/gdb/dwarf2cfi.c +++ b/gdb/dwarf2cfi.c @@ -1757,11 +1757,9 @@ cfi_write_fp (CORE_ADDR val) void cfi_pop_frame (struct frame_info *fi) { - char regbuf[MAX_REGISTER_RAW_SIZE]; + char *regbuf = alloca (MAX_REGISTER_RAW_SIZE); int regnum; - fi = get_current_frame (); - for (regnum = 0; regnum < NUM_REGS; regnum++) { get_reg (regbuf, UNWIND_CONTEXT (fi), regnum); -- 2.30.2