From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7897 invoked by alias); 17 Dec 2014 01:22:16 -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 7885 invoked by uid 89); 17 Dec 2014 01:22:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 17 Dec 2014 01:22:13 +0000 Received: from svr-orw-fem-02x.mgc.mentorg.com ([147.34.96.206] helo=SVR-ORW-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1Y13JZ-0004gQ-7L from Yao_Qi@mentor.com ; Tue, 16 Dec 2014 17:22:09 -0800 Received: from GreenOnly (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.3.181.6; Tue, 16 Dec 2014 17:22:08 -0800 From: Yao Qi To: Jan Kratochvil CC: Eli Zaretskii , , , Subject: Re: [patch] compile: Fix MinGW build [Re: [mingw rfc] Add mkdtemp to gdb/gnulib/] References: <87egs2vcfu.fsf@codesourcery.com> <20141214182341.GA2908@host2.jankratochvil.net> <87a92pvc0w.fsf@codesourcery.com> <20141215124358.GU5457@adacore.com> <20141215171225.GA19674@host2.jankratochvil.net> <20141215181449.GA5457@adacore.com> <20141215182057.GA22226@host2.jankratochvil.net> <20141215183554.GB5457@adacore.com> <20141215184014.GA22610@host2.jankratochvil.net> <83y4q8wxk7.fsf@gnu.org> <20141215222801.GA28138@host2.jankratochvil.net> Date: Wed, 17 Dec 2014 01:22:00 -0000 In-Reply-To: <20141215222801.GA28138@host2.jankratochvil.net> (Jan Kratochvil's message of "Mon, 15 Dec 2014 23:28:01 +0100") Message-ID: <8761dbt6j4.fsf@codesourcery.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00454.txt.bz2 Jan Kratochvil writes: > In the end I have managed to test it by Wine myself: > > $ wine build_win32/gdb/gdb.exe -q build_win32/gdb/gdb.exe -ex start > -ex 'compile code 1' -ex 'set confirm no' -ex quit > [...] > Temporary breakpoint 1, main (argc=3D1, argv=3D0x241418) at ../../gdb/gdb= .c:29 > 29 args.argc =3D argc; > Could not load libcc1.so: Module not found. > > Even if it managed to load libcc1.so (it needs host-dependent name libcc1= .dll) > then it would soon end up at least on: > > default_infcall_mmap: > error (_("This target does not support inferior memory allocation by mm= ap.")); > > As currently there is only: > > linux-tdep.c: > set_gdbarch_infcall_mmap (gdbarch, linux_infcall_mmap); The module not found problem and unsupported mmap problem are separated ones. They are not related to the mkdtemp problem we are discussing here, IMO. > > While one could debug Linux targets from MS-Windows host I find it somehow > overcomplicated now when we are trying to get it running at least on nati= ve > Linux x86*. > > The 'compile' project needs a larger port effort to run on MS-Windows. If 'compile' feature on mingw/Windows doesn't work, why don't we disable it on Windows? --=20 Yao (=E9=BD=90=E5=B0=A7)