This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Implement -exec-jump


This patch, committed, implements the -exec-jump MI command.
(Documentation follows later)

- Volodya

Index: gdb/ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.10357
diff -u -p -r1.10357 ChangeLog
--- gdb/ChangeLog	5 Apr 2009 22:37:19 -0000	1.10357
+++ gdb/ChangeLog	8 Apr 2009 05:48:34 -0000
@@ -1,3 +1,11 @@
+2009-04-08  Vladimir Prus  <vladimir@codesourcery.com>
+
+	Implement -exec-jump.
+
+	* mi/mi-cmds.h (mi_cmd_exec_jump): Declare.
+	* mi/mi-main.c (mi_cmd_exec_jump): New.
+	* mi/mi-cmds.c (mi_cmds): Register exec-jump.
+
 2009-04-06  Mark Kettenis  <kettenis@gnu.org>
 
 	* sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment.
Index: gdb/mi/mi-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-cmds.c,v
retrieving revision 1.38
diff -u -p -r1.38 mi-cmds.c
--- gdb/mi/mi-cmds.c	3 Jan 2009 05:57:57 -0000	1.38
+++ gdb/mi/mi-cmds.c	8 Apr 2009 05:48:34 -0000
@@ -61,6 +61,7 @@ struct mi_cmd mi_cmds[] =
   { "exec-arguments", { "set args", 1 }, NULL },
   { "exec-continue", { NULL, 0 }, mi_cmd_exec_continue},
   { "exec-finish", { NULL, 0 }, mi_cmd_exec_finish},
+  { "exec-jump", { NULL, 0 }, mi_cmd_exec_jump},
   { "exec-interrupt", { NULL, 0 }, mi_cmd_exec_interrupt},
   { "exec-next", { NULL, 0 }, mi_cmd_exec_next},
   { "exec-next-instruction", { NULL, 0 }, mi_cmd_exec_next_instruction},
Index: gdb/mi/mi-cmds.h
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-cmds.h,v
retrieving revision 1.36
diff -u -p -r1.36 mi-cmds.h
--- gdb/mi/mi-cmds.h	3 Jan 2009 05:57:57 -0000	1.36
+++ gdb/mi/mi-cmds.h	8 Apr 2009 05:48:34 -0000
@@ -53,6 +53,7 @@ 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_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;
Index: gdb/mi/mi-main.c
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-main.c,v
retrieving revision 1.146
diff -u -p -r1.146 mi-main.c
--- gdb/mi/mi-main.c	25 Mar 2009 21:42:35 -0000	1.146
+++ gdb/mi/mi-main.c	8 Apr 2009 05:48:34 -0000
@@ -168,6 +168,13 @@ mi_cmd_exec_return (char *command, char 
   print_stack_frame (get_selected_frame (NULL), 1, LOC_AND_ADDRESS);
 }
 
+void
+mi_cmd_exec_jump (char *args, char **argv, int argc)
+{
+  /* FIXME: Should call a libgdb function, not a cli wrapper.  */
+  return mi_execute_async_cli_command ("jump", argv, argc);
+}
+ 
 static int
 proceed_thread_callback (struct thread_info *thread, void *arg)
 {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]