This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Compilation failure for mingw64 target (was New ARI warning Fri Mar 15 02:02:12 UTC 2013 in -D 2013-03-15-gmt)
> From: Tom Tromey <tromey@redhat.com>
> Cc: "'Yao Qi'" <yao@codesourcery.com>, <gdb-patches@sourceware.org>
> Date: Fri, 15 Mar 2013 10:55:46 -0600
>
> >>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:
>
> Pierre> Tom, this second part is really about the fact that mkdir for
> Pierre> WIN32API doesn't have a second argument, contrary to the usual case.
> Pierre> See for instance Binutils/bucomm.c line 538.
>
> Ok, thanks. It looks reasonable to me but I think it would be better if
> someone who knew something about Windows approved it.
I'd prefer that we provide a mkdir macro or maybe a gdb_mkdir function
that would hide this ugliness from the mainline sources. A macro
called 'mkdir' could on MS-Windows call a function called '_mkdir'
ignoring the second argument.