From: Pedro Alves Date: Fri, 14 Mar 2008 23:24:53 +0000 (+0000) Subject: * infcmd.c (jump_command): Postpone disabling stdin until after X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89113898faa250e8d4a2dcf59d507dd84063f12b;p=binutils-gdb.git * infcmd.c (jump_command): Postpone disabling stdin until after the possible query. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 828462e2dbc..df08fbab84e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-03-14 Pedro Alves + + * infcmd.c (jump_command): Postpone disabling stdin until after + the possible query. + 2008-03-14 Pedro Alves * inflow.c (gdb_getpgrp): New. diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 3a22c1c25b1..0290ae3a428 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -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); }