[RFA] epilogue unwinder for i386 (reverse 1/2)

Michael Snyder msnyder@vmware.com
Sat Jul 4 00:37:00 GMT 2009


Michael Snyder wrote:
> This comes out of a discussion with Daniel, about how gcc
> does not generate the right dwarf info to allow correct
> frame unwinding in function epilogues, causing frame_unwind
> to return bad results.
> 
> It's necessary for reverse-step, which will frequently step
> backward to the return instruction of a function.  But it also
> provides an improvement for forward debugging, in that now,
> without this change, if you STEPI until you are at the return
> instruction, you will get a bad backtrace.
> 
> The infrun changes that take advantage of this patch will follow
> separately.
> 
> Michael

Oops, the patch wasn't meant to have that "#if 0" in it...
corrected patch below.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: epilogue.txt
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20090704/43a18ad6/attachment.txt>


More information about the Gdb-patches mailing list