* infcmd.c (jump_command): Postpone disabling stdin until after

the possible query.
This commit is contained in:
Pedro Alves 2008-03-14 23:24:53 +00:00
parent 8c64e03495
commit 89113898fa
2 changed files with 13 additions and 8 deletions

View 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.

View 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);
}