lldb TOT is dropping the last entry for multi-line IOHandlers that use the IOHandlerDelegateMultiline.

<rdar://problem/16844164>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208336 91177308-0d34-0410-b5e6-96231b3b80d8
Set the current line to invalid when done getting multiple lines.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208338 91177308-0d34-0410-b5e6-96231b3b80d8
Revert bad checkin that use incorrect member field.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208339 91177308-0d34-0410-b5e6-96231b3b80d8
"process kill" and "process detach" were causing double prompts or prompts that would overwrite each other. Fixed now.

<rdar://problem/16547729>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208369 91177308-0d34-0410-b5e6-96231b3b80d8
Args::StringToGenericRegister will now accept "lr" as 
another way to indicate that this register is a generic
Return Address register (in addition to "ra") - this is
used primarily by OperatingSystem plugins.

Correctly annotate the UnwindPlan created by EmulateInstructionARM64
to indicate that it was not sourced from a compiler and it
is valid at every instruction.
<rdar://problem/16639754> 


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208390 91177308-0d34-0410-b5e6-96231b3b80d8
Documented our "attach" extension packets.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208423 91177308-0d34-0410-b5e6-96231b3b80d8
python: silence macro redefinition warnings

Python defines _XOPEN_SOURCE and _POSIX_C_SOURCE unconditionally.  On Linux,
this is problematic as glibc's features.h defines these values if _GNU_SOURCE is
defined to the value that is currently implemented.  Python defines it to the
versions that it requires, which may be different.  Undefine the macros on Linux
(technically, this should be safe to do globally) before including the python
headers.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208520 91177308-0d34-0410-b5e6-96231b3b80d8
Fix broken TestMultithreaded on Linux.

The clean line is failing under Ubuntu 12.04/gcc.  It cleans fine
without it on MacOSX.  It doesn't clean right on Linux but at least
now it doesn't fail the test.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208713 91177308-0d34-0410-b5e6-96231b3b80d8
Add a new SBThread::SafeToCallFunctions API; this calls over to
the SystemRuntime to check if a thread will have any problems 
performing an inferior function call so the driver can skip
making that function call on that thread.  Often the function
call can be executed on another thread instead.
<rdar://problem/16777874> 


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208732 91177308-0d34-0410-b5e6-96231b3b80d8
Fix the quoting in my x packet documentation so it's
consistent with the rest of the entries.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208736 91177308-0d34-0410-b5e6-96231b3b80d8
lldb: gdb remote support always falls back to $qC when no $qProcessInfo.

See thread here:
http://lists.cs.uiuc.edu/pipermail/lldb-dev/2014-May/003992.html

This is meant to address case 3 that I recently broke with an earlier
change to rectify usage of the $qC message for thread ids, specifically:

3. TOT lldb <=> gdbserver (without $qProcessInfo support and not Apple/iOS).



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208741 91177308-0d34-0410-b5e6-96231b3b80d8
Don't assert and crash when sections are malformed.

<rdar://problem/16833247>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208749 91177308-0d34-0410-b5e6-96231b3b80d8
Added debugserver/llgs test for command-line --attach {pid} variant.

Checks that the pid reported by $qProcessInfo matches the pid that was
launched as the attach test subject.

test exe now supports "sleep:{sleep_seconds}" command line argument.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208782 91177308-0d34-0410-b5e6-96231b3b80d8
Replace SIZE_T_MAX with std::numeric_limits value in Section.cpp.

SIZE_T_MAX is not available on Linux.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208789 91177308-0d34-0410-b5e6-96231b3b80d8
Fix up TestLldbGdbServer C++ test slug exe.

Missing header for Linux, replaces with iostreams.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208794 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed SectionLoadHistory::GetSectionLoadListForStopID() to always return a valid "SectionLoadList *". 

<rdar://problem/15818525>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208796 91177308-0d34-0410-b5e6-96231b3b80d8
Added gdbremote tests to verify kill and continue after attach.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208804 91177308-0d34-0410-b5e6-96231b3b80d8
Initial commit of LLDB Machine Interface Frontend.

- Tested with Eclipse, likely to work with other GDB/MI compatible GUIs.
- Some but not all MI commands have been implemented. See MIReadme.txt for more info.
- Written from scratch, no GPL code, based on LLDB Public API.
- Built for Linux, Windows and OSX. Tested on Linux and Windows.
- GDB/MI Command Reference, https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI.html



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208972 91177308-0d34-0410-b5e6-96231b3b80d8
Do not require the triple to be hard-coded

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208982 91177308-0d34-0410-b5e6-96231b3b80d8
Fix from: Scott Knight(knightsc@gmail.com):

Use a map rather than a vector to store the objects managed by the shared 
cluster since mostly want this for random lookup, so the map is much faster.


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