]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Make -exec-run a proper MI commands.
authorVladimir Prus <vladimir@codesourcery.com>
Wed, 24 Feb 2010 07:33:55 +0000 (07:33 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Wed, 24 Feb 2010 07:33:55 +0000 (07:33 +0000)
* 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.

gdb/ChangeLog
gdb/mi/mi-cmds.c
gdb/mi/mi-cmds.h
gdb/mi/mi-main.c

index 4a203971676fc223a3a564a070667483bd700629..2ab86e7b77d3f57a6e08fa57ac3f217c78e40091 100644 (file)
@@ -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>
 
index 201d66babe9233476497589311e4abf284f60af5..1acd54c7e3b47d868eda228b98aa69b134696f9d 100644 (file)
@@ -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},
index f76e21727c4594897fd6ca2635268a8cedebc9ca..7feb1c2fd69d07053971999ea63f07e2ee329018 100644 (file)
@@ -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;
index 9d9e3da2d8341de503200b30c1620a1032842d27..f1b745c3cb61bbe9246f7c64bfac157266e9fa25 100644 (file)
@@ -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)
 {