From: Daniel Jacobowitz <drow@false.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Jeff Johnston <jjohnstn@redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: [RFC]: x86 threaded watchpoint support [2/3]
Date: Tue, 15 Jun 2004 12:22:00 -0000 [thread overview]
Message-ID: <20040615122216.GA31252@nevyn.them.org> (raw)
In-Reply-To: <8011-Tue15Jun2004071916+0300-eliz@gnu.org>
On Tue, Jun 15, 2004 at 07:19:17AM +0200, Eli Zaretskii wrote:
> > Date: Mon, 14 Jun 2004 17:40:20 -0400
> > From: Jeff Johnston <jjohnstn@redhat.com>
> >
> > The change is needed because with the threading model, you can have multiple
> > events to process. So, if you check your watchpoint values, all of them may
> > have changed but you end up reporting an invalid thread location. For example,
> > I was getting watchpoints changing at the same time of a new thread event (it
> > couldn't discern). The reported location was __nptl_create_event (not very
> > useful).
>
> Does this mean that when a watchpoint breaks, it stops only the thread
> that hit the watchpoint, while other threads continue to run?
>
> If all threads stop, then there could not be multiple events, unless
> we are talking about a machine with more than one CPU.
>
> Or am I missing something?
It's the same problem we already have, just more likely to trigger.
The kernel does not stop threads for us; we do it ourselves after we
see the first thread trap. Even if the kernel did it, there would be a
substantial window for other threads to run.
So any time that we see an event from one thread, there can be an
arbitrary set of events from other threads. In a heavily threaded
application, having extra events at the thread creation breakpoint is
typical.
--
Daniel Jacobowitz
next prev parent reply other threads:[~2004-06-15 12:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-11 21:33 Jeff Johnston
2004-06-12 9:42 ` Eli Zaretskii
2004-06-14 21:40 ` Jeff Johnston
2004-06-15 4:23 ` Eli Zaretskii
2004-06-15 12:22 ` Daniel Jacobowitz [this message]
2004-06-14 14:07 Ulrich Weigand
2004-06-15 15:22 Ulrich Weigand
2004-06-16 21:39 ` jjohnstn
2004-06-17 4:24 ` Eli Zaretskii
2004-06-17 19:47 ` Jeff Johnston
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=20040615122216.GA31252@nevyn.them.org \
--to=drow@false.org \
--cc=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=jjohnstn@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