This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] Building simulators on windows hosts
- From: Daniel Jacobowitz <drow at false dot org>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 29 Apr 2005 10:43:55 -0400
- Subject: Re: [patch] Building simulators on windows hosts
- References: <200504291539.15275.paul@codesourcery.com>
On Fri, Apr 29, 2005 at 03:39:15PM +0100, Paul Brook wrote:
> The attached patch allows building the gdb simulators on windows hosts. These
> do not provide the lstat(2) or ftruncate(2) functions. truncate(2) is not
> implemented in older mingw releases.
>
> Windows doesn't have symbolic links, so we use stat in place of lstat. For the
> missing truncate functions we just fail.
>
> Applied to csl-arm-20050325-branch.
> Ok for mainline?
>
> Paul
>
> 2005-04-29 Paul Brook <paul@codesourcery.com>
>
> * common/callback.c (PIPE_BUF): Provide default refinition.
> (os_lstat): Use stat if lstat is not available on the host.
> (os_ftruncate): Return EINVAL if not available on the host.
> (os_truncate): Ditto.
> * common/configure.ac: Check for lstat, truncate and ftruncate.
> * common/configure: Regenerate.
> * common/config.in: Regenerate.
Yes, this is OK.
--
Daniel Jacobowitz
CodeSourcery, LLC