aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-02-29 19:17:49 +0000
committerDaniel Jacobowitz <drow@false.org>2004-02-29 19:17:49 +0000
commit2da6aac335bbbc38795735152a59fe9693083601 (patch)
tree17fa4eb7ec768300ed827f91357244fb5036f03e /gdb
parent6ba34a8d520d08d10e92d03ca5003b5618666f1e (diff)
downloadgdb-2da6aac335bbbc38795735152a59fe9693083601.zip
gdb-2da6aac335bbbc38795735152a59fe9693083601.tar.gz
gdb-2da6aac335bbbc38795735152a59fe9693083601.tar.bz2
* inflow.c (terminal_inferior): Don't give up the terminal if we
previously couldn't get the inferior's terminal state.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/inflow.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f384d26..6382a3d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2004-02-29 Daniel Jacobowitz <drow@mvista.com>
+ * inflow.c (terminal_inferior): Don't give up the terminal if we
+ previously couldn't get the inferior's terminal state.
+
+2004-02-29 Daniel Jacobowitz <drow@mvista.com>
+
* regcache.c (read_pc_pid): Restore inferior_ptid after reading
PC_REGNUM.
diff --git a/gdb/inflow.c b/gdb/inflow.c
index 55f6ab5..35cd799 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -1,6 +1,7 @@
/* Low level interface to ptrace, for GDB when running under Unix.
Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
- 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+ 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004
+ Free Software Foundation, Inc.
This file is part of GDB.
@@ -223,6 +224,7 @@ void
terminal_inferior (void)
{
if (gdb_has_a_terminal () && terminal_is_ours
+ && inferior_ttystate != NULL
&& inferior_thisrun_terminal == 0)
{
int result;