Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Remove bogosities from dwarf2cfi.c:cfi_pop_frame()
@ 2002-07-08  5:24 Mark Kettenis
  2002-07-08 11:37 ` Andrew Cagney
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Kettenis @ 2002-07-08  5:24 UTC (permalink / raw)
  To: gdb-patches

Using alloca() here is pretty obvious.  I discussed the other fix with
Michael Ludvig.

Checked in.

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
	Don't call get_current_frame().

Index: dwarf2cfi.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2cfi.c,v
retrieving revision 1.11
diff -u -p -r1.11 dwarf2cfi.c
--- dwarf2cfi.c 21 Jun 2002 13:53:24 -0000 1.11
+++ dwarf2cfi.c 4 Jul 2002 14:40:22 -0000
@@ -1757,10 +1757,8 @@ 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++)
     {


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-07-10 16:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-08  5:24 [PATCH] Remove bogosities from dwarf2cfi.c:cfi_pop_frame() Mark Kettenis
2002-07-08 11:37 ` Andrew Cagney
2002-07-10  5:22   ` Richard Earnshaw
2002-07-10  9:43     ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox