From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9215 invoked by alias); 9 Mar 2005 10:31:35 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8147 invoked from network); 9 Mar 2005 10:30:37 -0000 Received: from unknown (HELO server7.nfra.nl) (192.87.1.57) by sourceware.org with SMTP; 9 Mar 2005 10:30:37 -0000 Received: from jop31.nfra.nl ([10.87.10.31]) by server7.nfra.nl; Wed, 09 Mar 2005 11:30:22 +0100 Received: from jop31.nfra.nl (localhost [127.0.0.1]) by jop31.nfra.nl (8.13.1/8.12.7/SuSE Linux 0.6) with ESMTP id j29AULun019040; Wed, 9 Mar 2005 11:30:25 +0100 Received: (from kettenis@localhost) by jop31.nfra.nl (8.13.1/8.13.1/Submit) id j29AULdL019037; Wed, 9 Mar 2005 11:30:21 +0100 Date: Wed, 09 Mar 2005 10:31:00 -0000 Message-Id: <200503091030.j29AULdL019037@jop31.nfra.nl> From: Mark Kettenis To: mark@codesourcery.com CC: gdb-patches@gcc.gnu.org In-reply-to: <200503082329.j28NTaN1029372@sethra.codesourcery.com> (message from Mark Mitchell on Tue, 8 Mar 2005 15:29:36 -0800) Subject: Re: PATCH: Introduce gdb_gettimeofday References: <200503082329.j28NTaN1029372@sethra.codesourcery.com> X-SW-Source: 2005-03/txt/msg00142.txt.bz2 Date: Tue, 8 Mar 2005 15:29:36 -0800 From: Mark Mitchell Some systems (Windows) don't have gettimeofday. This patch introduces a new utility function gdb_gettimeofday; on UNIX systems this is just a wrapper for gettimeofday, while on other systems it relies on fallback methods. (In particular, on Windows, we use "time", at least for now.) I'm not thrilled. gettimeofday(2) is POSIX, so any decent operating system should have it. Even cygwin (the only way GDB currently supports Windows) seems to have it. Is there a coordinated attempt to make GDB run on Windows in some other way? If there indeed is such an effort, did you consider adding gettimeofday(2) to libiberty? Tested by building on both Windows (with other patches not yet submitted) and on x86_64-uknown-linux-gnu, and by running the testsuite on the latter platform with no regressions. I'll check for copyrights before submission, if this is approved. OK? Even if this patch turns out to be the way go, there's a problem: 2005-03-08 Mark Mitchell * config.in (HAVE_GETTIMEOFDAY): #undef it. This should not be necessary. Cheers, Mark