aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-03-14 23:24:53 +0000
committerPedro Alves <palves@redhat.com>2008-03-14 23:24:53 +0000
commit89113898faa250e8d4a2dcf59d507dd84063f12b (patch)
tree9a8d90d17337ad60b357ce6e3f5bca71b1573fdd
parent8c64e03495be39296f2584a2e163b7de4268018e (diff)
downloadgdb-89113898faa250e8d4a2dcf59d507dd84063f12b.zip
gdb-89113898faa250e8d4a2dcf59d507dd84063f12b.tar.gz
gdb-89113898faa250e8d4a2dcf59d507dd84063f12b.tar.bz2
* infcmd.c (jump_command): Postpone disabling stdin until after
the possible query.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infcmd.c16
2 files changed, 13 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 828462e..df08fba 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
(gdb_has_a_terminal): Use get_getpgrp.
(terminal_ours_1): If attach_flag is set, don't refetch
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);
}