This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/3] Fix build failure caused by ctf.c
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Sat, 16 Mar 2013 12:21:29 +0800
- Subject: [PATCH 0/3] Fix build failure caused by ctf.c
- References: <83ip4s4ixc.fsf@gnu.org>
On 03/16/2013 02:27 AM, Eli Zaretskii wrote:>> Eli> I'd prefer that we provide a mkdir macro or maybe a gdb_mkdir function
>> >Eli> that would hide this ugliness from the mainline sources. A macro
>> >Eli> called 'mkdir' could on MS-Windows call a function called '_mkdir'
>> >Eli> ignoring the second argument.
>> >
>> >There's a gnulib mkdir module.
> That's another possibility, yes. Although for such a simple job I'm
> not sure the gnulib complexity is justified. But I don't object to
> using the gnulib mkdir module.
Hi,
This patch series fix the build failure on various platforms caused
by ctf.c. Patch 1 is to import mkdir module which can hide the
difference of mkdir on different platforms. Patch 2 is to use
WORDS_BIGENDIAN to determine the host byte order, to avoid using
LITTLE_ENDIAN which is unportable. Patch 3 is to stop using some
unportable macros, such as S_IXOTH.
Build GDB on linux with all targets enabled and cross compile GDB
for mingw32 target.
--
1.7.7.6