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
Fix configure & make build with python disabled

This makes sure that nothing that requires Python is being built
when the LLDB_DISABLE_PYTHON flag is being passed in.
It also changes a use of CPPFLAGS to CPP.Flags since the former is overridden
when external flags are passed in while the later is not. I'm not sure exactly
why LLDB_DISABLE_PYTHON is in CXXFLAGS rather than CPPFLAGS,
but cleaning that up is for another commit.

Differential Revision: http://reviews.llvm.org/D4918

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217414 91177308-0d34-0410-b5e6-96231b3b80d8
Add back a return that got lost in rebase

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217415 91177308-0d34-0410-b5e6-96231b3b80d8
Fix -Werror,-Wcovered-switch-default warning in DWARFExpression
as part of an attempt to get lldb building inside llvm with -Werror
enabled.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217418 91177308-0d34-0410-b5e6-96231b3b80d8
Remove unused class variable and update all callers/users.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217419 91177308-0d34-0410-b5e6-96231b3b80d8
Remove two unused class variables.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217420 91177308-0d34-0410-b5e6-96231b3b80d8
Remove two default cases out of fully covered switches.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217421 91177308-0d34-0410-b5e6-96231b3b80d8
Compare against the right size integer.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217422 91177308-0d34-0410-b5e6-96231b3b80d8
Add a newline to the end of the file.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217423 91177308-0d34-0410-b5e6-96231b3b80d8
Remove a pair of default values from fully covered switches.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217424 91177308-0d34-0410-b5e6-96231b3b80d8
Remove unused class variable and its initialization.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217425 91177308-0d34-0410-b5e6-96231b3b80d8
Fix comment and remove duplicated -Wno-sign-compare option.


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