From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17120 invoked by alias); 7 Nov 2007 02:41:10 -0000 Received: (qmail 17082 invoked by uid 22791); 7 Nov 2007 02:41:09 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 07 Nov 2007 02:41:06 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id ADA5498353; Wed, 7 Nov 2007 02:41:03 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 7102B9830E; Wed, 7 Nov 2007 02:41:03 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1Ipaqj-0000Iw-VC; Tue, 06 Nov 2007 21:41:01 -0500 Date: Wed, 07 Nov 2007 02:41:00 -0000 From: Daniel Jacobowitz To: Siva Velusamy Cc: gdb@sourceware.org Subject: Re: Ctrl+C when a watchpoint is set gdb Message-ID: <20071107024101.GA850@caradoc.them.org> Mail-Followup-To: Siva Velusamy , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) 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: 2007-11/txt/msg00043.txt.bz2 On Tue, Nov 06, 2007 at 06:32:04PM -0800, Siva Velusamy wrote: > However, the function bpstat_explains_signal is defined as follows: > > breakpoint.h:547 > /* Nonzero if a signal that we got in wait() was due to circumstances > explained by the BS. */ > /* Currently that is true if we have hit a breakpoint, or if there is > a watchpoint enabled. */ > #define bpstat_explains_signal(bs) ((bs) != NULL) > > Since there is a watchpoint defined, this ends up evaluating to true, > even though this is a trap signal caused by Ctrl+C. Eventually, this > leads to keep_going(ecs) being called. You shouldn't be getting to the call to bpstat_explains_signal at all. Is your remote stub returning the wrong signal for C-c? It should be TARGET_SIGNAL_INT, not TARGET_SIGNAL_TRAP. -- Daniel Jacobowitz CodeSourcery