On Jul 25 13:09, Yao Qi wrote: > Hi, > This patch is to add a new GDB option '--cygwin-tty', which is useful > when running/testing mingw32 native GDB in cygwin. Due the odd TTY > in Cygwin, the output of mingw32 native GDB behaves differently, > which causes the testsuite result unusable. I tried different > approaches to detect whether GDB is running in cygwin tty, but failed. Ptys in Cygwin are implemented as named pipes. Therefore the native MSVCRT _isatty() call returns 0 when called on a stream connected to a pty. Last year I created an isatty replacement implementation for non-Cygwin applications for demonstration. It should work with Mingw-w64 as well as VC++. I attached it to this mail, maybe it helps. Corinna -- Corinna Vinschen Cygwin Maintainer Red Hat