From 922fde8990c597971f55a21d972dc40b784976ce Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 14 Mar 2008 23:24:53 +0000 Subject: [PATCH] * infcmd.c (jump_command): Postpone disabling stdin until after the possible query. --- gdb/ChangeLog | 5 +++++ gdb/infcmd.c | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 828462e2db..df08fbab84 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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. (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 3a22c1c25b..0290ae3a42 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); } -- 2.11.0