From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29704 invoked by alias); 27 Aug 2009 07:37:08 -0000 Received: (qmail 29695 invoked by uid 22791); 27 Aug 2009 07:37:07 -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 e28smtp01.in.ibm.com (HELO e28smtp01.in.ibm.com) (59.145.155.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Aug 2009 07:37:03 +0000 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by e28smtp01.in.ibm.com (8.14.3/8.13.1) with ESMTP id n7R7axT3002499 for ; Thu, 27 Aug 2009 13:06:59 +0530 Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n7R7ax721974438 for ; Thu, 27 Aug 2009 13:06:59 +0530 Received: from d28av04.in.ibm.com (loopback [127.0.0.1]) by d28av04.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id n7R7awaE016533 for ; Thu, 27 Aug 2009 17:36:59 +1000 Received: from [9.184.145.59] ([9.184.145.59]) by d28av04.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id n7R7awkS016520; Thu, 27 Aug 2009 17:36:58 +1000 Message-ID: <4A963797.8070701@in.ibm.com> Date: Thu, 27 Aug 2009 07:45:00 -0000 From: Chandru User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: Jan Kratochvil CC: Doug Evans , 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> <4A8BB035.6030601@in.ibm.com> <20090819081532.GA7264@host0.dyn.jankratochvil.net> <4A927651.9040608@in.ibm.com> In-Reply-To: <4A927651.9040608@in.ibm.com> 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/msg00480.txt.bz2 Chandru wrote: >> > Hello Jan and Doug, > > Thanks for your mails. I today downloaded gdb-6.6 and > gdb-6.8.50.20090824. > gdb-6.6 outputs the messages as follows when the program is restarted > > > Program exited normally. > (gdb) r > Starting program: /home/chandru/rawatch > Hardware read watchpoint 2: value1 > Hardware access (read/write) watchpoint 3: value1 > Hardware read watchpoint 2: value1 > Hardware access (read/write) watchpoint 3: value1 > Hardware read watchpoint 2: value1 > Hardware access (read/write) watchpoint 3: value1 > > Breakpoint 1, main () at rawatch.c:20 > 20 value1 =3; > (gdb) > > > > whereas gdb-6.8.50.20090824 doesn't. > > Program exited normally. > (gdb) r > Starting program: /home/chandru/rawatch > > Breakpoint 1, main () at rawatch.c:20 > 20 value1 =3; > (gdb) > > > > It is not the case that the read or access watchpoints are not being hit. > Just the messages like 'Hardware read watchpoint 2: value1' and > 'Hardware access (read/write) watchpoint 3: value1' are not shown > on the screen when the program is restarted and the condition > > if (breakpoint_enabled (b)) > mention(b); > > > only helped to see those messages. It is only the first occurrence of the > watchpoints that the messages don't get displayed for. We could see the > messages for later occurrences of the watchpoints on value1. Hence this > is just a cosmetic issue and doesn't look like a architecture or a kernel > specific issue. > > Thanks, > Chandru > Hello Jan/Doug, does this make sense or we need to do nothing over here ?, Thanks, Chandru