aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/inflow.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 16a6c62..971ac43 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
+
2008-03-24 Nick Roberts <nickrob@snap.net.nz>
Vladimir Prus <vladimir@codesourcery.com>
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
}
}