diff options
author | Pedro Alves <palves@redhat.com> | 2008-03-14 23:24:53 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-03-14 23:24:53 +0000 |
commit | 89113898faa250e8d4a2dcf59d507dd84063f12b (patch) | |
tree | 9a8d90d17337ad60b357ce6e3f5bca71b1573fdd /gdb/infcmd.c | |
parent | 8c64e03495be39296f2584a2e163b7de4268018e (diff) | |
download | fsf-binutils-gdb-89113898faa250e8d4a2dcf59d507dd84063f12b.zip fsf-binutils-gdb-89113898faa250e8d4a2dcf59d507dd84063f12b.tar.gz fsf-binutils-gdb-89113898faa250e8d4a2dcf59d507dd84063f12b.tar.bz2 |
* infcmd.c (jump_command): Postpone disabling stdin until after
the possible query.
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); } |