From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13835 invoked by alias); 7 Jun 2013 14:29:28 -0000 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 Received: (qmail 13821 invoked by uid 89); 7 Jun 2013 14:29:27 -0000 X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,SPF_SOFTFAIL autolearn=no version=3.3.1 Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 07 Jun 2013 14:29:26 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MO100H001J0LE00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Fri, 07 Jun 2013 17:29:23 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MO100HEE1KZLI00@a-mtaout20.012.net.il>; Fri, 07 Jun 2013 17:29:23 +0300 (IDT) Date: Fri, 07 Jun 2013 14:29:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Teach -data-list-register-values to not include unavailable registers In-reply-to: <1370609650-23595-1-git-send-email-yao@codesourcery.com> To: Yao Qi Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83sj0ut2ob.fsf@gnu.org> References: <1370609650-23595-1-git-send-email-yao@codesourcery.com> X-SW-Source: 2013-06/txt/msg00155.txt.bz2 > From: Yao Qi > Date: Fri, 7 Jun 2013 20:54:10 +0800 > > This patch adds an option --skip-unavailable to MI command > -data-list-register-values, so that unavailable registers are not > displayed (on the context of traceframes). "Skip unavailable" is double negation. How about -show-available instead? > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -76,6 +76,10 @@ show range-stepping > > ** The new command -dprintf-insert sets a dynamic printf breakpoint. > > + ** The command -data-list-register-values now accepts an optional > + "--skip-unavailable" option. When used, only available registers > + are displayed. ^^^^^^^^^^^^^^ "only the available" > Display the registers' contents. @var{fmt} is the format according to > which the registers' contents are to be returned, followed by an optional > list of numbers specifying the registers to display. A missing list of > -numbers indicates that the contents of all the registers must be returned. > +numbers indicates that the contents of all the registers must be > +returned. In the context of trace frames, the > +@code{--skip-unavailable} option indicates that only available > +(collected) registers are returned. ^^^^^^^^^^^^ "are to be returned". And why do you need the first part of that sentence, about the "context of trace frames"? Does it add anything to the description? Thanks.