diff options
author | Pedro Alves <palves@redhat.com> | 2008-03-19 14:54:05 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-03-19 14:54:05 +0000 |
commit | 49a834f99faef9fd60532e6601c33bbeac27142b (patch) | |
tree | 8c05e5985538fdaf56f6a8cb1ee12a4276981aab /gdb | |
parent | 5746fb46c853e631ce67f9969064721cca51f4c6 (diff) | |
download | gdb-49a834f99faef9fd60532e6601c33bbeac27142b.zip gdb-49a834f99faef9fd60532e6601c33bbeac27142b.tar.gz gdb-49a834f99faef9fd60532e6601c33bbeac27142b.tar.bz2 |
* inflow.c (terminal_ours_1): Guard access to
inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/inflow.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index deefe94..85b76fe 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-03-19 Pedro Alves <pedro@codesourcery.com> + + * inflow.c (terminal_ours_1): Guard access to + inferior_process_group with #ifdef PROCESS_GROUP_TYPE. + 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com> Jim Blandy <jimb@codesourcery.com> Daniel Jacobowitz <drow@false.org> diff --git a/gdb/inflow.c b/gdb/inflow.c index cc4b5de..b8a0468 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 |