diff options
author | Mark Kettenis <kettenis@gnu.org> | 2002-07-04 14:43:51 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2002-07-04 14:43:51 +0000 |
commit | 2404952e63ce440e3b9896f20256887d9d888c63 (patch) | |
tree | aef48c4293dc283d0b8f923cf305fbd286435aa5 /gdb/dwarf2cfi.c | |
parent | 4bd5a3935bde2bfc8b1b569e915a35da3e4daa94 (diff) | |
download | gdb-2404952e63ce440e3b9896f20256887d9d888c63.zip gdb-2404952e63ce440e3b9896f20256887d9d888c63.tar.gz gdb-2404952e63ce440e3b9896f20256887d9d888c63.tar.bz2 |
* dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
Don't call get_current_frame().
Diffstat (limited to 'gdb/dwarf2cfi.c')
-rw-r--r-- | gdb/dwarf2cfi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/dwarf2cfi.c b/gdb/dwarf2cfi.c index 442ae70..7302b45 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); |