aboutsummaryrefslogtreecommitdiff
path: root/gdb/inflow.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-01-31 03:11:40 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-01-31 03:11:40 +0000
commit6b0c4c1f054ea7b759e683dc4c87abc569930cd5 (patch)
tree9554aea037cd7016c1f5ae0b04485694ac753fc6 /gdb/inflow.c
parentf4b54baf38b2b0db738de390f8061961bbedd386 (diff)
downloadgdb-6b0c4c1f054ea7b759e683dc4c87abc569930cd5.zip
gdb-6b0c4c1f054ea7b759e683dc4c87abc569930cd5.tar.gz
gdb-6b0c4c1f054ea7b759e683dc4c87abc569930cd5.tar.bz2
fix typo during interactive_mode check in gdb_has_a_terminal
Discovered by Pierre Muller. gdb/ChangeLog: * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode value test. gdb/testsuite/ChangeLog: * gdb.base/interact.exp: Add extra tests that verify that the value of the interactive-mode setting does not change after the script is sourced.
Diffstat (limited to 'gdb/inflow.c')
-rw-r--r--gdb/inflow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/inflow.c b/gdb/inflow.c
index 859c74e..9975904 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -165,7 +165,7 @@ int
gdb_has_a_terminal (void)
{
if (interactive_mode != AUTO_BOOLEAN_AUTO)
- return interactive_mode = AUTO_BOOLEAN_TRUE;
+ return interactive_mode == AUTO_BOOLEAN_TRUE;
switch (gdb_has_a_terminal_flag)
{