Get test executables compiling on Windows.

Many of the test executables use pthreads directly.  This isn't
portable on Windows, so this patch converts these test to use
C++11 threads and mutexes.  Since Windows' implementation of
std::thread classes throw and catch from header files, this patch
also disables exceptions when compiling with clang on Windows.

Reviewed by: Todd Fiala, Ed Maste

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215562 91177308-0d34-0410-b5e6-96231b3b80d8
Use consistent capitalization for ENABLE_THREADS in tests


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215565 91177308-0d34-0410-b5e6-96231b3b80d8
Update clang-format file.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215572 91177308-0d34-0410-b5e6-96231b3b80d8
<rdar://problem/18001677>

Use the right mechanism to put the XPC services now that Xcode supports the workflow.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215596 91177308-0d34-0410-b5e6-96231b3b80d8
Don't enable STDIN for cases where we are supplying lines to be run in the embedded python interpreter.

<rdar://problem/17949057>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215608 91177308-0d34-0410-b5e6-96231b3b80d8
Refactor FileAction out of ProcessLaunchInfo.

FileAction was previously a nested class in ProcessLaunchInfo.
This led to some unfortunate style consequences, such as requiring
the AddPosixSpawnFileAction() funciton to be defined in the Target
layer, instead of the more appropriate Host layer.  This patch
makes FileAction its own independent class in the Target layer,
and then moves AddPosixSpawnFileAction() into Host as a result.

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215649 91177308-0d34-0410-b5e6-96231b3b80d8
Modification to clang-format style.

Fixes constructor initializer list and function return type style.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215654 91177308-0d34-0410-b5e6-96231b3b80d8
Fix command "gdb-set" to handle long option --threadgroup and accept --longOption type words as just words for string types.
For example, MI command "17-gdb-set --thread-group i1 args --interpreter" is now acceptable, "--interpreter" was previous not valid.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215655 91177308-0d34-0410-b5e6-96231b3b80d8
Implementation of exec-run using lldb API.

Previously it was using run command which did not set the process
pointer in the sessionInfo. This commit also sends the proper
out-of-band data.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215656 91177308-0d34-0410-b5e6-96231b3b80d8
Fix 'pid' and 'executable' fields in the list-thread-group.

The documentation says that these fields should be generated when 
we have proper process or target file. Current implementation did not
check for this. Eclipse seem to use list-thread-group command even
before setting the executable in which case current implementation
can return garbage data.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215658 91177308-0d34-0410-b5e6-96231b3b80d8
fix the _regexp-break command to allow quotes around the name:

(lldb) b "Foo::Bar::Baz"

<rdar://problem/11782098>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215668 91177308-0d34-0410-b5e6-96231b3b80d8
Update .gitignore for MacOSX

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215674 91177308-0d34-0410-b5e6-96231b3b80d8
Fix typo in error message.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215681 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a thinko in the process list formatting.
Made Process::Attach list the matching processes if there is more than one match.

<rdar://problem/18023352>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215730 91177308-0d34-0410-b5e6-96231b3b80d8
Don't crash when specifying a core file that isn't readable.

Fixes include:
1 - added new FileSpec method: bool FileSpec::Readable()
2 - detect when an executable is not readable and give an appropriate error for:
    (lldb) file /tmp/unreadablefile
3 - detect when a core file is not readable and give an appropriate error
4 - detect when a specified core file doesn't exist and give an appropriate error
    
<rdar://problem/17727734>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215741 91177308-0d34-0410-b5e6-96231b3b80d8
Missed a few places where we need to report unreadable executables.

<rdar://problem/17727734>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215743 91177308-0d34-0410-b5e6-96231b3b80d8
Fix dependency ordering for the xpc file installs.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215771 91177308-0d34-0410-b5e6-96231b3b80d8
Move FileSystem functions out of Host and into their own classes.

More specifically, this change can be summarized as follows:
1) Makes an lldbHostPosix library which contains code common to
   all posix platforms.
2) Creates Host/FileSystem.h which defines a common FileSystem
   interface.
3) Implements FileSystem.h in Host/windows and Host/posix.
4) Creates Host/FileCache.h, implemented in Host/common, which
   defines a class useful for storing handles to open files needed
   by the debugger.

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@215775 91177308-0d34-0410-b5e6-96231b3b80d8
Remove another of the llvm given warnings from the list of
warnings we compile with because of SWIG generated code.


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

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