From: Eli Zaretskii <eliz@is.elta.co.il>
To: Doug Evans <dje@transmeta.com>
Cc: gdb@sources.redhat.com
Subject: Re: does bpstat_print stop printing prematurely?
Date: Mon, 15 Apr 2002 22:03:00 -0000 [thread overview]
Message-ID: <Pine.SUN.3.91.1020416084918.14169B-100000@is> (raw)
In-Reply-To: <200204152003.NAA11126@casey.transmeta.com>
On Mon, 15 Apr 2002, Doug Evans wrote:
> What if there is 1 breakpoint that triggers and two watchpoints?
Do you actually have an example of this, or can craft one?
You see, I think it's all but impossible to have a breakpoint and a
watchpoint trigger at the same PC. That's because the CPU carefully
designs its faults and traps so that one always preceeds the other.
(For soft breakpoints, the ones implemented by inserting a breakpoint
opcode into the code, doing so overwrites the instruction that would
have caused a watchpoint to trigger, so the simultaneous triggering is
again impossible.)
> As a user, whenever execution stops I'd kinda like to know which
> of all of my active watchpoints triggered without having to
> manually examine each one.
GDB should already cite all the watchpoints that trigger, unless there's
a bug. Again, please provide a specific example of a failure, if you can.
> Things are even more confusing if gdb prints some but not all
> of the triggering watchpoints.
Cannot reproduce this on my machine with GDB 5.1.1: if I set two
watchpoints on the same address, GDB announces both of them. Please tell
what OS did you try that on, and which version of GDB was that.
> Example: Suppose the `bs' arg to bpstat_print contains a watchpoint,
> a pc breakpoint, and another watchpoint, in that order.
>
> Currently bpstat_print will print the first watchpoint and the
> pc breakpoint but not the second watchpoint. Blech.
An example program that exhibits this behavior would be nice. Thanks.
next prev parent reply other threads:[~2002-04-16 5:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-15 13:03 Doug Evans
2002-04-15 22:03 ` Eli Zaretskii [this message]
2002-04-15 23:43 ` Doug Evans
2002-04-16 0:40 ` Eli Zaretskii
2002-04-16 5:55 ` Eli Zaretskii
2002-04-16 8:43 ` Doug Evans
2002-04-16 10:50 ` Doug Evans
2002-05-09 20:44 ` 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=Pine.SUN.3.91.1020416084918.14169B-100000@is \
--to=eliz@is.elta.co.il \
--cc=dje@transmeta.com \
--cc=gdb@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