From patchwork Wed Apr 13 13:26:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antoine Tremblay X-Patchwork-Id: 11728 Received: (qmail 38063 invoked by alias); 13 Apr 2016 13:26:29 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 38041 invoked by uid 89); 13 Apr 2016 13:26:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=Hx-languages-length:1057, 3537 X-HELO: usplmg21.ericsson.net Received: from usplmg21.ericsson.net (HELO usplmg21.ericsson.net) (198.24.6.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 13 Apr 2016 13:26:26 +0000 Received: from EUSAAHC007.ericsson.se (Unknown_Domain [147.117.188.93]) by usplmg21.ericsson.net (Symantec Mail Security) with SMTP id 21.46.03614.8D84E075; Wed, 13 Apr 2016 15:25:44 +0200 (CEST) Received: from elxa4wqvvz1.dyn.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.93) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 13 Apr 2016 09:26:23 -0400 From: Antoine Tremblay To: CC: Antoine Tremblay Subject: [PATCH] Fix zero_ext documentation Date: Wed, 13 Apr 2016 09:26:12 -0400 Message-ID: <1460553972-3838-1-git-send-email-antoine.tremblay@ericsson.com> MIME-Version: 1.0 X-IsSubscribed: yes This patch fixes the documentation for the zero_ext bytecode description. It removes parts that seemed like a copy/paste from ext, since zero_ext zeros the bits to the left. gdb/doc/ChangeLog: * agentexpr.texi (byte): Fix zero_ext description. --- gdb/doc/agentexpr.texi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gdb/doc/agentexpr.texi b/gdb/doc/agentexpr.texi index 731234d..ade7638 100644 --- a/gdb/doc/agentexpr.texi +++ b/gdb/doc/agentexpr.texi @@ -353,8 +353,7 @@ byte unsigned integer following the @code{ext} bytecode. @item @code{zero_ext} (0x2a) @var{n}: @var{a} @result{} @var{a}, zero-extended from @var{n} bits Pop an unsigned value from the stack; zero all but the bottom @var{n} -bits. This means that all bits to the left of bit @var{n-1} (where the -least significant bit is bit 0) are set to the value of bit @var{n-1}. +bits. The number of source bits to preserve, @var{n}, is encoded as a single byte unsigned integer following the @code{zero_ext} bytecode.