From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10670 invoked by alias); 25 Apr 2005 17:08:24 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 10163 invoked from network); 25 Apr 2005 17:07:51 -0000 Received: from unknown (HELO mail.codesourcery.com) (65.74.133.9) by sourceware.org with SMTP; 25 Apr 2005 17:07:51 -0000 Received: (qmail 8357 invoked from network); 25 Apr 2005 17:07:50 -0000 Received: from localhost (HELO ?192.168.0.3?) (mitchell@127.0.0.1) by mail.codesourcery.com with SMTP; 25 Apr 2005 17:07:50 -0000 Message-ID: <426D23DE.8070109@codesourcery.com> Date: Mon, 25 Apr 2005 17:08:00 -0000 From: Mark Mitchell Organization: CodeSourcery, LLC User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: "M.M. Kettenis" CC: Christopher Faylor , gdb-patches@sources.redhat.com Subject: Re: PATCH: Support Windows in event-loop.c References: <7320615710191969@webhare> In-Reply-To: <7320615710191969@webhare> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-04/txt/msg00320.txt.bz2 M.M. Kettenis wrote: >> That seems to suggest that some kind of generic select or poll >> implementation needs to be developed, probably using threads. > > Over my dead body (the threads part that is). There is no way to implement the full generality of select on Windows without threads. Based on all the feedback, what I plan to do is simply take the code I've written, package it up in gdb_select, implementing support for consoles, and declare victory. That avoids using non-POSIX APIs in common code, and provides useful functionality on Windows. It may not support everything (like the MI), that's no worse than the current state. Then, we can argue about how/if to use threads to support more generality. If there are any objections to the above plan, I'd appreciate hearing them soon, as I'll be working on this code later today. Thanks, -- Mark Mitchell CodeSourcery, LLC mark@codesourcery.com (916) 791-8304