* inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
authorDaniel Jacobowitz <drow@false.org>
Mon, 24 Mar 2008 18:10:00 +0000 (18:10 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 24 Mar 2008 18:10:00 +0000 (18:10 +0000)
gdb/ChangeLog
gdb/inflow.c

index 16a6c62f6ae5913bbccabb14378509ae70982391..971ac43b00a2a9c2531a0eb778b1c48a42b383d6 100644 (file)
@@ -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>
 
index b8a0468aaaa99ff02ed7a06f5706d3f49907713f..6a775316c84b8a7a69e5b5f504ea823241c41f59 100644 (file)
@@ -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
            }
        }