summaryrefslogtreecommitdiff
path: root/gdb/inflow.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2009-05-21 16:00:08 +0000
committerPedro Alves <pedro@codesourcery.com>2009-05-21 16:00:08 +0000
commit7fa93a2e08d4b2fd9592502af4bf8c0fb1cccd07 (patch)
treed82759b34d2333da4f30ddc1ce05a8ee7d4a766f /gdb/inflow.c
parent60d99cc097f1fb9932bb8f52c24e4efc00a6b742 (diff)
downloadgdb-7fa93a2e08d4b2fd9592502af4bf8c0fb1cccd07.tar.gz
* linux-nat.c (linux_nat_terminal_inferior)
(linux_nat_terminal_ours): Don't check sync_execution. * remote.c (remote_terminal_inferior, remote_terminal_ours): Don't check sync_execution. Update comments. * target.c (target_terminal_inferior): New. * target.h (target_terminal_inferior): Delete macro, and declare as function. * event-top.c (async_disable_stdin): Make idempotent. Don't give the target the terminal here. * inflow.c (terminal_ours_1): Don't return early without setting `terminal_is_ours'.
Diffstat (limited to 'gdb/inflow.c')
-rw-r--r--gdb/inflow.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/inflow.c b/gdb/inflow.c
index 6ca5bd8cc4a..27995cc0f87 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -361,6 +361,8 @@ terminal_ours_1 (int output_only)
if (terminal_is_ours)
return;
+ terminal_is_ours = 1;
+
/* Checking inferior->run_terminal is necessary so that
if GDB is running in the background, it won't block trying
to do the ioctl()'s below. Checking gdb_has_a_terminal
@@ -371,7 +373,6 @@ terminal_ours_1 (int output_only)
if (inf->terminal_info->run_terminal != NULL || gdb_has_a_terminal () == 0)
return;
- if (!terminal_is_ours)
{
#ifdef SIGTTOU
/* Ignore this signal since it will happen when we try to set the
@@ -380,8 +381,6 @@ terminal_ours_1 (int output_only)
#endif
int result;
- terminal_is_ours = 1;
-
#ifdef SIGTTOU
if (job_control)
osigttou = (void (*)()) signal (SIGTTOU, SIG_IGN);