RFA: Support Windows extended error numbers in safe_strerror
Eli Zaretskii
eliz@gnu.org
Thu Feb 9 20:26:00 GMT 2006
> 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.
More information about the Gdb-patches
mailing list