From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77202 invoked by alias); 14 Apr 2017 01:03:40 -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 77191 invoked by uid 89); 14 Apr 2017 01:03:39 -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,RP_MATCHES_RCVD,SPF_HELO_PASS 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, 14 Apr 2017 01:03:38 +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 4AE723DE3E for ; Fri, 14 Apr 2017 01:03:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 4AE723DE3E Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=sergiodj@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 4AE723DE3E 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 1C80B5C542; Fri, 14 Apr 2017 01:03:36 +0000 (UTC) From: Sergio Durigan Junior To: GDB Patches Cc: Sergio Durigan Junior Subject: [obv/commit] Fix build breakage on Cygwin (PR gdb/21385) Date: Fri, 14 Apr 2017 01:03:00 -0000 Message-Id: <20170414010331.31329-1-sergiodj@redhat.com> In-Reply-To: <87o9w2z068.fsf@redhat.com> References: <87o9w2z068.fsf@redhat.com> X-IsSubscribed: yes X-SW-Source: 2017-04/txt/msg00451.txt.bz2 On gdb/windows-nat.c:windows_create_inferior, ALLARGS needs to be declared independently of the host that we're building for. This fixes a build breakage on Cygwin. 2017-04-13 Sergio Durigan Junior PR gdb/21385 * windows-nat.c (windows_create_inferior): Declare 'allargs' independently of the host, and fix build breakage on Cygwin. --- gdb/ChangeLog | 6 ++++++ gdb/windows-nat.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b739d8d..11d77be 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2017-04-13 Sergio Durigan Junior + + PR gdb/21385 + * windows-nat.c (windows_create_inferior): Declare 'allargs' + independently of the host, and fix build breakage on Cygwin. + 2017-04-13 Pedro Alves * inferior.c (free_inferior): Convert to ... diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index d9a4f0a..805fb43 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -2433,7 +2433,6 @@ windows_create_inferior (struct target_ops *ops, const char *exec_file, char real_path[__PMAX]; char shell[__PMAX]; /* Path to shell */ const char *toexec; - const char *allargs = origallargs.c_str (); char *args, *allargs_copy; size_t args_len, allargs_len; int fd_inp = -1, fd_out = -1, fd_err = -1; @@ -2449,6 +2448,7 @@ windows_create_inferior (struct target_ops *ops, const char *exec_file, size_t envsize; char **env; #endif /* !__CYGWIN__ */ + const char *allargs = origallargs.c_str (); PROCESS_INFORMATION pi; BOOL ret; DWORD flags = 0; -- 2.9.3