aboutsummaryrefslogtreecommitdiff
path: root/gdb/inflow.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2008-03-24 18:10:00 +0000
committerDaniel Jacobowitz <drow@false.org>2008-03-24 18:10:00 +0000
commit807bddf3a9d23f9f009efe89079f7e969bfad041 (patch)
tree16cf40f83c7c3998450f852c5f246a94bd448317 /gdb/inflow.c
parentdaddbc6edd327f44cc7093696f487c4a9e689132 (diff)
downloadgdb-807bddf3a9d23f9f009efe89079f7e969bfad041.zip
gdb-807bddf3a9d23f9f009efe89079f7e969bfad041.tar.gz
gdb-807bddf3a9d23f9f009efe89079f7e969bfad041.tar.bz2
* inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
Diffstat (limited to 'gdb/inflow.c')
-rw-r--r--gdb/inflow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/inflow.c b/gdb/inflow.c
index b8a0468..6a77531 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -150,7 +150,9 @@ gdb_has_a_terminal (void)
if (our_ttystate != NULL)
{
gdb_has_a_terminal_flag = yes;
+#ifdef PROCESS_GROUP_TYPE
our_process_group = gdb_getpgrp ();
+#endif
}
}