OSDN Git Service

* infcmd.c (jump_command): Postpone disabling stdin until after
authorpalves <palves>
Fri, 14 Mar 2008 23:24:53 +0000 (23:24 +0000)
committerpalves <palves>
Fri, 14 Mar 2008 23:24:53 +0000 (23:24 +0000)
the possible query.

gdb/ChangeLog
gdb/infcmd.c

index 828462e..df08fba 100644 (file)
@@ -1,5 +1,10 @@
 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
 
+       * infcmd.c (jump_command): Postpone disabling stdin until after
+       the possible query.
+
+2008-03-14  Pedro Alves  <pedro@codesourcery.com>
+
        * inflow.c (gdb_getpgrp): New.
        (gdb_has_a_terminal): Use get_getpgrp.
        (terminal_ours_1): If attach_flag is set, don't refetch
index 3a22c1c..0290ae3 100644 (file)
@@ -920,14 +920,6 @@ jump_command (char *arg, int from_tty)
   if (async_exec && !target_can_async_p ())
     error (_("Asynchronous execution not supported on this target."));
 
-  /* If we are not asked to run in the bg, then prepare to run in the
-     foreground, synchronously. */
-  if (!async_exec && target_can_async_p ())
-    {
-      /* Simulate synchronous execution */
-      async_disable_stdin ();
-    }
-
   if (!arg)
     error_no_arg (_("starting address"));
 
@@ -981,6 +973,14 @@ jump_command (char *arg, int from_tty)
       printf_filtered (".\n");
     }
 
+  /* If we are not asked to run in the bg, then prepare to run in the
+     foreground, synchronously. */
+  if (!async_exec && target_can_async_p ())
+    {
+      /* Simulate synchronous execution */
+      async_disable_stdin ();
+    }
+
   clear_proceed_status ();
   proceed (addr, TARGET_SIGNAL_0, 0);
 }