Async mode fixes.
[deliverable/binutils-gdb.git] / gdb / tui / tui-interp.c
index ca2e7436beaf1ddd55123893f903edc3c871d8ec..8a166785272722224ab8684e718c60e4048bfdf0 100644 (file)
@@ -164,6 +164,10 @@ tui_command_loop (void *data)
       
       if (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.024154 seconds and 4 git commands to generate.