diff options
author | Keith Seitz <keiths@redhat.com> | 2002-08-28 19:05:04 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2002-08-28 19:05:04 +0000 |
commit | b4cc5d6fa85f8bfc1214a2e20dd2a9f25a846265 (patch) | |
tree | 74992c057ee9a1f9c4e457c0c9d6088144df358b /gdb/mi | |
parent | fc421712b9f4d0d2ce5a5c988c99eeed4ca3d889 (diff) | |
download | gdb-b4cc5d6fa85f8bfc1214a2e20dd2a9f25a846265.tar.gz |
* mi-interp.c (_initialize_mi_interp): Add exec_proc.
(mi_interpreter_exec): New function. MI's exec_proc.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/mi/mi-interp.c | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/gdb/mi/ChangeLog b/gdb/mi/ChangeLog index 850f3741086..fd8558d728e 100644 --- a/gdb/mi/ChangeLog +++ b/gdb/mi/ChangeLog @@ -1,5 +1,10 @@ 2002-08-28 Keith Seitz <keiths@redhat.com> + * mi-interp.c (_initialize_mi_interp): Add exec_proc. + (mi_interpreter_exec): New function. MI's exec_proc. + +2002-08-28 Keith Seitz <keiths@redhat.com> + * gdbmi.texinfo: Document the interpreter-exec command. 2002-08-21 Keith Seitz <keiths@redhat.com> diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 6159ba64e11..52597f29071 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -49,6 +49,7 @@ static int mi_interpreter_resume (void *data); static int mi_interpreter_do_one_event (void *data); static int mi_interpreter_suspend (void *data); static int mi_interpreter_delete (void *data); +static int mi_interpreter_exec (void *data, char *command); static int mi_interpreter_prompt (void *data, char *new_prompt); static void mi_execute_command_wrapper (char *cmd); @@ -174,6 +175,13 @@ mi_interpreter_delete (void *data) } static int +mi_interpreter_exec (void *data, char *command) +{ + mi_execute_command_wrapper (command); + return 1; +} + +static int mi_interpreter_prompt (void *data, char *new_prompt) { return 1; @@ -425,7 +433,7 @@ _initialize_mi_interp (void) NULL, /* do_one_event_proc */ mi_interpreter_suspend, /* suspend_proc */ mi_interpreter_delete, /* delete_proc */ - NULL, /* exec_proc */ + mi_interpreter_exec, /* exec_proc */ mi_interpreter_prompt /* prompt_proc */ }; |