diff options
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 4 | ||||
-rw-r--r-- | gdb/cli/cli-decode.c | 12 | ||||
-rw-r--r-- | gdb/cli/cli-decode.h | 10 |
3 files changed, 0 insertions, 26 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index efd3137..8dc178e 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1244,7 +1244,6 @@ The commands below can be used to select other frames by number or address."), c = add_com ("pwd", class_files, pwd_command, _("\ Print working directory. This is used for your program as well.")); - set_cmd_async_ok (c); set_cmd_no_selected_thread_ok (c); c = add_cmd ("cd", class_files, cd_command, _("\ @@ -1286,7 +1285,6 @@ when GDB is started."), gdbinit); c = add_com ("help", class_support, help_command, _("Print list of commands.")); set_cmd_completer (c, command_completer); - set_cmd_async_ok (c); set_cmd_no_selected_thread_ok (c); add_com_alias ("q", "quit", class_support, 1); add_com_alias ("h", "help", class_support, 1); @@ -1316,7 +1314,6 @@ Without an argument, history expansion is enabled."), c = add_prefix_cmd ("info", class_info, info_command, _("\ Generic command for showing things about the program being debugged."), &infolist, "info ", 0, &cmdlist); - set_cmd_async_ok (c); set_cmd_no_selected_thread_ok (c); add_com_alias ("i", "info", class_info, 1); @@ -1326,7 +1323,6 @@ Generic command for showing things about the program being debugged."), c = add_prefix_cmd ("show", class_info, show_command, _("\ Generic command for showing things about the debugger."), &showlist, "show ", 0, &cmdlist); - set_cmd_async_ok (c); set_cmd_no_selected_thread_ok (c); /* Another way to get at the same thing. */ add_info ("set", show_command, _("Show all GDB settings.")); diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 07bb587..6908314 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -106,18 +106,6 @@ get_cmd_context (struct cmd_list_element *cmd) } 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; -} - -void set_cmd_no_selected_thread_ok (struct cmd_list_element *cmd) { cmd->flags |= CMD_NO_SELECTED_THREAD_OK; diff --git a/gdb/cli/cli-decode.h b/gdb/cli/cli-decode.h index c790398..4e2dbc1 100644 --- a/gdb/cli/cli-decode.h +++ b/gdb/cli/cli-decode.h @@ -48,9 +48,6 @@ cmd_types; #define DEPRECATED_WARN_USER 0x2 #define MALLOCED_REPLACEMENT 0x4 -/* This flag is set if the command is allowed during async execution. */ -#define CMD_ASYNC_OK 0x8 - /* This flag is set if the command is allowed to run when the target has execution, but there's no selected thread. */ #define CMD_NO_SELECTED_THREAD_OK 0x10 @@ -250,13 +247,6 @@ extern int cmd_cfunc_eq (struct cmd_list_element *cmd, extern void set_cmd_context (struct cmd_list_element *cmd, void *context); extern void *get_cmd_context (struct cmd_list_element *cmd); -/* Mark command as async-ready; there is no way to disable this once - set. */ -extern void set_cmd_async_ok (struct cmd_list_element *); - -/* Return true if command is async-ok. */ -extern int get_cmd_async_ok (struct cmd_list_element *); - /* Mark command as ok to call when there is no selected thread. There is no way to disable this once set. */ extern void set_cmd_no_selected_thread_ok (struct cmd_list_element *); |