summaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2002-08-28 19:05:04 +0000
committerKeith Seitz <keiths@redhat.com>2002-08-28 19:05:04 +0000
commitb4cc5d6fa85f8bfc1214a2e20dd2a9f25a846265 (patch)
tree74992c057ee9a1f9c4e457c0c9d6088144df358b /gdb/mi
parentfc421712b9f4d0d2ce5a5c988c99eeed4ca3d889 (diff)
downloadgdb-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/ChangeLog5
-rw-r--r--gdb/mi/mi-interp.c10
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 */
};