This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Missing sleep function for mingw hosts
- From: Matt Rice <ratmice at gmail dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: Pedro Alves <pedro at codesourcery dot com>, gdb-patches at sourceware dot org, pierre dot muller at ics-cnrs dot unistra dot fr
- Date: Tue, 29 Mar 2011 13:21:55 -0700
- Subject: Re: [RFC] Missing sleep function for mingw hosts
- References: <004701cbede4$0ee18c20$2ca4a460$%muller@ics-cnrs.unistra.fr> <E1Q4Y9z-0004UD-1Y@fencepost.gnu.org> <003001cbee11$49bb0880$dd311980$%muller@ics-cnrs.unistra.fr> <201103291523.46954.pedro@codesourcery.com> <831v1psnl9.fsf@gnu.org>
On Tue, Mar 29, 2011 at 1:01 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Pedro Alves <pedro@codesourcery.com>
>> Date: Tue, 29 Mar 2011 15:23:46 +0100
>> Cc: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>,
>> ?"'Eli Zaretskii'" <eliz@gnu.org>
>>
>> > > 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. ?We 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).