From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9370 invoked by alias); 24 Apr 2005 22:30:47 -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 9277 invoked from network); 24 Apr 2005 22:30:32 -0000 Received: from unknown (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org with SMTP; 24 Apr 2005 22:30:32 -0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.0/8.13.0) with ESMTP id j3OMSp7k020723; Mon, 25 Apr 2005 00:28:51 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.4/8.13.3) with ESMTP id j3OMSoEL010933; Mon, 25 Apr 2005 00:28:50 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id j3OMSoMh021198; Mon, 25 Apr 2005 00:28:50 +0200 (CEST) Date: Sun, 24 Apr 2005 22:30:00 -0000 Message-Id: <200504242228.j3OMSoMh021198@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: eliz@gnu.org, mark@codesourcery.com, gdb-patches@sources.redhat.com In-reply-to: <20050424221806.GA13942@nevyn.them.org> (message from Daniel Jacobowitz on Sun, 24 Apr 2005 18:18:06 -0400) Subject: Re: PATCH: Support Windows in event-loop.c References: <200504210549.j3L5n2nP027728@sirius.codesourcery.com> <01c546a1$Blat.v2.4$e03250c0@zahav.net.il> <4267F742.2090108@codesourcery.com> <01c546b0$Blat.v2.4$c193bb40@zahav.net.il> <20050421205617.GA13146@nevyn.them.org> <01c54713$Blat.v2.4$5d0b4ea0@zahav.net.il> <20050424221806.GA13942@nevyn.them.org> X-SW-Source: 2005-04/txt/msg00301.txt.bz2 Date: Sun, 24 Apr 2005 18:18:06 -0400 From: Daniel Jacobowitz On Fri, Apr 22, 2005 at 11:13:51AM +0300, Eli Zaretskii wrote: > > How does the fact that only Windows provides WaitForMultipleObjects > > make it conceptually different from the fact that a bunch of systems > > provide poll, and a bunch don't? > > The difference is that `select' and `poll' are both Posix functions, > while WaitForMultipleObjects is MS-Windows specific. I guess I don't see this as a problem, while you do. In any case, since Chris has raised technical objections, I'm going to sit back and see what the next revision looks like. Hopefully it will make us both happier. The problem here is that traditional gdb programmers are familliar with POSIX and therefore certainly with select, and probably with poll. They might very well not be familliar with Windows and the magic of WaitForMultipleObjects. If we accept the patch as-is, the number of people that can hack on the event loop code decreases since the number of people who are familliar with both Windows and POSIX is smaller than the number of people who know about POSIX. This is why I think it would be preferable if an emulation for select or poll would be used here. Mark