Report the result of waitpid() a little more clearly as well as clearly logging the process status.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207698 91177308-0d34-0410-b5e6-96231b3b80d8
Allow for a task port to change when we exec. 

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@207699 91177308-0d34-0410-b5e6-96231b3b80d8
Sometimes when launching through a shell, we can run into cases where the /bin/sh or /usr/bin/arch can crash the process due to security measures. Now we correctly report when a process exited in the process of launching so we can show the reason why it crashed instead of just showing “initial process state wasn't stopped: exited”.

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