From: "Robert Norton" <rnorton@broadcom.com>
To: gdb@sourceware.org
Subject: Watchpoints and Ctrl-C
Date: Fri, 11 Jul 2008 14:49:00 -0000 [thread overview]
Message-ID: <B0D822BFECD50F4991F2516EA50F273C07AEB155@NT-IRVA-0752.brcm.ad.broadcom.com> (raw)
Hi,
The function bpstat_stop_status in breakpoints.c calls
watchpoint_check() via catch_errors with a mask of RETURN_MASK_ALL. This
means that if the user presses Ctrl-C whilst a watchpoint is being
evaluated (as is quite likely if using software watchpoints on a
simulator target) then GDB issues the message "Error evaluating
watchpoint x" and deletes the watchpoint. Of course there wasn't really
an error so this is quite confusing!
Shouldn't this be using RETURN_MASK_ERROR?
There's a similar call to breakpoint_cond_eval which might require the
same treatment.
Robert
next reply other threads:[~2008-07-11 14:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-11 14:49 Robert Norton [this message]
2008-07-11 15:03 ` Daniel Jacobowitz
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=B0D822BFECD50F4991F2516EA50F273C07AEB155@NT-IRVA-0752.brcm.ad.broadcom.com \
--to=rnorton@broadcom.com \
--cc=gdb@sourceware.org \
/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