aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-decode.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2008-04-17 00:25:01 +0000
committerTom Tromey <tromey@redhat.com>2008-04-17 00:25:01 +0000
commit700b53b17a52448cb49f04a4e27d5f0130537924 (patch)
treec6c9be0bfe988471b3e3c8c23096b7669d8c202d /gdb/cli/cli-decode.c
parentf3c69fcab18257246fa945f4a85388b54a34e512 (diff)
downloadgdb-700b53b17a52448cb49f04a4e27d5f0130537924.zip
gdb-700b53b17a52448cb49f04a4e27d5f0130537924.tar.gz
gdb-700b53b17a52448cb49f04a4e27d5f0130537924.tar.bz2
* cli/cli-decode.h (CMD_ASYNC_OK): New define.
(set_cmd_async_ok, get_cmd_async_ok): Declare. * cli/cli-decode.c (set_cmd_async_ok): New function. (get_cmd_async_ok): New function. * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and "show" as async-ok. * top.c (execute_command): Use get_cmd_async_ok. * infcmd.c: Include cli/cli-decode.h. (_initialize_infcmd): Mark "interrupt" as async-ok. * Makefile.in (infcmd.o): Depend on cli_decode_h.
Diffstat (limited to 'gdb/cli/cli-decode.c')
-rw-r--r--gdb/cli/cli-decode.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index 65fcdcc..4e68f93 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -105,6 +105,18 @@ get_cmd_context (struct cmd_list_element *cmd)
return cmd->context;
}
+void
+set_cmd_async_ok (struct cmd_list_element *cmd)
+{
+ cmd->flags |= CMD_ASYNC_OK;
+}
+
+int
+get_cmd_async_ok (struct cmd_list_element *cmd)
+{
+ return cmd->flags & CMD_ASYNC_OK;
+}
+
enum cmd_types
cmd_type (struct cmd_list_element *cmd)
{