From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13632 invoked by alias); 19 Mar 2008 14:36:07 -0000 Received: (qmail 13620 invoked by uid 22791); 19 Mar 2008 14:36:06 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 19 Mar 2008 14:35:48 +0000 Received: (qmail 17030 invoked from network); 19 Mar 2008 14:35:46 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 19 Mar 2008 14:35:46 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Restore building gdb Date: Wed, 19 Mar 2008 14:36:00 -0000 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_JTS4Hvmx7zoKFSB" Message-Id: <200803191435.53551.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00278.txt.bz2 --Boundary-00=_JTS4Hvmx7zoKFSB Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 399 One of my previous patches added an unguarded access to inferior_process_group, which is only defined if PROCESS_GROUP_TYPE is defined. #ifdef PROCESS_GROUP_TYPE /* Process group for us and the inferior. Saved and restored just like {our,inferior}_ttystate. */ PROCESS_GROUP_TYPE our_process_group; PROCESS_GROUP_TYPE inferior_process_group; #endif This patch should fix it. -- Pedro Alves --Boundary-00=_JTS4Hvmx7zoKFSB Content-Type: text/x-diff; charset="utf-8"; name="fix_inferior_process_group.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="fix_inferior_process_group.diff" Content-length: 992 2008-03-19 Pedro Alves * inflow.c (terminal_ours_1): Guard access to inferior_process_group with #ifdef PROCESS_GROUP_TYPE. --- gdb/inflow.c | 2 ++ 1 file changed, 2 insertions(+) Index: src/gdb/inflow.c =================================================================== --- src.orig/gdb/inflow.c 2008-03-19 14:26:18.000000000 +0000 +++ src/gdb/inflow.c 2008-03-19 14:26:34.000000000 +0000 @@ -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 --Boundary-00=_JTS4Hvmx7zoKFSB--