This is the mail archive of the gdb-patches@sources.redhat.com 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: [patch] Building simulators on windows hosts


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


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