Fixed a crasher when using 1 character type names in “type summary”, “type synthetic” and “type filter”.

Also fixed a missing return when making python summary functions on the fly.

<rdar://problem/16265491>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@204867 91177308-0d34-0410-b5e6-96231b3b80d8
Add the "lldb_complete" .editrc command back in case veteran users of LLDB had .editrc key mappings in their ~/.editrc.

<rdar://problem/16279283>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@204870 91177308-0d34-0410-b5e6-96231b3b80d8
Link in the llvm/lib/ProfileData build product.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@204895 91177308-0d34-0410-b5e6-96231b3b80d8
Wait for the reply from the 'D' detach packet before tearing down the debugger.  Avoids a race
condition where we could end up killing debugserver (and thus the target) before it had a chance
to detach.
Also fix debugserver to send the OK AFTER it detaches to avoid the same race condition.

<rdar://problem/16202713>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205043 91177308-0d34-0410-b5e6-96231b3b80d8
Add the ability from the SB API's to set the "one thread" timeout
for expression evaluations that try one and then all threads.

<rdar://problem/15598528>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205060 91177308-0d34-0410-b5e6-96231b3b80d8
Link against the zlib solib, required to build against TOT llvm.


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

These changes were written by Greg Clayton, Jim Ingham, Jason Molenda.

It builds cleanly against TOT llvm with xcodebuild.  I updated the
cmake files by visual inspection but did not try a build.  I haven't
built these sources on any non-Mac platforms - I don't think this
patch adds any code that requires darwin, but please let me know if
I missed something.

In debugserver, MachProcess.cpp and MachTask.cpp were renamed to
MachProcess.mm and MachTask.mm as they picked up some new Objective-C
code needed to launch processes when running on iOS.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205113 91177308-0d34-0410-b5e6-96231b3b80d8
Include string.h for memset() prototype.  Thanks Dmitri.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205115 91177308-0d34-0410-b5e6-96231b3b80d8
Fixing MSVC windows build. Please respect code order when ifdefing out MSVC specifics :)

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205211 91177308-0d34-0410-b5e6-96231b3b80d8
Fix one thread timeout logic

This should fix the seemingly-random failures observed on the FreeBSD
buildbot.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205241 91177308-0d34-0410-b5e6-96231b3b80d8
Workaround test trace output dir creation race condition

Since dosep.ty started invoking multiple tests in parallel, the FreeBSD
buildbot occasionally has a failure due to os.mkdir returning EEXIST.
Silently ignore that exception, but reraise any other.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205246 91177308-0d34-0410-b5e6-96231b3b80d8
<rdar://problem/16424592>

For some reason, the libc++ vector<bool> data formatter was essentially a costly no-up, doing everything required of it, except actually generating the child values!

This restores its functionality



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205259 91177308-0d34-0410-b5e6-96231b3b80d8
Add errno import missed in r205246



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205306 91177308-0d34-0410-b5e6-96231b3b80d8
Implement ProcessMonitor::Kill for FreeBSD

On FreeBSD ptrace(PT_KILL) is used to terminate the traced process
(as if PT_CONTINUE had been used with SIGKILL as the signal to be
delivered), and is the desired behaviour for ProcessPOSIX::DoDestroy.

On Linux, after ptrace(PTRACE_KILL) the traced process still exists
and can be interrogated.  It is only upon resume that it exits as though
it received SIGKILL.

For now I'm committing only the FreeBSD change, until the Linux change
(review D3159) is successfully tested.

http://llvm.org/pr18894


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205315 91177308-0d34-0410-b5e6-96231b3b80d8
mips64: clean up register context storage

Store the gpr data in a DataBufferHeap and use a DataExtractor to
extract register values with appropriate endianness.  This avoids hard-
coding the register count, and with some further work would allow this
class to provide generic register context storage for any CPU.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205329 91177308-0d34-0410-b5e6-96231b3b80d8
Add mips64 to the list of 64-bit Host architectures



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205333 91177308-0d34-0410-b5e6-96231b3b80d8
Implement ProcessMonitor::Kill for Linux

On FreeBSD ptrace(PT_KILL) is used to terminate the traced process
(as if PT_CONTINUE had been used with SIGKILL as the signal to be
delivered), and is the desired behaviour for ProcessPOSIX::DoDestroy.

On Linux, after ptrace(PTRACE_KILL) the traced process still exists
and can be interrogated.  It is only upon resume that it exits as though
it received SIGKILL.

As the Linux PTRACE_KILL behaviour is not used by LLDB, rename
BringProcessIntoLimbo to Kill, and change the implementation to simply
call kill() instead of using ptrace.

Thanks to Todd F for testing (Ubuntu 12.04, gcc 4.8.2).

Sponsored by: DARPA, AFRL
Differential Revision: http://llvm-reviews.chandlerc.com/D3159


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205337 91177308-0d34-0410-b5e6-96231b3b80d8
Use libc++ on FreeBSD as on Darwin



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205345 91177308-0d34-0410-b5e6-96231b3b80d8
Revert "Include string.h for memset() prototype.  Thanks Dmitri."

This reverts commit ae72639d7251412358147174e5eb8a023547fa55 (r205115).
Revert "lldb arm64 import."

This reverts commit 7cea3674aefe6485bf5028e98a972414c5726b25 (r205113).