This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Support Windows in event-loop.c


   Date: Sun, 24 Apr 2005 18:18:06 -0400
   From: Daniel Jacobowitz <drow@false.org>

   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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]