Re: [RFC] Missing sleep function for mingw hosts

Matt Rice
2011-03-30T00:06:41Z

On Tue, Mar 29, 2011 at 3:04 PM, Eli Zaretskii <eliz@gnu.org> wrote:

>
> Aha, and all that for a function whose definition, including empty
> lines and comments, is 14 lines (10 lines without that slack).
> Typical.
>

except it allows one to remove those 14 lines from gdb proper,
and call the sleep with impunity.

we & others benefit from the portability problems which we & they encounter.
like if it works with values of 49 or 29 days on various platforms.

you forgot that gdb_usleep depends on gdb_select which has 2 implementations
of either 134 or 3 lines which gnulib also has a module for.

so thats 147 lines of c code that could potentially be removed,
allowing gdb to focus on being a debugger
rather than a debugger with an ad-hoc portability layer.