diff options
author | Stu Grossman <grossman@cygnus> | 1995-03-07 09:06:16 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1995-03-07 09:06:16 +0000 |
commit | 09374c9863316b51b7e44ce94a5b89706b107e66 (patch) | |
tree | b6733e38650f0f4adf4ebb64daf97e19836334aa /gdb/top.c | |
parent | 85c8b135fe413021e644dbd69a56ae7abe455f2e (diff) | |
download | gdb-09374c9863316b51b7e44ce94a5b89706b107e66.zip gdb-09374c9863316b51b7e44ce94a5b89706b107e66.tar.gz gdb-09374c9863316b51b7e44ce94a5b89706b107e66.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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. */ |