Also silent -Wno-cast-qual in the SWIG Python wrapper. Remove a huge number of warnings

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@195930 91177308-0d34-0410-b5e6-96231b3b80d8
test: Decorators for pr17910

A number of tests fail to build on FreeBSD because the test build script
defaults to libstdc++ for clang.  On FreeBSD the libstdc++ is rather old
and libc++ should be used instead.

(These tests previously had an @expectedFailureFreeBSD decorator for
pr16696, the umbrella PR for the lack of threaded inferior support on
FreeBSD.  The work to add that support will be committed soon.)


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@196101 91177308-0d34-0410-b5e6-96231b3b80d8
elf: Move elf note parsing to ObjectFileELF.cpp

Separate ELF note implementations were introduced for core files and
GNU build-id.  Move the more general one from elf-core to ObjectFileELF
and use it for build-id as well.

Review: http://llvm-reviews.chandlerc.com/D1902


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@196125 91177308-0d34-0410-b5e6-96231b3b80d8
Request for review: Fix build-llvm.pl

Summary:
- Stop to try to rebuild llvm on each invocation by removing the invalid library entry libLLVMArchive.a which no longer exists.
- Remove the useless ranlib invocation. "libtools -static" automatically takes care of the archive table of content.

CC: lldb-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D2296

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@196128 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed internal code to not link against and code from "lldb/API/*". 

lldb_private::Debugger was #including some "lldb/API" header files which causes tools (lldb-platform and lldb-gdbserver) that link against the internals only (no API layer) to fail to link depending on which calls were being used.

Also fixed the current working directory so that it gets set correctly for remote test suite runs. Now the remote working directory is set to: "ARCH/TESTNUM/..." where ARCH is the current architecture name and "TESTNUM" is the current test number. 

Fixed the "lldb-platform" and "lldb-gdbserver" to not warn about mismatched visibility settings by having each have their own exports file which contains nothing. This forces all symbols to not be exported, and also quiets the linker warnings.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@196141 91177308-0d34-0410-b5e6-96231b3b80d8
Ensure parsed debug arange data is sorted

llvm.org/pr18114


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@196146 91177308-0d34-0410-b5e6-96231b3b80d8
Fix build on FreeBSD after r196141

This should probably be replaced with build infrastructure support for
a platform-specific canonical Python include path, but for now it should
restore the FreeBSD buildbot.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@196167 91177308-0d34-0410-b5e6-96231b3b80d8