This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Watchpoints and Ctrl-C
- From: "Robert Norton" <rnorton at broadcom dot com>
- To: gdb at sourceware dot org
- Date: Fri, 11 Jul 2008 07:48:47 -0700
- Subject: Watchpoints and Ctrl-C
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