From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20214 invoked by alias); 21 Nov 2001 12:09:53 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 20189 invoked from network); 21 Nov 2001 12:09:49 -0000 Received: from unknown (HELO is.elta.co.il) (199.203.121.2) by sourceware.cygnus.com with SMTP; 21 Nov 2001 12:09:49 -0000 Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id OAA05023; Wed, 21 Nov 2001 14:09:22 +0200 (IST) Date: Fri, 09 Nov 2001 07:21:00 -0000 From: Eli Zaretskii X-Sender: eliz@is To: Pierre Muller cc: gdb@sources.redhat.com Subject: Re: Bug with watchpoints on Linux In-Reply-To: <4.2.0.58.20011121124943.00a4a288@ics.u-strasbg.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2001-11/txt/msg00099.txt.bz2 On Wed, 21 Nov 2001, Pierre Muller wrote: > But at the second run, the program is never stopped because > of the changes to this global variable. > > It seems like there is a problem with the hardware watchpoint > resetting. IIRC, GDB removes the watchpoints when the program exits. You should see a message to that effect, and "info breakpoints" should reflect it. If that's not what you see, it's possible that there's a bug somewhere. You could try the maint comamnd show-debug-regs to see what is going on with watchpoints.