* infcmd.c (jump_command): Postpone disabling stdin until after
authorPedro Alves <palves@redhat.com>
Fri, 14 Mar 2008 23:24:53 +0000 (23:24 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 14 Mar 2008 23:24:53 +0000 (23:24 +0000)
the possible query.

gdb/ChangeLog
gdb/infcmd.c

index 828462e2dbcd5da1ddde2a7b04dee4f99348c872..df08fbab84ed6983f7601abbc413c83bd59f5f94 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 3a22c1c25b1995692b55b57cd4d732bf4cea168b..0290ae3a42856df0be7bef1c1241c65186a96ada 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);
 }
This page took 0.028163 seconds and 4 git commands to generate.