+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.
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);
return 1;
}
+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)
{
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 */
};