binutils-gdb/gdb/cli
Maciej W. Rozycki 89555e4ec2 GDB: Add NUMBER' completion to set' integer commands
Fix a completion consistency issue with `set' commands accepting integer
values and the special `unlimited' keyword:

(gdb) complete print -elements
print -elements NUMBER
print -elements unlimited
(gdb)

vs:

(gdb) complete set print elements
set print elements unlimited
(gdb)

(there is a space entered at the end of both commands, not shown here)
which also means if you strike <Tab> with `set print elements ' input,
it will, annoyingly, complete to `set print elements unlimited' right
away rather than showing a choice between `NUMBER' and `unlimited'.

Add `NUMBER' then as an available completion for such `set' commands:

(gdb) complete set print elements
set print elements NUMBER
set print elements unlimited
(gdb)

Adjust the testsuite accordingly.  Also document the feature in the
Completion section of the manual in addition to the Command Options
section already there.
2022-06-30 19:57:34 +01:00
..
cli-cmds.c
cli-cmds.h
cli-decode.c GDB: Add NUMBER' completion to set' integer commands 2022-06-30 19:57:34 +01:00
cli-decode.h
cli-dump.c
cli-interp.c Eliminate TUI/CLI observers duplication 2022-06-24 19:49:08 +01:00
cli-interp.h
cli-logging.c
cli-option.c
cli-option.h
cli-script.c
cli-script.h
cli-setshow.c GDB: Remove extraneous full stops from `set' command error messages 2022-06-29 15:27:41 +01:00
cli-setshow.h
cli-style.c
cli-style.h
cli-utils.c
cli-utils.h