This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/3 V3] Test mingw32 GDB in cygwin
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: yao at codesourcery dot com, gdb-patches at sourceware dot org
- Date: Mon, 29 Jul 2013 21:43:33 +0300
- Subject: Re: [PATCH 0/3 V3] Test mingw32 GDB in cygwin
- References: <1375087546-22591-1-git-send-email-yao at codesourcery dot com> <8738qxp7ky dot fsf at fleche dot redhat dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Tom Tromey <tromey@redhat.com>
> Cc: <gdb-patches@sourceware.org>
> Date: Mon, 29 Jul 2013 12:03:09 -0600
>
> >>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:
>
> Yao> My plan next step would be to wrap isatty by gdb_isatty, which uses
> Yao> the logic in Corinna's example to return the correct result on
> Yao> cygwin pty.
>
> I wonder if this could be fixed in the gnulib isatty module instead.
That could be better, but the procedure would be much longer (from my
experience), and we currently don't import that module anyway.
Btw, what does the proposed code produce when GDB runs from the MSYS
Bash window? If it recognizes it as a Cygwin shell, then I'd very
much like GDB not to do that, as I frequently need to run GDB like
that, when some complicated shell command or script crashes, and
recreating a similar situation from the Windows shell is impractical.