From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124215 invoked by alias); 9 Jun 2017 22:19:30 -0000 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 Received: (qmail 124181 invoked by uid 89); 9 Jun 2017 22:19:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Jun 2017 22:19:27 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3B6AF811A7; Fri, 9 Jun 2017 22:19:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3B6AF811A7 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=sergiodj@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 3B6AF811A7 Received: from psique.yyz.redhat.com (unused-10-15-17-193.yyz.redhat.com [10.15.17.193]) by smtp.corp.redhat.com (Postfix) with ESMTP id CA2357CA77; Fri, 9 Jun 2017 22:19:29 +0000 (UTC) From: Sergio Durigan Junior To: GDB Patches Cc: Yao Qi , Sergio Durigan Junior Subject: [commit/obvious] Include on gdbserver/fork-child.c (and fix regressions) Date: Fri, 09 Jun 2017 22:19:00 -0000 Message-Id: <20170609221926.23614-1-sergiodj@redhat.com> In-Reply-To: <86tw3qa0vd.fsf@gmail.com> References: <86tw3qa0vd.fsf@gmail.com> X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00238.txt.bz2 Hi, This is another obvious patch that fixes a thinko from my previous startup-with-shell series. We should conditionally include on gdb/gdbserver/fork-child.c because gdbserver will be putting the inferior's terminal on the correct mode after the call to fork_inferior, and for that it needs to ignore SIGTTOU. This patch fixes a bunch of regressions happening on AArch64 that were reported by Yao. gdb/gdbserver/ChangeLog: 2017-06-09 Sergio Durigan Junior * fork-child.c: Conditionally include . --- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/fork-child.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index a5effe2..80240ff 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2017-06-09 Sergio Durigan Junior + + * fork-child.c: Conditionally include . + 2017-06-07 Sergio Durigan Junior * server.c (handle_general_set): Handle new packet diff --git a/gdb/gdbserver/fork-child.c b/gdb/gdbserver/fork-child.c index a1a8ff1..1002620 100644 --- a/gdb/gdbserver/fork-child.c +++ b/gdb/gdbserver/fork-child.c @@ -19,6 +19,9 @@ #include "server.h" #include "job-control.h" #include "nat/fork-inferior.h" +#ifdef HAVE_SIGNAL_H +#include +#endif #ifdef SIGTTOU /* A file descriptor for the controlling terminal. */ -- 2.9.3