Bug 17332 - typos in gdb/doc/gdbtexinfo.tex, @node Aliases
Summary: typos in gdb/doc/gdbtexinfo.tex, @node Aliases
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: cli (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: 12.1
Assignee: Tom Tromey
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-30 17:15 UTC by dilyan.palauzov@aegee.org
Modified: 2022-03-01 23:55 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dilyan.palauzov@aegee.org 2014-08-30 17:15:07 UTC
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.
Comment 1 Tom Tromey 2022-03-01 23:49:39 UTC
Still there after 8 years :}
Comment 2 Sourceware Commits 2022-03-01 23:53:26 UTC
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
Comment 3 Tom Tromey 2022-03-01 23:55:05 UTC
Fixed.