diff options
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 3a22c1c..0290ae3 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); } |