Replace the sync_execution global with a new enum prompt_state tristate
[deliverable/binutils-gdb.git] / gdb / target.c
index 8a83fbac70c9ec70110d7f39435d104bfa266522..6f69ac37a1f4538fedbaaa2291a3d454ee641e77 100644 (file)
@@ -482,10 +482,8 @@ target_terminal_inferior (void)
   struct ui *ui = current_ui;
 
   /* A background resume (``run&'') should leave GDB in control of the
-     terminal.  Use target_can_async_p, not target_is_async_p, since at
-     this point the target is not async yet.  However, if sync_execution
-     is not set, we know it will become async prior to resume.  */
-  if (target_can_async_p () && !sync_execution)
+     terminal.  */
+  if (ui->prompt_state != PROMPT_BLOCKED)
     return;
 
   /* Always delete the current UI's input file handler, regardless of
This page took 0.034628 seconds and 4 git commands to generate.