Fixed whitespace issues.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207778 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed CTRL+C related issues:
- CTRL+C wasn't clearing the command in lldb
- CTRL+C doesn't work in python macros in lldb
- Ctrl+C no longer interrupts the running process that you attach to

<rdar://problem/15949205> 
<rdar://problem/16778652> 
<rdar://problem/16774411>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207816 91177308-0d34-0410-b5e6-96231b3b80d8
"DONE" is being left in multi-line results when it shouldn't for non terminal input.

<rdar://problem/16790579>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207818 91177308-0d34-0410-b5e6-96231b3b80d8
LLDB_INVALID_OFFSET can be large than a size_t on ILP32 systems, so use
SIZE_MAX here.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207855 91177308-0d34-0410-b5e6-96231b3b80d8
EOF is outside the value range of char on architectures with unsigned
char like ARM. Check for EOF explicitly.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207859 91177308-0d34-0410-b5e6-96231b3b80d8
LLDB_INVALID_ADDRESS may not be too large for a uintptr_t, so cast
first.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207860 91177308-0d34-0410-b5e6-96231b3b80d8
Use correct readline header on NetBSD.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207861 91177308-0d34-0410-b5e6-96231b3b80d8
Fix format string for 32bit systems.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207862 91177308-0d34-0410-b5e6-96231b3b80d8
For now, use FreeBSD's host configuration for NetBSD as well.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207863 91177308-0d34-0410-b5e6-96231b3b80d8
Use posix_spawn on NetBSD as well.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207864 91177308-0d34-0410-b5e6-96231b3b80d8
LLDB could segfault if it got a .a file that had extra padding bytes at the end of the file.

<rdar://problem/16732178>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207877 91177308-0d34-0410-b5e6-96231b3b80d8
Remove obsolete CXX11 buld instructions

There's an element of guesswork involved in the GCC updates but it seems better
than what was there before.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207912 91177308-0d34-0410-b5e6-96231b3b80d8
Track recent changes in clang internals

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207913 91177308-0d34-0410-b5e6-96231b3b80d8
Make the Expression Execution result enum available to the SB API layer.
Add a callback that will allow an expression to be cancelled between the
expression evaluation stages (for the ClangUserExpressions.)

<rdar://problem/16790467>, <rdar://problem/16573440>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207944 91177308-0d34-0410-b5e6-96231b3b80d8
Rename eExecution*** to eExpression*** to be consistent with the result type.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207945 91177308-0d34-0410-b5e6-96231b3b80d8
Refactored gdb remote protocol testing sequence handling.

Pushed gdbremote protocol sequence expectations into a separate
class and defer matching of llgs/debugserver output to the
sequence entry.  Pre-step to adding regex matching and
grouped content collecting.

No longer require anything before the read/send packet
portion of slurped-up log lines used for setting up
gdb remote test sequences.  Several packet logging options
produce a wide range of content before the read/send packet.

Added helpers to TestLldbGdbServer to clean up test setup
and test expectations matching.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207998 91177308-0d34-0410-b5e6-96231b3b80d8
Add a simple qSupported packet, fix a bug in decode_binary_data(), 
add a new 'x' packet for reading data in binary format.  Document
the 'x' packet.  
<rdar://problem/16032150> 


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208051 91177308-0d34-0410-b5e6-96231b3b80d8
Add GetxPacketSupported to test if the 'x' packet is supported.
<rdar://problem/16032150> 


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208052 91177308-0d34-0410-b5e6-96231b3b80d8
Change ProcessGDBRemote::DoReadMemory to use the x packet to read
data if it is available.

Change ProcessGDBRemote's maximum read/write packet size from a
fixed 512 byte value to asking the remote gdb stub what its maximum
is, using up to 128kbyte sizes if that's allowed, and falling back
to 512 if the remote gdb stub doesn't advertise a max packet size.

Add a new "process plugin packet xfer-size" command that can be used
to override the maximum packet size (although not exceeding any packet
size maximum published by the remote gdb stub).
<rdar://problem/16032150> 


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208058 91177308-0d34-0410-b5e6-96231b3b80d8
gdbremote testing: added regex support to match packets and propagate/test against previously stored matches.

Added a test validating that $qC after an inferior launch via $A
returns a thread id that an immediately followig $? reports for the
active thread. This is currently skipped on debugserver (the thread
ids don't match) and isn't yet implemented in TOT for llgs.


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