From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2809 invoked by alias); 18 Aug 2010 14:36:54 -0000 Received: (qmail 2801 invoked by uid 22791); 18 Aug 2010 14:36:53 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 Aug 2010 14:36:16 +0000 Received: (qmail 26151 invoked from network); 18 Aug 2010 14:36:14 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 18 Aug 2010 14:36:14 -0000 Date: Wed, 18 Aug 2010 14:36:00 -0000 From: Daniel Jacobowitz To: Pedro Alves Cc: gdb-patches@sourceware.org, Phil Muldoon , Tom Tromey Subject: Re: [patch] Implement post_event for Python scripts. Message-ID: <20100818143607.GA29823@caradoc.them.org> Mail-Followup-To: Pedro Alves , gdb-patches@sourceware.org, Phil Muldoon , Tom Tromey References: <4C45F0B0.5000903@redhat.com> <201008181445.52900.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201008181445.52900.pedro@codesourcery.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-08/txt/msg00294.txt.bz2 On Wed, Aug 18, 2010 at 02:45:52PM +0100, Pedro Alves wrote: > I'm also not sure whether ... > > > /* We use a file handler, and not an async handler, so that we can > > wake up the main thread even when it is blocked in poll(). */ > > static int gdbpy_event_fds[2]; > > ... mingw-htep.c:gdb_select will be smart enough to apply the > proper select for that file descriptor, or if we need to bring > the whole patch in. I think it'll work; it falls back to _get_osfhandle, So if you can WaitForMultipleObjects on the Windows pipe handle, it'll do OK. It was just for some serial cases where you needed a separate handle that we had problems. OTOH if waiting for the pipe handle means you can connect to it, or some other interpretation, we'll be back to the beginning. You could maybe adapt ser-pipe. -- Daniel Jacobowitz CodeSourcery