From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18827 invoked by alias); 9 Feb 2006 20:26:02 -0000 Received: (qmail 18816 invoked by uid 22791); 9 Feb 2006 20:26:01 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 09 Feb 2006 20:25:58 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-71-5.inter.net.il [80.230.71.5]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id DNP02675 (AUTH halo1); Thu, 9 Feb 2006 22:25:55 +0200 (IST) Date: Thu, 09 Feb 2006 20:26:00 -0000 Message-Id: From: Eli Zaretskii To: "Mark Kettenis" CC: gdb-patches@sourceware.org In-reply-to: <15661.192.87.1.22.1139496247.squirrel@webmail.xs4all.nl> (mark.kettenis@xs4all.nl) Subject: Re: RFA: Support Windows extended error numbers in safe_strerror Reply-to: Eli Zaretskii References: <20060203215455.GA3501@nevyn.them.org> <20060206173550.GB22947@nevyn.them.org> <200602062254.k16MsagK009925@elgar.sibelius.xs4all.nl> <20060206225829.GA31895@nevyn.them.org> <20060208000855.GA5040@nevyn.them.org> <200602082107.k18L7xRh013417@elgar.sibelius.xs4all.nl> <200602082310.k18NAQNe027038@elgar.sibelius.xs4all.nl> <15661.192.87.1.22.1139496247.squirrel@webmail.xs4all.nl> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00219.txt.bz2 > Date: Thu, 9 Feb 2006 15:44:07 +0100 (CET) > From: "Mark Kettenis" > 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.