From: Daniel Jacobowitz Date: Mon, 24 Mar 2008 18:10:00 +0000 (+0000) Subject: * inflow.c (gdb_has_a_terminal): Guard access to our_process_group. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=807bddf3a9d23f9f009efe89079f7e969bfad041;p=binutils-gdb.git * inflow.c (gdb_has_a_terminal): Guard access to our_process_group. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 16a6c62f6ae..971ac43b00a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-03-24 Daniel Jacobowitz + + * inflow.c (gdb_has_a_terminal): Guard access to our_process_group. + 2008-03-24 Nick Roberts Vladimir Prus diff --git a/gdb/inflow.c b/gdb/inflow.c index b8a0468aaaa..6a775316c84 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 } }