aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-07-04 14:43:51 +0000
committerMark Kettenis <kettenis@gnu.org>2002-07-04 14:43:51 +0000
commit2404952e63ce440e3b9896f20256887d9d888c63 (patch)
treeaef48c4293dc283d0b8f923cf305fbd286435aa5
parent4bd5a3935bde2bfc8b1b569e915a35da3e4daa94 (diff)
downloadgdb-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().
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2cfi.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9a7d8e9..d8fab79 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-04 Mark Kettenis <kettenis@gnu.org>
+
+ * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
+ Don't call get_current_frame().
+
2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
* i386-nat.c (child_post_startup_inferior): New function
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);