From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114344 invoked by alias); 12 Apr 2017 05:19:36 -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 114322 invoked by uid 89); 12 Apr 2017 05:19:35 -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; Wed, 12 Apr 2017 05:19:34 +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 3FC377AEA4 for ; Wed, 12 Apr 2017 05:19:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3FC377AEA4 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=sergiodj@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 3FC377AEA4 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 EADE17FD9B; Wed, 12 Apr 2017 05:19:31 +0000 (UTC) From: Sergio Durigan Junior To: GDB Patches Cc: Sergio Durigan Junior Subject: [obv/commit] Fix build breakage from last commit (window-nat.c:windows_create_inferior) Date: Wed, 12 Apr 2017 05:19:00 -0000 Message-Id: <20170412051930.1897-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/msg00311.txt.bz2 Forgot to declare the variable 'toexec' (from window-nat.c:windows_create_inferior) as 'const char *', which caused a build breakage. gdb/ChangeLog: 2017-04-12 Sergio Durigan Junior * windows-nat.c (windows_create_inferior): Declare 'toexec' as 'const char *'. --- gdb/ChangeLog | 5 +++++ gdb/windows-nat.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c8f1bcf..087c0735 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2017-04-12 Sergio Durigan Junior + * windows-nat.c (windows_create_inferior): Declare 'toexec' as + 'const char *'. + +2017-04-12 Sergio Durigan Junior + * common/common-utils.c (free_vector_argv): New function. * common/common-utils.h: Include . (free_vector_argv): New prototype. diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index dd5cfe4..d9a4f0a 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -2432,7 +2432,7 @@ windows_create_inferior (struct target_ops *ops, const char *exec_file, #else /* !__CYGWIN__ */ char real_path[__PMAX]; char shell[__PMAX]; /* Path to shell */ - char *toexec; + const char *toexec; const char *allargs = origallargs.c_str (); char *args, *allargs_copy; size_t args_len, allargs_len; -- 2.9.3