From: Pedro Alves <pedro@codesourcery.com>
To: "Ulrich Weigand" <uweigand@de.ibm.com>
Cc: Daniel Jacobowitz <drow@false.org>,
Vladimir Prus <vladimir@codesourcery.com>,
gdb-patches@sourceware.org
Subject: Re: [RFA] Make continuations per-thread.
Date: Tue, 06 May 2008 19:02:00 -0000 [thread overview]
Message-ID: <200805061911.52375.pedro@codesourcery.com> (raw)
In-Reply-To: <200805021519.m42FJ6bd009452@d12av02.megacenter.de.ibm.com>
A Friday 02 May 2008 16:19:06, Ulrich Weigand wrote:
> Note that current GDB is really broken when it comes to handling
> step / next operations that are interrupted by an event in some
> other thread. There is some code to "context switch" the stepping
> status, but this appears to be incomplete, and leads to inconsistent
> results; e.g. GDB can run into internal assertion failures like
> "Thread Event Breakpoint: gdb should not stop!" (see PR 2250).
>
> I'm currently carrying the following patch in our GDB builds that
> fixes the issue be ensuring:
>
Thanks for showing us that.
> - If the step operation is interrupted by an *internal* breakpoint
> that is handled transparently, the operation continues in a
> transparent and consistent manner after the breakpoint was handled.
>
> - If the step operation is interrupted by an *explicit* breakpoint
> that breaks to a user prompt, it is completely cancelled. It is
> then up to the user how to continue from the prompt.
>
A agree that this behaviour is sensible in all-stop
(what we have now) mode. I tried your patch, and the bahaviour
makes sense to me.
Note, however, that in non-stop mode, we need to retain the
stepping state per-thread (and actually make a
few more things per-thread), so we'd like to keep the variables
you're removing from struct thread_info in some form.
http://sourceware.org/ml/gdb-patches/2008-05/msg00232.html
> Now it looks like the second point is in conflict to the goal you
> are proposing here (namely, that even after a user prompt, the
> interrupted step/next/finish still continues in some manner).
> I'm not sure how this could be accomplished ...
>
Our major goal is to have that in non-stop mode. It seemed
we would win some of it for free in all-stop mode, but it
turned out it isn't so.
Thanks!
--
Pedro Alves
next prev parent reply other threads:[~2008-05-06 18:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-24 23:08 Vladimir Prus
2008-05-02 3:00 ` Daniel Jacobowitz
2008-05-02 11:34 ` Pedro Alves
2008-05-02 11:43 ` Pedro Alves
2008-05-02 11:51 ` Vladimir Prus
2008-05-02 13:24 ` Daniel Jacobowitz
2008-05-02 13:30 ` Vladimir Prus
2008-05-02 13:44 ` Daniel Jacobowitz
2008-05-02 15:33 ` Ulrich Weigand
2008-05-06 19:02 ` Pedro Alves [this message]
2008-05-02 13:51 ` Pedro Alves
2008-05-02 14:15 ` Vladimir Prus
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=200805061911.52375.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=uweigand@de.ibm.com \
--cc=vladimir@codesourcery.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