This is the mail archive of the
mailing list for the GDB project.
Re: RFA: Recognize bottom of stack on Linux
> On Feb 3, 9:06pm, 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.
> What's the reason for this change? I think it'd be better for GDB
> to show as much of the stack as possible regardless of tradition.
One reason that comes to mind is that what appears below main is
starting to get a little out of control. In the good old days, nothing
appeared below main because there was simply nothing there. The may not
have even had an entry point since crt0.o always came first. Now, well ...
Perhaphs the correct fix is to let the user decide. Add a ``set
stack-bottom-strategy ....'' :-)