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: RFA: Recognize bottom of stack on Linux


On Sun, Feb 03, 2002 at 09:06:36PM -0500, Jim Blandy wrote:
> 
> Now, some folks feel that GDB should show the whole stack, including
> _start, __libc_start_main, and anything else that's there.  However,
> this isn't the way GDB has ever traditionally behaved on native
> targets.  So this patch makes GDB's backtraces end after main.
> 
> 2002-02-03  Jim Blandy  <jimb@redhat.com>
> 
> 	* i386-linux-tdep.c (i386_linux_frame_chain): Stop the frame chain
> 	after `main', not just after the compilation unit containing the
> 	entry point.

Shouldn't we use func_frame_chain_valid instead of
file_frame_chain_valid instead of duplicating this?

I don't understand why that function doesn't have more callers.  It
seems that at least all non-embedded targets, or at the very least all
Linux targets, should use it.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


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