Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Jim Blandy" <jimb@red-bean.com>
To: "Andrew STUBBS" <andrew.stubbs@st.com>
Cc: "Joel Brobecker" <brobecker@adacore.com>, gdb-patches@sources.redhat.com
Subject: Re: Suggestion: backtrace stop guard for threads callstacks
Date: Thu, 02 Mar 2006 17:38:00 -0000	[thread overview]
Message-ID: <8f2776cb0603020938s3d43f8cx38b79fba44c87a70@mail.gmail.com> (raw)
In-Reply-To: <4406CEB2.5000802@st.com>

On 3/2/06, Andrew STUBBS <andrew.stubbs@st.com> wrote:
> How about:
>
> set backtrace main-functions main;mytaskfunc;_start
>
> or perhaps:
>
> set backtrace add-main-function mytaskfunc
>
> so that the user can stop backtraces whereever is appropriate for their
> environment.

That's certainly easy to do.  But it's clearly preferable for people
to properly mark their thread start functions.  If I'm remembering
right, we haven't yet seen any reports of this problem in cases where
we couldn't get the thread start function marked.  So I'd argue we
don't have any situations where this command was needed --- only cases
where using it would have helped people paper over an underlying
problem that needs to be fixed elsewhere.

Given how often this comes up, would it make sense to add an appendix
to the GDB manual explaining how to terminate backtraces?


  reply	other threads:[~2006-03-02 17:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-02  1:29 Joel Brobecker
2006-03-02  3:19 ` Daniel Jacobowitz
2006-03-02 10:56   ` Andrew STUBBS
2006-03-02 17:38     ` Jim Blandy [this message]
2006-03-02 17:55   ` Joel Brobecker
2006-03-02 17:58     ` Daniel Jacobowitz
2006-03-02 18:36       ` Daniel Jacobowitz
2006-03-02 22:14       ` Jim Blandy
2006-03-02 22:17         ` Jim Blandy

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=8f2776cb0603020938s3d43f8cx38b79fba44c87a70@mail.gmail.com \
    --to=jimb@red-bean.com \
    --cc=andrew.stubbs@st.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sources.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