This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Support Windows extended error numbers in safe_strerror


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]