This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Attachment:
isatty-for-native-apps.c
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |