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]

Re: [PATCH 1/3] Detect GDB is in cygwin


On 08/08/2013 01:11 PM, Christopher Faylor wrote:
If you're just going to always set to unbuffered when something
is a pipe, why not just check for a pipe using GetFileType?  Then
you don't have to try to use an undocumented Cygwin behaviour.

What I am going to do is to set stdout/stderr unbuffered if we can
detect that GDB is running in cygwin, with tty allocated or without tty
allocated.  We'd like to restrict this behaviour change only when
mingw gdb is running in cygwin.  We don't want to change the behaviour
on native windows, so we have to rely on this Cygwin behaviour.

--
Yao (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]