From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15310 invoked by alias); 21 Nov 2001 12:01:52 -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 15083 invoked from network); 21 Nov 2001 12:01:42 -0000 Received: from unknown (HELO cerbere.u-strasbg.fr) (130.79.112.7) by sourceware.cygnus.com with SMTP; 21 Nov 2001 12:01:42 -0000 Received: from laocoon (laocoon.u-strasbg.fr [130.79.112.72]) by cerbere.u-strasbg.fr (8.9.3/8.8.7) with ESMTP id NAA07936 for ; Wed, 21 Nov 2001 13:01:41 +0100 Message-Id: <4.2.0.58.20011121124943.00a4a288@ics.u-strasbg.fr> X-Sender: muller@ics.u-strasbg.fr X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Fri, 09 Nov 2001 06:17:00 -0000 To: gdb@sources.redhat.com From: Pierre Muller Subject: Bug with watchpoints on Linux Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-SW-Source: 2001-11/txt/msg00098.txt.bz2 There seems to be a big problem with hardware watchpoints under Linux. If I compile a simple program : /* START of twatch.c */ static int x,y; int main () { x = 5; y = x * 2; x = y / 2; x = 7; return 0; } /* END of twatch.c */ and set a hardware watchpoint on variable 'x', the debugger correctly stops at each program location where this global var is changed. 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. I tested this on only one Linux machine, but both the main and the 5.1 branches show this problem. The current main CVS tree with a patch (not yet submitted) to add hardware watchpoints on cygwin target does not have this problem (It works but there are still some problems). This makes me suspect that the problem is truely Linux specific. Is this a known Linux problem of version 5.1 ? Pierre Muller Institut Charles Sadron 6,rue Boussingault F 67083 STRASBOURG CEDEX (France) mailto:muller@ics.u-strasbg.fr Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99