Re: RFC: %ebp-based backtrace patch

Daniel Jacobowitz
2009-07-06T20:21:16Z

On Mon, Jul 06, 2009 at 04:10:23PM -0400, Frank Ch. Eigler wrote:
> Daniel Jacobowitz <drow@false.org> writes:
>
> > A number of Linux distributions are carrying the attached patch from
> > Michael Matz. [...]
> > https://bugzilla.novell.com/show_bug.cgi?id=390722#c25
> >[...]
> > * i386-tdep.c (i386_frame_cache): Assume anonymous functions use
> > a frame pointer.
> >[...]
>
> Could gdb partially disassemble such functions to check
> whether %ebp is likely being used as this heuristic expects?

I don't think so, but maybe someone else will come up with a way.
Since we don't know the function's start address, we could be anywhere
in the function.

--
Daniel Jacobowitz
CodeSourcery