Re: RFA: Support Windows extended error numbers in safe_strerror

Eli Zaretskii
2006-02-09T20:26:02Z

> Date: Thu, 9 Feb 2006 15:44:07 +0100 (CET)
> From: "Mark Kettenis" <mark.kettenis@xs4all.nl>
> Cc: mark.kettenis@xs4all.nl, gdb-patches@sourceware.org
>
> > int gdb_select (...)
> > {
> > if (select_hook)
> > return (*select_hook) (...);
> > else
> > return select (...);
> > }
> >
> > We make `select_hook' a global pointer to a function, and then MinGW
> > can define its own emulation on win32-something.c and plug its address
> > into `select_hook'.
>
> There is absolutely no reason for this additional complexity. GDB will
> never be able to run on two different hosts at once.

The reason isn't to allow GDB to run on two different hosts, it's to
have a cleaner code and a simpler way of overriding a certain API.