From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1749 invoked by alias); 19 Aug 2009 07:56:52 -0000 Received: (qmail 1738 invoked by uid 22791); 19 Aug 2009 07:56:52 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from e23smtp09.au.ibm.com (HELO e23smtp09.au.ibm.com) (202.81.31.142) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Aug 2009 07:56:45 +0000 Received: from d23relay01.au.ibm.com (d23relay01.au.ibm.com [202.81.31.243]) by e23smtp09.au.ibm.com (8.14.3/8.13.1) with ESMTP id n7J7qwgK031643 for ; Wed, 19 Aug 2009 17:52:58 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay01.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n7J7udnj393368 for ; Wed, 19 Aug 2009 17:56:39 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n7J7udgu028557 for ; Wed, 19 Aug 2009 17:56:39 +1000 Received: from [9.184.145.129] ([9.184.145.129]) by d23av02.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n7J7ucGF028528; Wed, 19 Aug 2009 17:56:38 +1000 Message-ID: <4A8BB035.6030601@in.ibm.com> Date: Wed, 19 Aug 2009 08:05:00 -0000 From: Chandru User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: Doug Evans CC: gdb-patches@sourceware.org Subject: Re: [patch]: inform user that a watchpoint is hit References: <200908141602.50465.chandru@in.ibm.com> <4A869488.2060407@in.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-08/txt/msg00302.txt.bz2 Doug Evans wrote: > So in cvs head I'm not seeing a problem (though maybe there's more > needed to recreate it). > Which version of gdb are you using? > > [Also, I haven't researched this, but maybe there's some overlap here with > http://sourceware.org/ml/gdb-patches/2009-08/msg00254.html. > Dunno. Doesn't seem like it but thought I'd point it out.] > Hello Doug, Thanks for trying the test program. What I was referring to was the messages like the following to be outputted on the screen with the patch applied.. Program exited normally. (gdb) r Starting program: /home/chandru/r Hardware access (read/write) watchpoint 2: value1 Hardware read watchpoint 3: value1 Hardware access (read/write) watchpoint 2: value1 Hardware read watchpoint 3: value1 Hardware access (read/write) watchpoint 2: value1 Hardware read watchpoint 3: value1 Hardware access (read/write) watchpoint 2: value1 Hardware read watchpoint 3: value1 Hardware access (read/write) watchpoint 2: value1 Hardware read watchpoint 3: value1 Hardware access (read/write) watchpoint 2: value1 Hardware read watchpoint 3: value1 Breakpoint 1, main () at rwatch.c:20 20 value1 =3; (gdb) I was using a distribution supplied gdb-6.8.50 and found that upstream gdb shows the same behaviour. gdb-6.6 outputs these messages without the patch when a program is restarted. Thanks, Chandru