Fix endian test for big-endian hosts

The uint16_t cast truncated the magic value to 0x00000304, making the
first byte 0 (eByteOrderInvalid) on big endian hosts.

Reported by Justin Hibbits.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@213861 91177308-0d34-0410-b5e6-96231b3b80d8
We were turning off all these tests on OSX and FreeBSD because of a known (and fairly unimportant) bug.  
Keep a test for that bug, but let the useful parts of the test run anyway.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@213875 91177308-0d34-0410-b5e6-96231b3b80d8
Fix configure/make builds on MacOSX.

Change by Keno Fischer.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@213904 91177308-0d34-0410-b5e6-96231b3b80d8
Fix an x86 assembler stack unwind calculation for non-volatile registers.

This change has the practical effect of fixing some backtrace
scenarios that would fail with inferiors running on the Android Art
host-side JVM under Linux x86_64 on Ubuntu 14.04.

See this lldb-commits thread for more details:
http://lists.cs.uiuc.edu/pipermail/lldb-commits/Week-of-Mon-20140721/011988.html

Change by Tong Shen.
Reviewed by Jason Molenda.

Tested:
Ubuntu 14.04 x86_64, clang-3.5-built lldb.
MacOSX 10.10 Preview 4, Xcode 6 Beta 4-built lldb.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@213914 91177308-0d34-0410-b5e6-96231b3b80d8
Minor fixups to documentation for Process::Launch()/DoLaunch().

The code had moved forward with changes for using ProcessLaunchInfo,
but the documentation still referred to arguments that no longer
get passed to these methods.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@213965 91177308-0d34-0410-b5e6-96231b3b80d8
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
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