diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-04-24 13:28:06 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-04-24 13:28:06 +0000 |
commit | 9e22b03a59af5954c5c62391c22475d1916bc4bd (patch) | |
tree | dde75c8a39acfb5db9c51820736b942d0414e2c9 /gdb/mi/mi-cmds.h | |
parent | 18a1839349df0a60254542ab16bc5e299d9bfaeb (diff) | |
download | gdb-9e22b03a59af5954c5c62391c22475d1916bc4bd.zip gdb-9e22b03a59af5954c5c62391c22475d1916bc4bd.tar.gz gdb-9e22b03a59af5954c5c62391c22475d1916bc4bd.tar.bz2 |
* mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
Adjust all prototypes using mi_cmd_args_ftype to use
mi_cmd_argv_ftype.
(struct mi_cmd): Remove the args_func field.
* mi/mi-cmds.c: Don't provide value for the args_func field.
* mi/mi-main.c (mi_execute_async_cli_command)
(mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
(mi_cmd_exec_step, mi_cmd_exec_step_instruction)
(mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
(mi_cmd_exec_continue, mi_cmd_exec_interrupt)
(mi_cmd_target_download): Adjust.
(mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
(mi_cmd_execute): Do not check for args_func.
(mi_execute_async_cli_command): Adjust.
* mi/mi-parse.c: Don't check for args_func.
Diffstat (limited to 'gdb/mi/mi-cmds.h')
-rw-r--r-- | gdb/mi/mi-cmds.h | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/gdb/mi/mi-cmds.h b/gdb/mi/mi-cmds.h index 63d1dde..087b5e4 100644 --- a/gdb/mi/mi-cmds.h +++ b/gdb/mi/mi-cmds.h @@ -51,11 +51,6 @@ extern const char mi_all_values[]; typedef enum mi_cmd_result (mi_cmd_argv_ftype) (char *command, char **argv, int argc); -/* Older MI commands have this interface. Retained until all old - commands are flushed. */ - -typedef enum mi_cmd_result (mi_cmd_args_ftype) ( /*ui */ char *args, int from_tty); - /* Function implementing each command */ extern mi_cmd_argv_ftype mi_cmd_break_insert; extern mi_cmd_argv_ftype mi_cmd_break_watch; @@ -72,16 +67,16 @@ extern mi_cmd_argv_ftype mi_cmd_env_cd; extern mi_cmd_argv_ftype mi_cmd_env_dir; extern mi_cmd_argv_ftype mi_cmd_env_path; extern mi_cmd_argv_ftype mi_cmd_env_pwd; -extern mi_cmd_args_ftype mi_cmd_exec_continue; -extern mi_cmd_args_ftype mi_cmd_exec_finish; -extern mi_cmd_args_ftype mi_cmd_exec_next; -extern mi_cmd_args_ftype mi_cmd_exec_next_instruction; -extern mi_cmd_args_ftype mi_cmd_exec_return; -extern mi_cmd_args_ftype mi_cmd_exec_run; -extern mi_cmd_args_ftype mi_cmd_exec_step; -extern mi_cmd_args_ftype mi_cmd_exec_step_instruction; -extern mi_cmd_args_ftype mi_cmd_exec_until; -extern mi_cmd_args_ftype mi_cmd_exec_interrupt; +extern mi_cmd_argv_ftype mi_cmd_exec_continue; +extern mi_cmd_argv_ftype mi_cmd_exec_finish; +extern mi_cmd_argv_ftype mi_cmd_exec_next; +extern mi_cmd_argv_ftype mi_cmd_exec_next_instruction; +extern mi_cmd_argv_ftype mi_cmd_exec_return; +extern mi_cmd_argv_ftype mi_cmd_exec_run; +extern mi_cmd_argv_ftype mi_cmd_exec_step; +extern mi_cmd_argv_ftype mi_cmd_exec_step_instruction; +extern mi_cmd_argv_ftype mi_cmd_exec_until; +extern mi_cmd_argv_ftype mi_cmd_exec_interrupt; extern mi_cmd_argv_ftype mi_cmd_file_list_exec_source_file; extern mi_cmd_argv_ftype mi_cmd_file_list_exec_source_files; extern mi_cmd_argv_ftype mi_cmd_gdb_exit; @@ -96,11 +91,11 @@ extern mi_cmd_argv_ftype mi_cmd_stack_list_frames; extern mi_cmd_argv_ftype mi_cmd_stack_list_locals; extern mi_cmd_argv_ftype mi_cmd_stack_select_frame; extern mi_cmd_argv_ftype mi_cmd_symbol_list_lines; -extern mi_cmd_args_ftype mi_cmd_target_download; +extern mi_cmd_argv_ftype mi_cmd_target_download; extern mi_cmd_argv_ftype mi_cmd_target_file_get; extern mi_cmd_argv_ftype mi_cmd_target_file_put; extern mi_cmd_argv_ftype mi_cmd_target_file_delete; -extern mi_cmd_args_ftype mi_cmd_target_select; +extern mi_cmd_argv_ftype mi_cmd_target_select; extern mi_cmd_argv_ftype mi_cmd_thread_info; extern mi_cmd_argv_ftype mi_cmd_thread_list_ids; extern mi_cmd_argv_ftype mi_cmd_thread_select; @@ -137,8 +132,6 @@ struct mi_cmd MI command (if cli.lhs is non NULL). */ struct mi_cli cli; /* If non-null, the function implementing the MI command. */ - mi_cmd_args_ftype *args_func; - /* If non-null, the function implementing the MI command. */ mi_cmd_argv_ftype *argv_func; }; |