]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* mi-interp.c (_initialize_mi_interp): Add exec_proc.
authorKeith Seitz <keiths@redhat.com>
Wed, 28 Aug 2002 19:05:04 +0000 (19:05 +0000)
committerKeith Seitz <keiths@redhat.com>
Wed, 28 Aug 2002 19:05:04 +0000 (19:05 +0000)
        (mi_interpreter_exec): New function. MI's exec_proc.

gdb/mi/ChangeLog
gdb/mi/mi-interp.c

index 850f3741086cbdf0156871b759a30b6cf1955c84..fd8558d728e049e579abd38020c7d731d9619a6d 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 6159ba64e11c5cda6dfbb480408acfba9158329e..52597f290711a190c15db1d5b7826f9250a1bddd 100644 (file)
@@ -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);
@@ -173,6 +174,13 @@ mi_interpreter_delete (void *data)
   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)
 {
@@ -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 */
     };