This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove bogosities from dwarf2cfi.c:cfi_pop_frame()


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().

Heads up,

I think the write_register_bytes() call should be replaced by regcache_register_write(current_regcache, ). This is new code so it doesn't need to go through any of that nasty write_register_bytes() stuff.

Andrew




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]