aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-decode.h
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/cli/cli-decode.h
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/cli/cli-decode.h')
-rw-r--r--gdb/cli/cli-decode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/cli/cli-decode.h b/gdb/cli/cli-decode.h
index 095b33d..e974968 100644
--- a/gdb/cli/cli-decode.h
+++ b/gdb/cli/cli-decode.h
@@ -210,6 +210,9 @@ struct cmd_list_element
struct cmd_list_element *alias_chain;
};
+/* Flag for an ambiguous cmd_list result. */
+#define CMD_LIST_AMBIGUOUS ((struct cmd_list_element *) -1)
+
/* API to the manipulation of command lists. */
extern struct cmd_list_element *add_cmd (char *, enum command_class,