This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/3] Detect GDB is in cygwin
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 01 Aug 2013 19:33:32 +0300
- Subject: Re: [PATCH 1/3] Detect GDB is in cygwin
- References: <1375087546-22591-1-git-send-email-yao at codesourcery dot com> <1375087546-22591-2-git-send-email-yao at codesourcery dot com> <83txjdxtpd dot fsf at gnu dot org> <51F786CB dot 3020700 at codesourcery dot com> <83a9l4xdst dot fsf at gnu dot org> <51FA137B dot 6070207 at codesourcery dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Thu, 1 Aug 2013 15:51:23 +0800
> From: Yao Qi <yao@codesourcery.com>
> CC: <gdb-patches@sourceware.org>
>
> On 07/30/2013 11:33 PM, Eli Zaretskii wrote:
> > There's no need to probe that at configure time: this code can always
> > be compiled on any MS-Windows system. The compiler doesn't care and
> > doesn't check at compile time whether there is in fact
> > NtQueryInformationFile function inside the DLL.
>
> OK. If so, in configure.ac, we only need to check headers, and don't need
> AC_TRY_COMPILE at all. Here is the updated one, with several changes,
>
> - Remove AC_TRY_COMPILE,
> - Include fewer headers in mingw-htep.c, and don't have to check them
> in configure.ac.
> - Rename is_in_cygwin to using_cygwin_pty,
Thanks. I have just one more request: can you verify that GDB will
not think it runs in a Cygwin pty when it is run from an MSYS Bash
window? (Since MSYS is a fork of an old version of Cygwin, it's
possible that it uses the same template for however it sets up the
shell window.)