* 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:
parent
85c8b135fe
commit
09374c9863
2 changed files with 12 additions and 2 deletions
|
@ -8,8 +8,8 @@ Tue Mar 7 00:23:47 1995 Stu Grossman (grossman@cygnus.com)
|
||||||
usage of fputc_unfiltered and putchar_unfiltered. Eliminate
|
usage of fputc_unfiltered and putchar_unfiltered. Eliminate
|
||||||
putc_unfiltered (it's superfluous).
|
putc_unfiltered (it's superfluous).
|
||||||
|
|
||||||
* command.h command.c: Add var_enum command type. It's like
|
* command.h command.c top.c: Add var_enum command type. It's
|
||||||
var_string but allows only only one of the specified strings.
|
like var_string but allows only only one of the specified strings.
|
||||||
|
|
||||||
Mon Mar 6 15:03:59 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Mon Mar 6 15:03:59 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
|
|
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 =
|
rl_completer_word_break_characters =
|
||||||
gdb_completer_command_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
|
else
|
||||||
{
|
{
|
||||||
/* It is a normal command; what comes after it is
|
/* 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". */
|
e.g. "info adsfkdj". */
|
||||||
list = NULL;
|
list = NULL;
|
||||||
}
|
}
|
||||||
|
else if (c->enums)
|
||||||
|
{
|
||||||
|
list = complete_on_enum (c->enums, p, word);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* It is a normal command. */
|
/* It is a normal command. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue