Simplify starting the command event loop
[deliverable/binutils-gdb.git] / gdb / mi / mi-interp.c
index 63f05c3660cf8d7700ade7fe3501dcc2ce6e1f70..4376ffa06a8e4d3c3946f4dc1f8d34a84fd9fa07 100644 (file)
@@ -44,7 +44,6 @@
 
 static void mi_execute_command_wrapper (const char *cmd);
 static void mi_execute_command_input_handler (char *cmd);
-static void mi_command_loop (void *data);
 
 /* These are hooks that we put in place while doing interpreter_exec
    so we can report interesting things that happened "behind the MI's
@@ -329,9 +328,9 @@ mi_execute_command_input_handler (char *cmd)
 }
 
 static void
-mi_command_loop (void *data)
+mi_interpreter_pre_command_loop (struct interp *self)
 {
-  struct mi_interp *mi = (struct mi_interp *) data;
+  struct mi_interp *mi = (struct mi_interp *) interp_data (self);
 
   /* Turn off 8 bit strings in quoted output.  Any character with the
      high bit set is printed using C's octal format.  */
@@ -339,8 +338,6 @@ mi_command_loop (void *data)
 
   /* Tell the world that we're alive.  */
   display_mi_prompt (mi);
-
-  start_event_loop ();
 }
 
 static void
@@ -1442,7 +1439,7 @@ static const struct interp_procs mi_interp_procs =
   mi_interpreter_exec,         /* exec_proc */
   mi_ui_out,                   /* ui_out_proc */
   mi_set_logging,              /* set_logging_proc */
-  mi_command_loop              /* command_loop_proc */
+  mi_interpreter_pre_command_loop /* pre_command_loop_proc */
 };
 
 /* Factory for MI interpreters.  */
This page took 0.024734 seconds and 4 git commands to generate.