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: Fri, 02 Aug 2013 09:10:18 +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> <83r4edz7z7 dot fsf at gnu dot org> <51FB1E94 dot 5050508 at codesourcery dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Fri, 2 Aug 2013 10:51:00 +0800
> From: Yao Qi <yao@codesourcery.com>
> CC: <gdb-patches@sourceware.org>
>
> On 08/02/2013 12:33 AM, Eli Zaretskii wrote:
> > 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.)
>
> I run GDB in MSYS bash, and GDB thinks it runs in a Cygwin pty
> unfortunately. As you said, the file name template is the same. I
> add the following changes in using_cygwin_pty to differentiate MSYS
> and Cygwin.
>
> const char *msystem = getenv ("MSYSTEM");
Thanks. I have no further comments to this patch.