From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24701 invoked by alias); 27 Nov 2010 13:30:59 -0000 Received: (qmail 24691 invoked by uid 22791); 27 Nov 2010 13:30:58 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e24smtp03.br.ibm.com (HELO e24smtp03.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 27 Nov 2010 13:30:50 +0000 Received: from mailhub3.br.ibm.com (mailhub3.br.ibm.com [9.18.232.110]) by e24smtp03.br.ibm.com (8.14.4/8.13.1) with ESMTP id oARDM5XU015066 for ; Sat, 27 Nov 2010 11:22:05 -0200 Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.8.31.93]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oARDbmxQ2744502 for ; Sat, 27 Nov 2010 11:37:48 -0200 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oARDUV0E021699 for ; Sat, 27 Nov 2010 11:30:31 -0200 Received: from [9.18.199.242] ([9.18.199.242]) by d24av02.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id oARDUUMQ021691; Sat, 27 Nov 2010 11:30:30 -0200 Subject: Re: [patch 3/3] [RFC] Add the watch-range command From: Thiago Jung Bauermann To: Eli Zaretskii Cc: gdb-patches@sourceware.org, jan.kratochvil@redhat.com, brobecker@adacore.com In-Reply-To: <83lj4g73a8.fsf@gnu.org> References: <1290549386.3164.52.camel@hactar> <83lj4g73a8.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" Date: Sat, 27 Nov 2010 13:30:00 -0000 Message-ID: <1290864642.3009.46.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-11/txt/msg00465.txt.bz2 On Fri, 2010-11-26 at 13:06 +0200, Eli Zaretskii wrote: > > 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. Indeed. I'll keep it then. > > +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. Ok. > Okay with those changes. Thanks! -- []'s Thiago Jung Bauermann IBM Linux Technology Center