mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-02 02:45:37 +08:00
* command.h command.c top.c: Add var_enum command type. It's
like var_string but allows only only one of the specified strings.
This commit is contained in:
10
gdb/top.c
10
gdb/top.c
@ -1638,6 +1638,12 @@ line_completion_function (text, matches, line_buffer, point)
|
||||
rl_completer_word_break_characters =
|
||||
gdb_completer_command_word_break_characters;
|
||||
}
|
||||
else if (c->enums)
|
||||
{
|
||||
list = complete_on_enum (c->enums, p, word);
|
||||
rl_completer_word_break_characters =
|
||||
gdb_completer_command_word_break_characters;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* It is a normal command; what comes after it is
|
||||
@ -1681,6 +1687,10 @@ line_completion_function (text, matches, line_buffer, point)
|
||||
e.g. "info adsfkdj". */
|
||||
list = NULL;
|
||||
}
|
||||
else if (c->enums)
|
||||
{
|
||||
list = complete_on_enum (c->enums, p, word);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* It is a normal command. */
|
||||
|
Reference in New Issue
Block a user