From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11710 invoked by alias); 29 Mar 2011 20:22:03 -0000 Received: (qmail 11698 invoked by uid 22791); 29 Mar 2011 20:22:01 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 Mar 2011 20:21:57 +0000 Received: by wyf19 with SMTP id 19so605721wyf.0 for ; Tue, 29 Mar 2011 13:21:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.61.9 with SMTP id v9mr668273wec.67.1301430115468; Tue, 29 Mar 2011 13:21:55 -0700 (PDT) Received: by 10.216.38.6 with HTTP; Tue, 29 Mar 2011 13:21:55 -0700 (PDT) In-Reply-To: <831v1psnl9.fsf@gnu.org> References: <004701cbede4$0ee18c20$2ca4a460$%muller@ics-cnrs.unistra.fr> <003001cbee11$49bb0880$dd311980$%muller@ics-cnrs.unistra.fr> <201103291523.46954.pedro@codesourcery.com> <831v1psnl9.fsf@gnu.org> Date: Wed, 30 Mar 2011 00:06:00 -0000 Message-ID: Subject: Re: [RFC] Missing sleep function for mingw hosts From: Matt Rice To: Eli Zaretskii Cc: Pedro Alves , gdb-patches@sourceware.org, pierre.muller@ics-cnrs.unistra.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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: 2011-03/txt/msg01188.txt.bz2 On Tue, Mar 29, 2011 at 1:01 PM, Eli Zaretskii wrote: >> From: Pedro Alves >> Date: Tue, 29 Mar 2011 15:23:46 +0100 >> Cc: "Pierre Muller" , >> =A0"'Eli Zaretskii'" >> >> > > I'd rather we had a replacement in win32-nat.c, instead of importing >> > > gobs of gnulib stuff needed to provide such a trivial replacement. >> > > gnulib is GPL, so we can simply copy the code into our sources. >> >> gnulib has a mechanism (which we are already using) where >> we just import the modules we need. =A0We don't import the whole >> thing. > > I know, but "just the modules we need" are typically huge relative to > small problems they solve, this one in particular. > > Anyway, I'm glad that a much more elegant solution is already > available in GDB, in the form of gdb_usleep. > fwiw, looking at the output of: https://gitorious.org/gnulib-module-graph/gnulib-module-graph importing sleep brings in 2 dependencies which we do not already have, unistd, and verify (in addition to the sleep module).