diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2010-02-24 07:33:55 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2010-02-24 07:33:55 +0000 |
commit | 115d30f9b6746bc41746961a4f4bab5183c6eb80 (patch) | |
tree | 569cbc39b4f70922892180c8728646e3eedf423b /gdb | |
parent | 06cd862c015ff7285816de9e36290b5b1a7b090e (diff) | |
download | gdb-115d30f9b6746bc41746961a4f4bab5183c6eb80.zip gdb-115d30f9b6746bc41746961a4f4bab5183c6eb80.tar.gz gdb-115d30f9b6746bc41746961a4f4bab5183c6eb80.tar.bz2 |
Make -exec-run a proper MI commands.
* mi/mi-cmds.h (mi_cmd_exec_run): Declare.
* mi/mi-cmds.c (mi_cmds): Adjust.
* mi/mi-main.c (mi_cmd_exec_run): New.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/mi/mi-cmds.c | 2 | ||||
-rw-r--r-- | gdb/mi/mi-cmds.h | 3 | ||||
-rw-r--r-- | gdb/mi/mi-main.c | 7 |
4 files changed, 18 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4a20397..2ab86e7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2010-02-24 Vladimir Prus <vladimir@codesourcery.com> + + Make -exec-run a proper MI commands. + + * mi/mi-cmds.h (mi_cmd_exec_run): Declare. + * mi/mi-cmds.c (mi_cmds): Adjust. + * mi/mi-main.c (mi_cmd_exec_run): New. + 2010-02-24 Pedro Alves <pedro@codesourcery.com> Stan Shebs <stan@codesourcery.com> diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c index 201d66b..1acd54c 100644 --- a/gdb/mi/mi-cmds.c +++ b/gdb/mi/mi-cmds.c @@ -65,7 +65,7 @@ struct mi_cmd mi_cmds[] = { "exec-next", { NULL, 0 }, mi_cmd_exec_next}, { "exec-next-instruction", { NULL, 0 }, mi_cmd_exec_next_instruction}, { "exec-return", { NULL, 0 }, mi_cmd_exec_return}, - { "exec-run", { "run", 1 }, NULL}, + { "exec-run", { NULL, 0}, mi_cmd_exec_run}, { "exec-step", { NULL, 0 }, mi_cmd_exec_step}, { "exec-step-instruction", { NULL, 0 }, mi_cmd_exec_step_instruction}, { "exec-until", { "until", 1 }, NULL}, diff --git a/gdb/mi/mi-cmds.h b/gdb/mi/mi-cmds.h index f76e217..7feb1c2 100644 --- a/gdb/mi/mi-cmds.h +++ b/gdb/mi/mi-cmds.h @@ -54,13 +54,14 @@ extern mi_cmd_argv_ftype mi_cmd_env_path; extern mi_cmd_argv_ftype mi_cmd_env_pwd; 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_interrupt; extern mi_cmd_argv_ftype mi_cmd_exec_jump; 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_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; diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 9d9e3da..f1b745c 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -330,6 +330,13 @@ mi_cmd_exec_interrupt (char *command, char **argv, int argc) error ("Usage: -exec-interrupt [--all|--thread-group id]"); } +void +mi_cmd_exec_run (char *command, char **argv, int argc) +{ + mi_execute_cli_command ("run", target_can_async_p (), + target_can_async_p () ? "&" : NULL); +} + static int find_thread_of_process (struct thread_info *ti, void *p) { |