llgs: add --reverse-connect support.

Also includes --reverse-connect tests for llgs and debugserver.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214031 91177308-0d34-0410-b5e6-96231b3b80d8
Test commit, please ignore


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214062 91177308-0d34-0410-b5e6-96231b3b80d8
Fix the MSVC build.  MSVC does not support constexpr.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214091 91177308-0d34-0410-b5e6-96231b3b80d8
Fix supported architectures on PlatformWindows.

i386, i486, i486sx, and i686 are all indistinguishable as far as
PE/COFF files are concerned.  This patch adds support for all of
these architectures to PlatformWindows.

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214092 91177308-0d34-0410-b5e6-96231b3b80d8
Use llvm Support functions to get the user's home directory.

Assuming that the user's home directory is at ~ is incorrect on
Windows.  This patch delegates the request to LLVM's support
library, which already provides a cross-platform implementation
of this function.

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214093 91177308-0d34-0410-b5e6-96231b3b80d8
Teach LLDB about Windows processes.

This patch creates a simple ProcessWindows process plugin.
The only thing it knows how to do currently is create processes.

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214094 91177308-0d34-0410-b5e6-96231b3b80d8
Fixup TestStepNoDebug to cleanup properly on shutdown.

This was causing core dumps on MacOSX and was not properly
cleaning up the state of the inferior before exiting.

The test was overriding def tearDown(), but failed to
call the base class after doing its own cleanup.  This
essentially eliminated normal clean-up activity.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214138 91177308-0d34-0410-b5e6-96231b3b80d8
Fix compile error on Windows.

A piece of a future patch accidentally made it in, this simply
fixes the error.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214161 91177308-0d34-0410-b5e6-96231b3b80d8
Merge upstream 214161 into dev-llgs-local
When constructing an ArchSpec from a MachO cpu type and subtype, don't set the OS for x86_64 and x86 in case the binary ends up being for macosx or ios.

<rdar://problem/17819272> 


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214188 91177308-0d34-0410-b5e6-96231b3b80d8
[Windows] Delegate str[n]casecmp to the appropriate MSVCRT func.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214197 91177308-0d34-0410-b5e6-96231b3b80d8
Use the most up to date dsymutil on Darwin, not the one in /usr/bin/dsymutil.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214207 91177308-0d34-0410-b5e6-96231b3b80d8
Resolve the executable _before_ we try to get the module specifications.

Also fixed the host 32 and 64 bit arch to return "x86_64-apple-macosx" again instead of "x86_64-apple-" (unspecified OS) after recent changes.

<rdar://problem/17845078> 


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214223 91177308-0d34-0410-b5e6-96231b3b80d8
Remove unused variable that was causing a warning.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214230 91177308-0d34-0410-b5e6-96231b3b80d8
Attempt to fix the expression parser after r214119

__INT?_TYPE__ is now explicitly, so adding an explicit 'signed'
specifier causes errors.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214233 91177308-0d34-0410-b5e6-96231b3b80d8
Add $vAttach support to llgs.

Also adds a new test case for vAttach;{pid} for llgs and debugserver.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214236 91177308-0d34-0410-b5e6-96231b3b80d8
Merge upstream llvm.org r214236 into dev-llgs-local.