Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: Jim Blandy <jimb@zenia.red-bean.com>, gdb-patches@sources.redhat.com
Subject: Re: RFA: Recognize bottom of stack on Linux
Date: Mon, 04 Feb 2002 17:32:00 -0000	[thread overview]
Message-ID: <3C5F3619.9060708@cygnus.com> (raw)
In-Reply-To: <1020204190121.ZM17294@localhost.localdomain>

> 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 ....''  :-)

Andrew


  reply	other threads:[~2002-02-05  1:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-03 18:21 Jim Blandy
2002-02-03 19:21 ` Daniel Jacobowitz
2002-02-03 23:00   ` Michael Snyder
2002-02-05 11:58   ` Jim Blandy
2002-02-05 13:57     ` Daniel Jacobowitz
2002-02-06 11:24       ` Jim Blandy
2002-02-06 16:09         ` Andrew Cagney
2002-03-30 21:56         ` Daniel Jacobowitz
2002-02-03 22:15 ` Eli Zaretskii
2002-02-04 11:02 ` Kevin Buettner
2002-02-04 17:32   ` Andrew Cagney [this message]
2002-02-04 17:42     ` Kevin Buettner
2002-02-04 17:44       ` Daniel Jacobowitz
2002-02-04 17:57         ` Michael Snyder
2002-02-04 18:55           ` Daniel Jacobowitz
2002-02-05 11:52         ` Jim Blandy
2002-02-06 16:02           ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C5F3619.9060708@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jimb@zenia.red-bean.com \
    --cc=kevinb@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox