From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31861 invoked by alias); 27 Aug 2009 07:45:51 -0000 Received: (qmail 31852 invoked by uid 22791); 27 Aug 2009 07:45:50 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Aug 2009 07:45:42 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7R7jaW4017881; Thu, 27 Aug 2009 03:45:36 -0400 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7R7jXZL027142 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Aug 2009 03:45:36 -0400 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.3) with ESMTP id n7R7jXAN019085; Thu, 27 Aug 2009 09:45:33 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.3/Submit) id n7R7jWmg019080; Thu, 27 Aug 2009 09:45:32 +0200 Date: Thu, 27 Aug 2009 08:26:00 -0000 From: Jan Kratochvil To: Chandru Cc: Doug Evans , gdb-patches@sourceware.org Subject: Re: [patch]: inform user that a watchpoint is hit Message-ID: <20090827074531.GA18838@host0.dyn.jankratochvil.net> 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> <4A963797.8070701@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A963797.8070701@in.ibm.com> User-Agent: Mutt/1.5.19 (2009-01-05) X-IsSubscribed: yes 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/msg00481.txt.bz2 On Thu, 27 Aug 2009 09:36:55 +0200, Chandru wrote: > Chandru wrote: >> 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) You did not paste a complete log of GDB from its start. I do not know what is rawatch.c, I do not know where exactly did you put "Breakpoint 1" etc. If line 20 is the first line of code of main and you did "break main" then it is correct the first breakpoint/watchpoint hit is that in main as there could not be hit any watchpoints before the first line of code being executed. >> 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 As the line 20 is hit before any of the watchpoints are hit it is correct GDB shows only "Breakpoint 1" at that moment. If you do "continue" GDB should show some of the watchpoints get hit. >> It is only the first occurrence of the >> watchpoints that the messages don't get displayed for. I do not see any copy-paste showing any wrong behavior for gdb-6.8.50.20090824. My tests also did not reproduce any wrong behavior. > does this make sense or we need to do nothing over here ?, Only gdb-6.8.50.20090824 is relevant here. We cannot change gdb-6.6 even if it was buggy. Regards, Jan