From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23296 invoked by alias); 11 Jul 2008 14:49:22 -0000 Received: (qmail 23286 invoked by uid 22791); 11 Jul 2008 14:49:22 -0000 X-Spam-Check-By: sourceware.org Received: from mms3.broadcom.com (HELO MMS3.broadcom.com) (216.31.210.19) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 11 Jul 2008 14:49:04 +0000 Received: from [10.11.16.99] by MMS3.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.2)); Fri, 11 Jul 2008 07:48:50 -0700 X-Server-Uuid: B55A25B1-5D7D-41F8-BC53-C57E7AD3C201 Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id 237932B0; Fri, 11 Jul 2008 07:48:50 -0700 (PDT) Received: from mail-irva-8.broadcom.com (mail-irva-8 [10.11.18.52]) by mail-irva-10.broadcom.com (Postfix) with ESMTP id 0807E2B0 for ; Fri, 11 Jul 2008 07:48:50 -0700 (PDT) Received: from mail-irva-13.broadcom.com (mail-irva-13.broadcom.com [10.11.16.103]) by mail-irva-8.broadcom.com (MOS 3.7.5a-GA) with ESMTP id GZQ56118; Fri, 11 Jul 2008 07:48:49 -0700 (PDT) Received: from NT-IRVA-0752.brcm.ad.broadcom.com (nt-irva-0752 [10.8.194.67]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id D07FA74CFE for ; Fri, 11 Jul 2008 07:48:49 -0700 ( PDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: Watchpoints and Ctrl-C Date: Fri, 11 Jul 2008 14:49:00 -0000 Message-ID: From: "Robert Norton" To: gdb@sourceware.org X-WSS-ID: 6469AD5863S95076971-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-07/txt/msg00120.txt.bz2 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