Expose ThreadCollection in SB API

Reviewed at
http://reviews.llvm.org/D5218
and
http://lists.cs.uiuc.edu/pipermail/lldb-commits/Week-of-Mon-20140901/012828.html



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217296 91177308-0d34-0410-b5e6-96231b3b80d8
Fix CMake configuration (forgot to add a file in the last commit).



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217297 91177308-0d34-0410-b5e6-96231b3b80d8
Expose the ability to retrieve the result of a type validator via the SB API. To keep it simple, do not expose the pair, but just return a NULL string for success, and a non-NULL string for error; If we were to decide to expose the pair, we would need an SBTypeValidatorResult, which is fine, but it should come as part of exposing type validators through the SB API rather than as a one-off thing. So, KISS for now

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217299 91177308-0d34-0410-b5e6-96231b3b80d8
Implement ASan history threads in SB API

Reviewed at
http://reviews.llvm.org/D5219
and
http://lists.cs.uiuc.edu/pipermail/lldb-commits/Week-of-Mon-20140901/012809.html



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217300 91177308-0d34-0410-b5e6-96231b3b80d8
The original jit no longer exists in llvm, remove from dependencies.

PR20864


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217301 91177308-0d34-0410-b5e6-96231b3b80d8
Add a -V <bool> flag to frame variable/expression that enables execution of type validators. The jury is still out on what the user experience of type validators should be, so for now gate it on a specific flag. The mode I am using is prefix variables that fail to validate with a bang, and then emitting the actual validation error on a separate line. Of course, given the total absence of validators, this should never actually happen to you

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217303 91177308-0d34-0410-b5e6-96231b3b80d8
Correct copied error message

Patch by Remco Verhoef.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217312 91177308-0d34-0410-b5e6-96231b3b80d8
DataFormatters: use include instead of import in C++

'#import' is an Objective-C construct; avoid using it in C++.  NFC.

Addresses PR20867.

Patch by Kevin Avila!

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217340 91177308-0d34-0410-b5e6-96231b3b80d8
driver: handle write error better

We would previously simply assume that the write would always succeed.  However,
write(2) may return -1 for error as well as fail to perform a complete write (in
which case the returned number of bytes will be less than the requested bytes).

Explicitly check if an error condition is encountered.  This would previously
not be caught as we default initialized success to true.  Add an assertion that
we always perform a complete write (a continuous retry could be added to ensure
that we finish writing completely).

This was caught by GCC's signed comparison warning and manual inspection.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217355 91177308-0d34-0410-b5e6-96231b3b80d8
build: attempt to fix the buildbots

Linking Release+Asserts executable lldb-gdbserver (without symbols)
liblldb.so: undefined reference to `lldb_private::MemoryHistoryASan::Initialize()'
liblldb.so: undefined reference to `lldb_private::MemoryHistoryASan::Terminate()'
liblldb.so: undefined reference to `vtable for lldb_private::TypeValidatorImpl_CXX'
liblldb.so: undefined reference to `lldb_private::TypeValidatorImpl::TypeValidatorImpl(lldb_private::TypeValidatorImpl::Flags const&)'

liblldb.so underlinked to lldbPluginMemoryHistoryASan.a when building with the
make based build system (as opposed to CMake).

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217360 91177308-0d34-0410-b5e6-96231b3b80d8
DataFormatters: add missing function implementations

This adds a definition for the TypeValidatorImpl_CXX destructor.  Because the
destructor is first virtual method, and declared out-of-line, it also serves as
the key function.  Since no definition was present, no virtual table for
TypeValidatorImpl_CXX was emitted, which results in link failures due to
references to undefined symbols.

Also add a definition for a TypeValidatorImpl contructor which was declared
out-of-line and referenced in a constructor for TypeValidatorImpl_CXX.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217375 91177308-0d34-0410-b5e6-96231b3b80d8
remove a couple of default cases from switches

This cleans up a couple of warnings [-Wcovered-switch-default] from the build by
removing the default case from a couple of switches which are fully covered.
This is generally better as it will help identify when a new item is added to
the enumeration but the use sites are not updated.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217376 91177308-0d34-0410-b5e6-96231b3b80d8
Linux/FreeBSD local debugging: allow redirection to pts for POSIX process.

See http://reviews.llvm.org/D5135 for more details.

Change by Zephyr Zhao.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217382 91177308-0d34-0410-b5e6-96231b3b80d8
Modify call-function and rdar-12437442 tests to clean up all files produced during test run.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217387 91177308-0d34-0410-b5e6-96231b3b80d8
Fix test failure for test/functionalities/connect_remote/TestConnectRemote.py when port 12345 is already in use

Reviewed at http://reviews.llvm.org/D5221



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217388 91177308-0d34-0410-b5e6-96231b3b80d8
DataFormatters: add missing destructor implementation

The last of the missing symbols to correct the make based build to restore the
FreeBSD buildbot!

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217394 91177308-0d34-0410-b5e6-96231b3b80d8
Merge remote-tracking branch 'gold/master' into dev-llgs-local

Conflicts:
	source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
Merge remote-tracking branch 'gold/master' into dev-llgs-local