Re: [PATCH 1/3] Detect GDB is in cygwin

Yao Qi
2013-07-30T09:27:29Z

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 (é½å°§)