From: Daniel Jacobowitz <drow@false.org>
To: Robert Norton <rnorton@broadcom.com>
Cc: gdb@sourceware.org
Subject: Re: Watchpoints and Ctrl-C
Date: Fri, 11 Jul 2008 15:03:00 -0000 [thread overview]
Message-ID: <20080711150255.GA8572@caradoc.them.org> (raw)
In-Reply-To: <B0D822BFECD50F4991F2516EA50F273C07AEB155@NT-IRVA-0752.brcm.ad.broadcom.com>
On Fri, Jul 11, 2008 at 07:48:47AM -0700, Robert Norton wrote:
> 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.
Perhaps. I think most uses of RETURN_MASK_ALL are incorrect.
There are some where, correct or not, it is necessary - I remember a
conversation with Vladimir about this during review of this patch:
2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
* inf-loop.c (inferior_event_handler): Call bpstat_do_action,
and catch all exceptions from it.
* top.c (command_line_handler_continuation): Don't
call bpstat_do_action here.
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2008-07-11 15:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-11 14:49 Robert Norton
2008-07-11 15:03 ` Daniel Jacobowitz [this message]
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=20080711150255.GA8572@caradoc.them.org \
--to=drow@false.org \
--cc=gdb@sourceware.org \
--cc=rnorton@broadcom.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