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 event_location -> location_spec 2022-06-17 09:41:24 +01:00
cli-cmds.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cli-decode.c GDB: Add NUMBER' completion to set' integer commands 2022-06-30 19:57:34 +01:00
cli-decode.h gdb/cli: convert cli_suppress_notification from int to bool 2022-02-07 08:26:55 +01:00
cli-dump.c Unify gdb printf functions 2022-03-29 12:46:24 -06:00
cli-interp.c Eliminate TUI/CLI observers duplication 2022-06-24 19:49:08 +01:00
cli-interp.h Don't declare cli_set_logging 2022-06-23 14:26:13 -06:00
cli-logging.c Unify gdb printf functions 2022-03-29 12:46:24 -06:00
cli-option.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cli-option.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cli-script.c Unify gdb printf functions 2022-03-29 12:46:24 -06:00
cli-script.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cli-setshow.c GDB: Remove extraneous full stops from `set' command error messages 2022-06-29 15:27:41 +01:00
cli-setshow.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cli-style.c Unify gdb printf functions 2022-03-29 12:46:24 -06:00
cli-style.h gdb: use python to colorize disassembler output 2022-02-14 09:53:04 +00:00
cli-utils.c Unify gdb printf functions 2022-03-29 12:46:24 -06:00
cli-utils.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00