[PATCH 1/3] Detect GDB is in cygwin
Eli Zaretskii
eliz@gnu.org
Fri Aug 2 06:10:00 GMT 2013
> 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.
More information about the Gdb-patches
mailing list