diff options
author | Pedro Alves <pedro@codesourcery.com> | 2008-03-19 14:54:05 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2008-03-19 14:54:05 +0000 |
commit | cf7b93727ab4b49d08812a33c980146a4149143e (patch) | |
tree | 301416e1c79dde1b38a00bda714f21f4a79409a8 /gdb/inflow.c | |
parent | 2b35e9fd916a26d7d39b7a567af227e253b0df90 (diff) | |
download | gdb-cf7b93727ab4b49d08812a33c980146a4149143e.tar.gz |
* inflow.c (terminal_ours_1): Guard access to
inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
Diffstat (limited to 'gdb/inflow.c')
-rw-r--r-- | gdb/inflow.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/inflow.c b/gdb/inflow.c index cc4b5dea435..b8a0468aaaa 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 |