summaryrefslogtreecommitdiff
path: root/gdb/doc/gdb.texinfo
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2005-10-03 22:26:54 +0000
committerJoel Brobecker <brobecker@gnat.com>2005-10-03 22:26:54 +0000
commitb0cb57948b52f99d5f97219aa7a8f9d1117a7772 (patch)
treeefac263dda0f3f0506ab86f88e2bf440f77d1fc0 /gdb/doc/gdb.texinfo
parent00adaeea4b039d702dbd60ac5106546146252eb7 (diff)
downloadgdb-b0cb57948b52f99d5f97219aa7a8f9d1117a7772.tar.gz
* gdb.texinfo (Print Settings): Add documentation for set/show
print array-indexes.
Diffstat (limited to 'gdb/doc/gdb.texinfo')
-rw-r--r--gdb/doc/gdb.texinfo14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 7d592f4f157..2055f1a00bb 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -5692,6 +5692,20 @@ Return to compressed format for arrays.
Show whether compressed or pretty format is selected for displaying
arrays.
+@cindex print array indexes
+@item set print array-indexes
+@itemx set print array-indexes on
+Print the index of each element when displaying arrays. May be more
+convenient to locate a given element in the array or quickly find the
+index of a given element in that printed array. The default is off.
+
+@item set print array-indexes off
+Stop printing element indexes when displaying arrays.
+
+@item show print array-indexes
+Show whether the index of each element is printed when displaying
+arrays.
+
@item set print elements @var{number-of-elements}
@cindex number of array elements to print
@cindex limit on number of printed array elements