Re: RFA: Various Windows (mingw32) additions, mostly relating to select or serial ports

Daniel Jacobowitz
2006-02-03T22:08:15Z

On Fri, Feb 03, 2006 at 05:05:29PM -0500, Daniel Jacobowitz wrote:
> Fixes, all for a mingw32-hosted GDB:
>
> - Windows serial support. This definitely deserves a NEWS entry,
> included.
>
> - Mark's Windows-aware select wrapper is substantially improved.
> It's still a far cry from as thorough as Cygwin's, but it works
> for reads and errors on serial ports, network sockets, pipes, and
> consoles.
>
> - Connecting to a closed TCP socket no longer times out; instead it
> reports an error.

Oh - I missed one. gdb_has_a_terminal() now works, so query() prints
questions instead of assuming yes. That makes a big usability
difference.

Unfortunately, this is true for Windows consoles, but not for a
Windows-native GDB run from a Cygwin SSH terminal - there stdin
is just a pipe. I checked with Chris, and there really doesn't seem to
be a useful way around this. So if you want to use a native Windows
GDB, use it in a native Windows console (or via a pipe explicitly -
e.g. Eclipse).

--
Daniel Jacobowitz
CodeSourcery