aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-12 22:59:24 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-12 22:59:24 +0000
commit1427fe5e740df1581923abd4bfaa4b9119fda0e4 (patch)
treeb79210aec7e28e192e01553df08c4b3fa34d3c8b /gdb/top.c
parent52bc799a91cd19a56cb59a9ecd29c0f63153c302 (diff)
downloadgdb-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/top.c b/gdb/top.c
index c453a71..a25550f 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -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)
{