Added gdb-remote tests for Q{Save,Restore}RegisterState.

Tests for both thread suffix and no thread suffix execution.

Moved some bit-flipping helper methods from TestLldbGdbServer
into the base GdbRemoteTestCaseBase class.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211381 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed the "log enable gdb-remote packets" to support dumping the binary memory read packet ('x') by printing out the binary data correctly using only printable characters and removing the 0x7d escapes so the memory is readable in the packet output.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211400 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a gdbremote bug in _M/_m stub support detection.

When a stub reported $#00 (unsupported) for _M and _m
packets, the unsupported response was not handled and
the client then marked the _M/_m commands as definitely
supported.  However, they would always fail, preventing
lldb's fallback InferiorCallMmap-based allocation strategy
from being used to attempt to allocate memory in the inferior
process space.


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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211451 91177308-0d34-0410-b5e6-96231b3b80d8
Simplify the code (variable bValid is not really interesting)

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

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211468 91177308-0d34-0410-b5e6-96231b3b80d8
lldb: deal with non-portable PTRACE-related constants

See http://reviews.llvm.org/D4091 for details.

Change by Paul Osmialowski.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211503 91177308-0d34-0410-b5e6-96231b3b80d8
Add API control of the signal disposition.

See http://reviews.llvm.org/D4221 for details.

This commit allows you to control the signals that lldb will suppress, stop or forward using the Python and C++ APIs.

Change by Russell Harmon.

Xcode build system changes (and any mistakes) by Todd Fiala.  Tested on MacOSX 10.9.3 and Xcode 6 beta.  (Xcode 5 is hitting the dependency checker crasher on all my systems).


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

From the patch posted by Russell Harmon.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211534 91177308-0d34-0410-b5e6-96231b3b80d8
Part 2 of SBUnitSignals check-in.

I missed adding a few new files to the change list.
The build is broken from r211526 without this fix.
(And Ed Maste caught it before I did, so this is
the remainder - the test methods).


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211535 91177308-0d34-0410-b5e6-96231b3b80d8
Don't set the ABI to apcs-gnu for non-ARM iOS targets (i.e., the
simulator).
    
<rdar://problem/17399406>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211536 91177308-0d34-0410-b5e6-96231b3b80d8
Temporarily roll back the parts of r211241 where I fixed a
mistake in the lock acquistion in HistoryUnwind and HistoryThread.
We've got a deadlock with one use case of HistoryUnwind; I
need to figure out what lock ordering is causing this and fix
it for real.  
<rdar://problem/17411904> 


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211541 91177308-0d34-0410-b5e6-96231b3b80d8
Add newline on last line of a few files.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211547 91177308-0d34-0410-b5e6-96231b3b80d8
Fix error handling for the AppleGetQueues and AppleGetPendingItems
ClangFunctions if the clang function compilation fails for any reason.
<rdar://problem/16793965> 


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211549 91177308-0d34-0410-b5e6-96231b3b80d8
Added support for new MI commands and bug fixes. More details in MIReadme.txt.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211607 91177308-0d34-0410-b5e6-96231b3b80d8
Remove unused files, causing CMake build error.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211618 91177308-0d34-0410-b5e6-96231b3b80d8
Restore fixes reverted by r211607:

r209631: Use MIUtilSystemLinux on FreeBSD as well

  We should later rename this file (probably MIUtilSystemPOSIX), but
  more clean-up is still needed here, and we can wait until we better
  understand how this code may be shared between FreeBSD, Linux, and OS X.

r209632: Add stdlib.h for malloc and friends

r209633: Remove include of obsolete stropts.h header

  The header is for POSIX streams functionality, and does not exist on
  FreeBSD, OS X, or contemporary Linux distributions.

Issue reported by John Wolfe.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211620 91177308-0d34-0410-b5e6-96231b3b80d8
Restore r211547: Add newline on last line of a few files.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211621 91177308-0d34-0410-b5e6-96231b3b80d8
Fix up Windows build for the SBUnixSignals addition.

Change by Zachary Turner.


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