diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-12 22:59:24 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-12 22:59:24 +0000 |
commit | 1427fe5e740df1581923abd4bfaa4b9119fda0e4 (patch) | |
tree | b79210aec7e28e192e01553df08c4b3fa34d3c8b /gdb/completer.c | |
parent | 52bc799a91cd19a56cb59a9ecd29c0f63153c302 (diff) | |
download | gdb-1427fe5e740df1581923abd4bfaa4b9119fda0e4.zip gdb-1427fe5e740df1581923abd4bfaa4b9119fda0e4.tar.gz gdb-1427fe5e740df1581923abd4bfaa4b9119fda0e4.tar.bz2 |
2011-03-11 Michael Snyder <msnyder@vmware.com>
* cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
* cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
(lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
* completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
* top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
Diffstat (limited to 'gdb/completer.c')
-rw-r--r-- | gdb/completer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/completer.c b/gdb/completer.c index 18f01f9..606f78b 100644 --- a/gdb/completer.c +++ b/gdb/completer.c @@ -590,7 +590,7 @@ complete_line_internal (const char *text, { /* An empty line we want to consider ambiguous; that is, it could be any command. */ - c = (struct cmd_list_element *) -1; + c = CMD_LIST_AMBIGUOUS; result_list = 0; } else @@ -610,7 +610,7 @@ complete_line_internal (const char *text, possible completions. */ list = NULL; } - else if (c == (struct cmd_list_element *) -1) + else if (c == CMD_LIST_AMBIGUOUS) { char *q; |