Async mode fixes.
[deliverable/binutils-gdb.git] / gdb / event-loop.c
index 9a04e32a0a051361888a9a141fee06fd8a76137c..ceff6997ff41d6349af5ae21f643ecab4ecc9e42 100644 (file)
@@ -411,6 +411,10 @@ start_event_loop (void)
 
       if (gdb_result == 0)
        {
+         /* If any exception escaped to here, we better enable
+            stdin.  Otherwise, any command that calls async_disable_stdin,
+            and then throws, will leave stdin inoperable.  */
+         async_enable_stdin ((void *) 0);
          /* FIXME: this should really be a call to a hook that is
             interface specific, because interfaces can display the
             prompt in their own way. */
This page took 0.02517 seconds and 4 git commands to generate.