In gdb/doc/gdb.texinfo, @node Aliases, @section "Creating new spellings of existing commands" is written: line 23934 23935 @smallexample 23936 (gdb) alias -a set print elms = set print elements 23937 (gdb) alias -a show print elms = show print elements 23938 (gdb) set p elms 20 23939 (gdb) show p elms 23940 Limit on string chars or array elements to print is 200. 23941 @end smallexample 23942 This is an obvious typo: if you set twenty, the limit is not two hundred. Please either use twice 20 or twice 200 on lines 23938 and 23940.
Still there after 8 years :}
The master branch has been updated by Tom Tromey <tromey@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=17dccf103190198e985169b4f4e0e210e6b3a5aa commit 17dccf103190198e985169b4f4e0e210e6b3a5aa Author: Tom Tromey <tom@tromey.com> Date: Tue Mar 1 16:50:39 2022 -0700 Fix typo in the "alias" example PR cli/17332, filed around 8 years ago, points out a typo in the docs -- in one example, the command and its output are obviously out of sync. This patch fixes it. I'm checking this in as obvious. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=17332
Fixed.