From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15588 invoked by alias); 30 Jul 2013 09:27:29 -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 15561 invoked by uid 89); 30 Jul 2013 09:27:28 -0000 X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_40,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RDNS_NONE autolearn=no version=3.3.1 Received: from Unknown (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 30 Jul 2013 09:27:27 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1V46D9-0004Ia-TT from Yao_Qi@mentor.com ; Tue, 30 Jul 2013 02:27:19 -0700 Received: from SVR-ORW-FEM-02.mgc.mentorg.com ([147.34.96.206]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 30 Jul 2013 02:27:19 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.2.247.3; Tue, 30 Jul 2013 02:27:18 -0700 Message-ID: <51F786CB.3020700@codesourcery.com> Date: Tue, 30 Jul 2013 09:27:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Eli Zaretskii CC: Subject: Re: [PATCH 1/3] Detect GDB is in cygwin References: <1375087546-22591-1-git-send-email-yao@codesourcery.com> <1375087546-22591-2-git-send-email-yao@codesourcery.com> <83txjdxtpd.fsf@gnu.org> In-Reply-To: <83txjdxtpd.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2013-07/txt/msg00753.txt.bz2 On 07/29/2013 11:38 PM, Eli Zaretskii wrote: > However, I'm not sure you need to probe NtQueryInformationFile at > configure time, as long as GDB probes for it at run time. That is the > usual way of using APIs that might not be available on older Windows > systems. > > Probing at compile time is worse than at run time, because it assumes > that GDB will run on the same machine where it was built, which is a > bad assumption, especially on Windows, where people like to install > precompiled binaries. I am using AC_TRY_COMPILE to compile the code which probes NtQueryInformationFile, to make sure the code can be compiled successfully. However, the code probes NtQueryInformationFile doesn't run on configure time. -- Yao (齐尧)