This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix typo in gdb "explore" documentation


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 <mpercy@gmail.com>
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.

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  <mpercy@gmail.com>
+
+       * gdb.texinfo (Examining Data): Correct typo in "explore" example.
+
 2017-01-04  John Baldwin  <jhb@FreeBSD.org>

        * 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:
 @end smallexample


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]