Call SBDebugger::Initialize/Terminate from within Create/Destroy.

The above change permits developers using the lldb C++ API to
code applications in a more logical manner.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219102 91177308-0d34-0410-b5e6-96231b3b80d8
Revert r219102 as it caused significant buildbot breakage



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219120 91177308-0d34-0410-b5e6-96231b3b80d8
Made TestCommandScript more robust against new
lines at arbitrary points.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219133 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a problem where LLDB was constructing a TypeImpl marking the dynamic type as the static type. Instead use the TypeImpl() constructor correctly

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219142 91177308-0d34-0410-b5e6-96231b3b80d8
Move ConnectionFileDescriptor to platform-specific Host directory.

As part of getting ConnectionFileDescriptor working on Windows,
there is going to be alot of platform specific work to be done.
As a result, the implementation is moving into Host.  This patch
performs the code move and fixes up call-sites appropriately.

Reviewed by: Greg Clayton
Differential Revision: http://reviews.llvm.org/D5548

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219143 91177308-0d34-0410-b5e6-96231b3b80d8
Make TimeValue support returning the time in milliseconds.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219144 91177308-0d34-0410-b5e6-96231b3b80d8
Create a ConnectionGenericFile class for Windows.

This is the first step in getting ConnectionFileDescriptor ported
to Windows. It implements a connection against a disk file for
windows. This supports connection strings of the form file://PATH
which are currently supported only on posix platforms in
ConnectionFileDescriptor.

Reviewed by: Greg Clayton
Differential Revision: http://reviews.llvm.org/D5608

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219145 91177308-0d34-0410-b5e6-96231b3b80d8
In some cases, the LLDB test suite will be run on a built framework with no sources coming along. In those cases, we want to skip the SB API test case. Add a marker for that, and apply it

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219146 91177308-0d34-0410-b5e6-96231b3b80d8
This test also relies on the SB API headers. Same logic

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219147 91177308-0d34-0410-b5e6-96231b3b80d8
And here's another test case that uses the SB API. Skip it too

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219148 91177308-0d34-0410-b5e6-96231b3b80d8
Update xcode project file to match zach's move of connetionfiledescriptor in r219143.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219151 91177308-0d34-0410-b5e6-96231b3b80d8
Add another address to check for the kernel's load addr in debug configs.
<rdar://problem/18560328> 


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219152 91177308-0d34-0410-b5e6-96231b3b80d8
Add "target.expr-parser-compiler-args" setting.

This setting contains the following:
A list containing all the arguments to be passed to the expression parser compiler.

This change also ensures quoted arguments are handled appropriately.

See http://reviews.llvm.org/D5472 for more details.

Change by Tong Shen.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219169 91177308-0d34-0410-b5e6-96231b3b80d8
Fix exception text to match function name


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219181 91177308-0d34-0410-b5e6-96231b3b80d8
Fix spurious output to command line when launching a process on Linux.

See http://reviews.llvm.org/D5632 for details.

Change by Shawn Best.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219213 91177308-0d34-0410-b5e6-96231b3b80d8
Improved the TreeItem delegate which simplifies making tree items:
- tree items can define any number of key/value pairs
- creating a tree you specify which columns you want to display and it will pick out the right key/value pairs from the new tree item dictionaries
- added new "tk-target" command to explore the target's images, sections, symbols, compile units and line tables.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219219 91177308-0d34-0410-b5e6-96231b3b80d8
Fix compile error on Windows.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219232 91177308-0d34-0410-b5e6-96231b3b80d8
This test case was incorrect, it was relying on the fact
that the function we were calling would continue to sleep
for the requested time even if it was interrupted.  That is
not true of std::this_thread::sleep_for, at least not on OS X.

Fix the test case so that if it wakes up early, it goes back
to sleep till the time is actually greater than the end point.

<rdar://problem/18523742>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219234 91177308-0d34-0410-b5e6-96231b3b80d8
The type category enable * was implemented assuming a previous disable * had happened. While that will most likely be true in practice, the consequences of this not being the case will be a crash. I fix the crash by doing two things: 1) don't let already-enabled categories be enabled anyway; 2) if a category were disabled but with a bogus last-enabled position - highly highly unlikely - just put it in the first empty slot. I am not so sure 2) is bulletproof perfect, but I also don't think 2) will practically ever happen

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219245 91177308-0d34-0410-b5e6-96231b3b80d8
When we detect a stack unwind loop, before we abort
the backtrace, try falling back to the architecture default
unwind plan and see if we can backtrace a little further.
<rdar://problem/18556719> 


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