From cf7b93727ab4b49d08812a33c980146a4149143e Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 19 Mar 2008 14:54:05 +0000 Subject: [PATCH] * inflow.c (terminal_ours_1): Guard access to inferior_process_group with #ifdef PROCESS_GROUP_TYPE. --- gdb/ChangeLog | 5 +++++ gdb/inflow.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index deefe94e13..85b76fea34 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-03-19 Pedro Alves + + * inflow.c (terminal_ours_1): Guard access to + inferior_process_group with #ifdef PROCESS_GROUP_TYPE. + 2008-03-18 Ulrich Weigand Jim Blandy Daniel Jacobowitz diff --git a/gdb/inflow.c b/gdb/inflow.c index cc4b5dea43..b8a0468aaa 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -350,11 +350,13 @@ terminal_ours_1 (int output_only) xfree (inferior_ttystate); inferior_ttystate = serial_get_tty_state (stdin_serial); +#ifdef PROCESS_GROUP_TYPE if (!attach_flag) /* If setpgrp failed in terminal_inferior, this would give us our process group instead of the inferior's. See terminal_inferior for details. */ inferior_process_group = gdb_getpgrp (); +#endif /* Here we used to set ICANON in our ttystate, but I believe this was an artifact from before when we used readline. Readline sets -- 2.11.0