From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11802 invoked by alias); 3 Feb 2006 22:08:15 -0000 Received: (qmail 11787 invoked by uid 22791); 3 Feb 2006 22:08:15 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 03 Feb 2006 22:08:13 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1F596B-00012y-8o for gdb-patches@sourceware.org; Fri, 03 Feb 2006 17:08:11 -0500 Date: Fri, 03 Feb 2006 22:08:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: RFA: Various Windows (mingw32) additions, mostly relating to select or serial ports Message-ID: <20060203220811.GA3969@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <20060203220529.GA3578@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060203220529.GA3578@nevyn.them.org> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00049.txt.bz2 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