From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25683 invoked by alias); 26 Nov 2010 11:04:08 -0000 Received: (qmail 25675 invoked by uid 22791); 26 Nov 2010 11:04:08 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 26 Nov 2010 11:04:03 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LCH00500O26VP00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Fri, 26 Nov 2010 13:04:01 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.63.39]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LCH005EFO2NUW10@a-mtaout20.012.net.il>; Fri, 26 Nov 2010 13:04:01 +0200 (IST) Date: Fri, 26 Nov 2010 11:04:00 -0000 From: Eli Zaretskii Subject: Re: [patch 3/3] [RFC] Add the watch-range command In-reply-to: <1290549386.3164.52.camel@hactar> To: Thiago Jung Bauermann Cc: gdb-patches@sourceware.org, jan.kratochvil@redhat.com, brobecker@adacore.com Reply-to: Eli Zaretskii Message-id: <83lj4g73a8.fsf@gnu.org> References: <1290549386.3164.52.camel@hactar> 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-11/txt/msg00449.txt.bz2 > From: Thiago Jung Bauermann > Cc: Jan Kratochvil , > Joel Brobecker > , Eli Zaretskii > Date: Tue, 23 Nov 2010 19:56:26 -0200 > > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -18720,19 +18720,26 @@ the @code{watch} command (@pxref{Set Watchpoints}), as in: > @end smallexample > > A @dfn{ranged watchpoint} watches a contiguous range of addresses. > -@value{GDBN} automatically creates a ranged watchpoint when asked to watch > -an array or struct of known size and there are enough hardware registers > -available. You can create an artificial array to watch an arbitrary memory > -region using one of the following commands (@pxref{Expressions}): > - > -@smallexample > -(@value{GDBP}) watch *((char *) @var{ADDRESS})@@@var{LENGTH} > -(@value{GDBP}) watch @{char[@var{LENGTH}]@} @var{ADDRESS} > -@end smallexample Why remove this example? I think it's useful. > +Set a hardware watchpoint for an address range. > +The watchpoint will stop execution of your program whenever the inferior > +writes, reads, or accesses (respectively for watch-range, awatch-range > +and rwatch-range) any address within the specified range. Suggest to say that the range is inclusive. Okay with those changes. Thanks.