diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2009-04-08 06:58:37 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2009-04-08 06:58:37 +0000 |
commit | 143260c9bf2058b768d4d04cd4518054104dafd4 (patch) | |
tree | ea71967e1a1676afa76d00a95657a689990927d8 /gdb/mi/mi-main.c | |
parent | 4d28413b409102b3fc5e7ed828e4014895143d4e (diff) | |
download | gdb-143260c9bf2058b768d4d04cd4518054104dafd4.zip gdb-143260c9bf2058b768d4d04cd4518054104dafd4.tar.gz gdb-143260c9bf2058b768d4d04cd4518054104dafd4.tar.bz2 |
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.
Diffstat (limited to 'gdb/mi/mi-main.c')
-rw-r--r-- | gdb/mi/mi-main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index f7a1380..74e8ab9 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -168,6 +168,13 @@ mi_cmd_exec_return (char *command, char **argv, int argc) 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) { |