aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index fd52423..2068471 100644
--- a/gdb/top.c
+++ b/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. */