From patchwork Fri Jan 13 02:58:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Percy X-Patchwork-Id: 18889 Received: (qmail 46533 invoked by alias); 13 Jan 2017 02:59:00 -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 46516 invoked by uid 89); 13 Jan 2017 02:58:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=BAYES_05, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=no version=3.3.2 spammy=Press, Hx-languages-length:1177, U*jhb, D*FreeBSD.org X-HELO: mail-qt0-f171.google.com Received: from mail-qt0-f171.google.com (HELO mail-qt0-f171.google.com) (209.85.216.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Jan 2017 02:58:57 +0000 Received: by mail-qt0-f171.google.com with SMTP id k15so36516453qtg.3 for ; Thu, 12 Jan 2017 18:58:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=b5g3F7FIs3s2cbBqIg1YAxXIbgJiJbe3n/8y1/PGRt8=; b=F6Ul+imNW6q0caYadBDyColCeOIkjAOxVwhue93HZUPbYef7fatUdzEOU4Gj5TlTXy B7bN6zHFQVmpOXIl7hn//lbmSzc1vk0Q1wgA5oIenSzyF7Zx8I5D06huzNMkfb9TR6Co yvJzFNWXwWoZb8Kj4v3FxrrPCoHLFFEUBKGZXwOAdeL5FioCZ9nvtl+xU4hbQEzSJzC6 7ySm0nBc54+S0klNkt4Qu8hWi23jurDCi2T8nQ/n8GV0j0tPJs8Q8C3AI3B3tnNdZSWw KgOXpjlTKxF0dmaoB18kyGWHODzQmNUSgNiWU5oGZiPKUFkDYhOkzf/5RBrj1HpEcSd5 0eWw== X-Gm-Message-State: AIkVDXIlf5O68Yf0Qzaf/Bx9x8tSB6XVV/XDSWO5PNzLktVBWBGAf2oVx+tDQ2aZ/PrdKdc7MDkC/ztLP/9kWA== X-Received: by 10.200.36.46 with SMTP id c43mr14963070qtc.260.1484276335927; Thu, 12 Jan 2017 18:58:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.52.6 with HTTP; Thu, 12 Jan 2017 18:58:15 -0800 (PST) From: Mike Percy Date: Thu, 12 Jan 2017 18:58:15 -0800 Message-ID: Subject: [PATCH] Fix typo in gdb "explore" documentation To: gdb-patches@sourceware.org Hello, I have a small gdb.texinfo patch to fix a typo that I noticed when perusing the "explore" documentation. Regards, Mike commit 6a722aea3357163b770c0e92fec6a71e4a1a62c5 Author: Mike Percy Date: Thu Jan 12 18:46:48 2017 -0800 Fix typo in gdb "explore" documentation The value of index 5 = 5 in this example. Verified locally in gdb 7.11.1 on Ubuntu xenial. @end smallexample diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 4c6e718..5b60267 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2017-01-12 Mike Percy + + * gdb.texinfo (Examining Data): Correct typo in "explore" example. + 2017-01-04 John Baldwin * gdb.texinfo (Contributors): Add SRI International and University diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 2b6b654..b60643d 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -8687,7 +8687,7 @@ Enter the index of the element you want to explore in `cs.arr': 5 `(cs.arr)[5]' is a scalar value of type `int'. -(cs.arr)[5] = 4 +(cs.arr)[5] = 5 Press enter to return to parent value: