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/top.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/top.c')
-rw-r--r-- | gdb/top.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1425,8 +1425,7 @@ set_verbose (char *args, int from_tty, struct cmd_list_element *c) struct cmd_list_element *showcmd; showcmd = lookup_cmd_1 (&cmdname, showlist, NULL, 1); - gdb_assert (showcmd != NULL - && showcmd != (struct cmd_list_element *) -1); + gdb_assert (showcmd != NULL && showcmd != CMD_LIST_AMBIGUOUS); if (info_verbose) { |