From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21783 invoked by alias); 26 Mar 2005 13:27:44 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21746 invoked from network); 26 Mar 2005 13:27:39 -0000 Received: from unknown (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org with SMTP; 26 Mar 2005 13:27:39 -0000 Received: from zaretski (IGLD-80-230-9-205.inter.net.il [80.230.9.205]) by romy.inter.net.il (MOS 3.5.6-GR) with ESMTP id AVL38656 (AUTH halo1); Sat, 26 Mar 2005 15:27:37 +0200 (IST) Date: Sat, 26 Mar 2005 13:27:00 -0000 From: "Eli Zaretskii" To: GDB Message-ID: <01c53207$Blat.v2.4$3def9b00@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 In-reply-to: <20050325161239.GA12231@white> (message from Bob Rossi on Fri, 25 Mar 2005 11:12:39 -0500) Subject: Re: [mi] watchpoint-scope exec async command Reply-to: Eli Zaretskii References: <20050325161239.GA12231@white> X-SW-Source: 2005-03/txt/msg00241.txt.bz2 > Date: Fri, 25 Mar 2005 11:12:39 -0500 > From: Bob Rossi > > (gdb) > -break-watch param > ^done,wpt={number="2",exp="param"} > (gdb) > -exec-continue > ^running > (gdb) > ~"Hardware watchpoint 2 deleted because the program has left the block \n" > ~"in which its expression is valid.\n" > *stopped,reason="exited",exit-code="02" > (gdb) > > Is it just a bug that there is no 'watchpoint-scope' returned? I think it's a bug, yes: there's one instance in breakpoint.c (specifically, in the function insert_bp_location) that uses printf_filtered instead of the ui_* functions to produce the warning about a watchpoint that went out of scope. I think it should use the same code that is used by watchpoint_check to produce a similar warning.