summaryrefslogtreecommitdiff
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
commit9dc029cfb378e96240593508e91cc27dcfc8dc87 (patch)
tree037938b00428d05d74b02a6f4a4fd36febe4796d
parent321390cce6d83243926b24b14f9267386d93ac36 (diff)
downloadbinutils-gdb-9dc029cfb378e96240593508e91cc27dcfc8dc87.tar.gz
* mi-interp.c (_initialize_mi_interp): Add exec_proc.
(mi_interpreter_exec): New function. MI's exec_proc.
-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 */
};