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
Rework fix in r201744.  You really DO need to waitpid twice to get the
process fully reaped.  The race & bad behavior was because we were letting
the reaping thread in LLDB to also set the Process exit status, so debugserver
would sometimes be shut down before it got a chance to report the exit status, 
and then we got confused.

<rdar://problem/16555850>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211636 91177308-0d34-0410-b5e6-96231b3b80d8
Patch from Keno Fischer to enable JITLoaderGDB with mach-o file support.

The patch is as is with the functionality left disabled for apple vendors because of performance regressions. If this is enabled it ends up searching for symbols in all shared libraries that are loadeded.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211638 91177308-0d34-0410-b5e6-96231b3b80d8
Remove extra newline from log Printf

Clean up this one specifically, as it has the effect of double-spacing
the list of thread stop reasons, and substantially bloats the log file
when opening a core with hundreds of threads.

There are other cases of extra newlines.  Some of them do increase
readability, so avoid a general sweep for now.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211655 91177308-0d34-0410-b5e6-96231b3b80d8
Added an option to turn OFF the "detach on error" behavior that was added
to debugserver when launching processes.

<rdar://problem/16216199>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211658 91177308-0d34-0410-b5e6-96231b3b80d8
Replace GCC-specific intrinsic with portable alternative.

Not all supported compilers have GCC intrinsics, so this patch
uses the correct portable alternative.

Additionally, this patch fixes an off-by-one error.  __builtin_ffs
returns the 1-based index of the least-significant 1-bit, but the
function expects the base 2 logarithm of the number, which is
equivalent to the 0-based index of the least-significant 1-bit.

Reviewed by: Keno Fischer

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211669 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a bug in the IRMemoryMap which generated bogus allocations.

Previously, only the starting locations of the candidate interval
and the existing interval were compared.  To correctly detect
range intersections, it is necessary to compare the entire range
of both intervals against each other.

Reviewed by: scallanan

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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211726 91177308-0d34-0410-b5e6-96231b3b80d8
Fix silly compilation error.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211728 91177308-0d34-0410-b5e6-96231b3b80d8
Whitespace fix.
Merge llvm upstream r211728 into dev-tfiala-native-protocol-linux-x86_64

Conflicts:
	source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp