This is the mail archive of the gdb-patches@sourceware.org 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: RFC: %ebp-based backtrace patch


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


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