From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5217 invoked by alias); 17 Aug 2010 20:19:55 -0000 Received: (qmail 5205 invoked by uid 22791); 17 Aug 2010 20:19:54 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e24smtp01.br.ibm.com (HELO e24smtp01.br.ibm.com) (32.104.18.85) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Aug 2010 20:19:50 +0000 Received: from mailhub1.br.ibm.com (mailhub1.br.ibm.com [9.18.232.109]) by e24smtp01.br.ibm.com (8.14.4/8.13.1) with ESMTP id o7HKQRIU013400 for ; Tue, 17 Aug 2010 17:26:27 -0300 Received: from d24av05.br.ibm.com (d24av05.br.ibm.com [9.18.232.44]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o7HKP9V21073550 for ; Tue, 17 Aug 2010 17:25:10 -0300 Received: from d24av05.br.ibm.com (loopback [127.0.0.1]) by d24av05.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o7HKJjGQ014762 for ; Tue, 17 Aug 2010 17:19:45 -0300 Received: from [9.78.145.3] ([9.78.145.3]) by d24av05.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o7HKJjND014754; Tue, 17 Aug 2010 17:19:45 -0300 Subject: Re: [doc] Mention accelerated watchpoint conditions in the gdb manual From: Thiago Jung Bauermann To: Eli Zaretskii Cc: gdb-patches@sourceware.org In-Reply-To: <83vd79qaje.fsf@gnu.org> References: <1282074039.2606.699.camel@hactar> <83vd79qaje.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" Date: Tue, 17 Aug 2010 20:19:00 -0000 Message-ID: <1282076384.2606.715.camel@hactar> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: 2010-08/txt/msg00277.txt.bz2 On Tue, 2010-08-17 at 22:55 +0300, Eli Zaretskii wrote: > > From: Thiago Jung Bauermann > > Date: Tue, 17 Aug 2010 16:40:39 -0300 > > > > I mentioned this feature in the NEWS file but I just realized that it > > would be useful to mention in the manual too. Ok to apply? For the > > branch too? > > Yes and yes. Thanks. Thanks! > > +@smallexample > > +(@value{GDBP}) watch @var{ADDRESS|VARIABLE} if @var{ADDRESS|VARIABLE} == @var{CONSTANT EXPRESSION} > > +@end smallexample > > Please break the long line in two: it's too long and will overflow the > page boundary in the printed manual. I had tested this on gdb.pdf and the generated line is shorter than the surrounding paragraphs. Though I just checked gdb.info and the line ends at column 77, which is larger than the surrounding paragraphs... > Also, please add a "@cindex DVC register" entry here. Done. What about this version? The broken line shows up nicely in both gdb.pdf and gdb.info. -- []'s Thiago Jung Bauermann IBM Linux Technology Center 2010-08-17 Thiago Jung Bauermann * gdb.texinfo (PowerPC Embedded): Mention support for the DVC register. Index: gdb.git/gdb/doc/gdb.texinfo =================================================================== --- gdb.git.orig/gdb/doc/gdb.texinfo 2010-08-17 17:05:08.000000000 -0300 +++ gdb.git/gdb/doc/gdb.texinfo 2010-08-17 17:09:50.000000000 -0300 @@ -18472,6 +18472,19 @@ Set suspend trace mode. @node PowerPC Embedded @subsection PowerPC Embedded +@cindex DVC register +@value{GDBN} supports using the DVC (Data Value Compare) register to +implement in hardware simple hardware watchpoint conditions of the form: + +@smallexample +(@value{GDBP}) watch @var{ADDRESS|VARIABLE} \ + if @var{ADDRESS|VARIABLE} == @var{CONSTANT EXPRESSION} +@end smallexample + +The DVC register will be automatically used whenever @value{GDBN} detects +such pattern in a condition expression. This feature is available in native +@value{GDBN} running on a Linux kernel version 2.6.34 or newer. + @value{GDBN} provides the following PowerPC-specific commands: @table @code