From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32609 invoked by alias); 21 Feb 2003 01:34:16 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 32600 invoked from network); 21 Feb 2003 01:34:16 -0000 Received: from unknown (HELO redhat.com) (66.30.22.225) by 172.16.49.205 with SMTP; 21 Feb 2003 01:34:16 -0000 Received: by redhat.com (Postfix, from userid 201) id 8330B1BCA9; Thu, 20 Feb 2003 20:34:29 -0500 (EST) Date: Fri, 21 Feb 2003 01:34:00 -0000 From: Christopher Faylor To: gdb@sources.redhat.com Subject: Re: ser-pipe.c porting to MinGW Message-ID: <20030221013429.GA24300@redhat.com> Reply-To: gdb@sources.redhat.com Mail-Followup-To: gdb@sources.redhat.com References: <9FF3133289A7A84E81E2ED8F5E56B379537CBA@sh-uk-ex01.uk.w2k.superh.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9FF3133289A7A84E81E2ED8F5E56B379537CBA@sh-uk-ex01.uk.w2k.superh.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-02/txt/msg00455.txt.bz2 [reply-to set to gdb] On Thu, Feb 20, 2003 at 06:12:57PM -0000, Fyles, Matthew wrote: >The pipe_open() function written to work for solaris and linux uses >sockets to re-direct the stdin and stdout of the child process. >Unfortunately Microsoft do not allow sockets to be used with the posix >compatibility functions read, write and dup2 under windows. > >Would the most sensible fix be to use standard pipes and change scb->fd >to have scb->rfd and scd->wfd and then put a wrapper around the >ser_unix_readchar and ser_unix_write functions in ser-pipe.c or can >anyone suggest a more sensible fix. This will work on all hosts not just >win32 so in should be a satisfactory solution, my only concern is >renaming the scb->fd. > >Any thoughts? Since MinGW is not a supported gdb platform, I think someone would have to step forward to submit a port before we would start worrying about something like this. Are you working on getting MinGW ported to the latest version of gdb? cgf