From: Daniel Jacobowitz <drow@false.org>
To: Orjan Friberg <orjan.friberg@axis.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: schedlock.exp questions
Date: Wed, 25 Aug 2004 16:03:00 -0000 [thread overview]
Message-ID: <20040825160315.GA31412@nevyn.them.org> (raw)
In-Reply-To: <412CABED.10108@axis.com>
On Wed, Aug 25, 2004 at 05:10:37PM +0200, Orjan Friberg wrote:
> Daniel Jacobowitz wrote:
> >
> >No. The request was "single-step this thread, but allow other threads
> >to run while you do it". Other threads might report a breakpoint (not
> >possible in this testcase), but they shouldn't report a single-step
> >trap - they shouldn't singlestep.
>
> Thanks for clarifying. Would you mind explaining the "not possible in
> this testcase" part? I do get spurious SIGTRAPs for the other threads
> from the "break 41 if arg != 5" breakpoint, reported as SIGTRAP (instead
> of as breakpoint hits).
What should happen is:
- we stop all threads
- we see that a thread has hit this breakpoint
- we check that this breakpoint should stop
- it shouldn't! condition is false!
- we singlestep this thread past the breakpoint
- we resume
This is a twisty and nasty part of infrun. It is full of bugs and
things that need to be rearchitected. So it's quite likely it doesn't
work right.
Is this native or remote (gdbserver based)? I have some patches which
make it substantially more reliable on slow native targets but I
haven't had enough time to test them properly. They shouldn't affect
remote though.
--
Daniel Jacobowitz
next prev parent reply other threads:[~2004-08-25 16:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-24 14:51 Orjan Friberg
2004-08-24 14:55 ` Daniel Jacobowitz
2004-08-25 15:11 ` Orjan Friberg
2004-08-25 16:03 ` Daniel Jacobowitz [this message]
2004-08-27 13:59 ` Orjan Friberg
2004-08-31 14:41 ` Orjan Friberg
2004-09-07 12:48 ` Orjan Friberg
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=20040825160315.GA31412@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=orjan.friberg@axis.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