Removed spurious lookup of the $__lldb_expr
selector when compiling an expression in an
Objective-C context.

<rdar://problem/15797390>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@200950 91177308-0d34-0410-b5e6-96231b3b80d8
Lock the JIT before using it.

<rdar://problem/15958296>


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

Provide a filter for libc++ std::atomic<T>
This just hides some implementation clutter and promotes the actual content to only child status



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@200984 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a bug where we will crash if we have a class "B" that is contained inside a class "A" in the DWARF where "A" is a forward declaration.

<rdar://problem/14673945>
<rdar://problem/15682781>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@200985 91177308-0d34-0410-b5e6-96231b3b80d8
When writing data back into a register, accept
values whose size differs from the register's
size.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@200991 91177308-0d34-0410-b5e6-96231b3b80d8
Add conditional breakpoints to our cheat sheet

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

When a user says

type formatter add ... unsigned int

he most probably means to deal with the "unsigned int" type. However, given how the LLDB command parser works, that command will try to add the formatter to the TWO types 'unsigned' AND 'int'

Since this is unlikely to be what the user wants, warn about it, and suggest they can use quotes to override the debugger's understanding



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@200996 91177308-0d34-0410-b5e6-96231b3b80d8
Now that the command interpreter runs in a separate thread in Xcode, we need to lock the target API lock instead of trying to lock it.

What was happening was:
1 - Xcode ran and stopped and was doing work on thread 2
2 - Users would type something in Xcode console on thread 1
3 - thread 3 would be running command interpreter thread and try to execute command but get "failed to get API lock" error for any command that wanted the target API lock (like "expression")

<rdar://problem/15775016>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@200997 91177308-0d34-0410-b5e6-96231b3b80d8
Modified ObjectFile::SetLoadAddress() to now be:

ObjectFile::SetLoadAddress (Target &target,
                            lldb::addr_t value,
                            bool value_is_offset);

Now "value" is a slide if "value_is_offset" is true, and "value" is an image base address otherwise. All previous usage of this API was using slides.

Updated the ObjectFileELF and ObjectFileMachO SetLoadAddress methods to do the right thing.

Also updated the ObjectFileMachO::SetLoadAddress() function to not load __LINKEDIT when it isn't needed and to only load sections that belong to the executable object file.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@201003 91177308-0d34-0410-b5e6-96231b3b80d8
Added a test case for variables in registers, with
clang -O1.

<rdar://problem/15767528>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@201005 91177308-0d34-0410-b5e6-96231b3b80d8
Only set EL_PROMPT_ESC when existing

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@201023 91177308-0d34-0410-b5e6-96231b3b80d8
Only set EL_PROMPT_ESC when existing - fix typo

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@201024 91177308-0d34-0410-b5e6-96231b3b80d8
Fix null dereference if address is NULL.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@201026 91177308-0d34-0410-b5e6-96231b3b80d8
hostname is guarantee to never be null in this branch.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@201027 91177308-0d34-0410-b5e6-96231b3b80d8
Host: unconstify editline paramters

Although the interface to el_push should be a constant parameter (as it is on
Darwin), certain Linux distributions currently ship a header which does not
provide proper const correctness.  This causes compilation failures on Linux.
Strip the constness on the parameter, which whilst incorrect, is mostly
harmless.  The parameter will not be changed by the interface and so it is
acceptable to do this.  When distributions have updated to a more correct
declaration, it would be nice to revert this change.

Addresses PR18784.

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

Made sure we pass along the file action paths for stdin/stdout/stderr to the XPC service.
[Reviewed by Greg Clayton]


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@201103 91177308-0d34-0410-b5e6-96231b3b80d8
Adjust the calls to __introspection_dispatch_thread_get_item_info to
use a system-wide unique thread ID instead of a pthread_t to identify
the thread we want debug info for.  Also, free some more memory regions
that needed to be freed.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@201117 91177308-0d34-0410-b5e6-96231b3b80d8
Change RNBRemote::HandlePacket_m() to store the packet on the heap
instead of on the stack.  Handles larger packet read requests better.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@201118 91177308-0d34-0410-b5e6-96231b3b80d8
Add decorator for llvm.org/pr18805 until root cause is identified


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@201153 91177308-0d34-0410-b5e6-96231b3b80d8
Don’t leak memory when reading memory and we do an early return for error conditions.

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