aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1995-03-07 09:06:16 +0000
committerStu Grossman <grossman@cygnus>1995-03-07 09:06:16 +0000
commit09374c9863316b51b7e44ce94a5b89706b107e66 (patch)
treeb6733e38650f0f4adf4ebb64daf97e19836334aa /gdb
parent85c8b135fe413021e644dbd69a56ae7abe455f2e (diff)
downloadfsf-binutils-gdb-09374c9863316b51b7e44ce94a5b89706b107e66.zip
fsf-binutils-gdb-09374c9863316b51b7e44ce94a5b89706b107e66.tar.gz
fsf-binutils-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')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/top.c10
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b0106f4..18bf0c7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -8,8 +8,8 @@ Tue Mar 7 00:23:47 1995 Stu Grossman (grossman@cygnus.com)
usage of fputc_unfiltered and putchar_unfiltered. Eliminate
putc_unfiltered (it's superfluous).
- * command.h command.c: Add var_enum command type. It's like
- var_string but allows only only one of the specified strings.
+ * 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.
Mon Mar 6 15:03:59 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
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. */