Fixes for gcc compatability

Hi,

Attached is a patch that removes the trailing commas from some enums, so gcc doesn’t error out when compiling llvm+lldb (either on FreeBSD or on Mac OS X).

I don’t know if you just want lldb to compile with clang or if you want it to work with gcc too.

I tried passing CFLAGS to configure to make gcc use c++0x mode (which wouldn’t be good for some C files in llvm), but it didn’t work, some of them seem to be stripped.

Regards,

Filipe

trailing-commas.patch (3.72 KB)

New Revision: 138020

URL: http://llvm.org/viewvc/llvm-project?rev=138020&view=rev
Log:

  • applied a patch by Filipe Cabecinhas to make LLDB compile with GCC

Thanks for your patch. Now GCC should be able to compile the debugger

Enrico Granata

✆ 408.974.5572 | :email: egranata@.com

Hi,

I have found two more misplaced commas in lldb.

Regards,

Filipe

additional-commas.patch (1.21 KB)

Fixed in ToT.

Thanks,

Enrico Granata

✆ 408.974.5572 | :email: egranata@.com

Not gcc relate, but a small fix anyway:
liblldb.so doesn’t compile with ‘make’ builds due to a missing dependency.

Fix is attached.

Regards,

Filipe

Makefile.patch (353 Bytes)

Patch applied. Thanks!

http://llvm.org/viewvc/llvm-project?rev=138403&view=rev