This is the mail archive of the 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]

[PATCH 0/3] Fix build failure caused by ctf.c

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.

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.


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