Fixed the connect remote test.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@198961 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed the assertion test case.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@198962 91177308-0d34-0410-b5e6-96231b3b80d8
Revert to getting a random port and sending that down to debugserver for iOS. The sandboxing is not letting debugserver reverse connect back to lldb.

<rdar://problem/15789865>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@198963 91177308-0d34-0410-b5e6-96231b3b80d8
The actual indirect symbol is not the one at the address of the Trie entry marked with the EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER, it is given in the address in the “other” field in that entry.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@198967 91177308-0d34-0410-b5e6-96231b3b80d8
Make SymbolContexts iterable with the C++11 for (a : b) syntax using Sean’s AdaptedIterable.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@198968 91177308-0d34-0410-b5e6-96231b3b80d8
Fix CMake build of debugserver on Mac OS X.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@198970 91177308-0d34-0410-b5e6-96231b3b80d8
Get the breakpoint setting, and the Mac OS X DYLD trampolines and expression evaluator to handle Indirect
symbols correctly.  There were a couple of pieces to this.

1) When a breakpoint location finds itself pointing to an Indirect symbol, when the site for it is created
   it needs to resolve the symbol and actually set the site at its target.
2) Not all breakpoints want to do this (i.e. a straight address breakpoint should always set itself on the
   specified address, so somem machinery was needed to specify that.
3) I added some info to the break list output for indirect symbols so you could see what was happening. 
   Also I made it clear when we re-route through re-exported symbols.
4) I moved ResolveIndirectFunction from ProcessPosix to Process since it works the exact same way on Mac OS X
   and the other posix systems.  If we find a platform that doesn't do it this way, they can override the
   call in Process.
5) Fixed one bug in RunThreadPlan, if you were trying to run a thread plan after a "running" event had
   been broadcast, the event coalescing would cause you to miss the ThreadPlan running event.  So I added
   a way to override the coalescing.
6) Made DynamicLoaderMacOSXDYLD::GetStepThroughTrampolinePlan handle Indirect & Re-exported symbols.

<rdar://problem/15280639>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@198976 91177308-0d34-0410-b5e6-96231b3b80d8
Add the offset for cfa+offset log messages in the unwind channel, to aid in debugging.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@198977 91177308-0d34-0410-b5e6-96231b3b80d8
We are doing spurious name lookups when running expressions in objective C methods.

<rdar://problem/15797390>

This new test case will detect this and make sure we don't regress on global name lookups that search all DWARF for everything when we don't need to.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@198982 91177308-0d34-0410-b5e6-96231b3b80d8
Make sure to cleanup the "dwarf-lookups.txt" log file.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@198984 91177308-0d34-0410-b5e6-96231b3b80d8
Sometimes the trampoline refers directly to the indirect symbol.  Handle that too.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@198990 91177308-0d34-0410-b5e6-96231b3b80d8
Avoid LLDB crash upon DW_OP_deref* with empty stack
    
As done in other DW_OP_* cases, return an error if the stack is empty
rather than eventually crashing elsewhere.  Encountered on big-endian
MIPS, where LLVM bugs currently result in invalid .debug_loc data.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@199110 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed the Visual Studio Windows build

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@199111 91177308-0d34-0410-b5e6-96231b3b80d8
This is a macosx specific test case for stepping & setting breakpoints on indirect
and re-exported symbols.  I don't know if Linux has the latter, if it does, we could
probably make this a generic test.  Somebody who knows how to make these gadgets on 
Linux can maybe take a look...


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@199134 91177308-0d34-0410-b5e6-96231b3b80d8
Harden the Materializer logic against types that
don't know their bit alignment.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@199173 91177308-0d34-0410-b5e6-96231b3b80d8
Fix return type for Windows

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@199202 91177308-0d34-0410-b5e6-96231b3b80d8
Fix typeo on memory read command example.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@199228 91177308-0d34-0410-b5e6-96231b3b80d8
Remove a compilation warning in the test case main.c file.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@199243 91177308-0d34-0410-b5e6-96231b3b80d8
Change the name of the test class for this test (was copy/paste value...)


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@199251 91177308-0d34-0410-b5e6-96231b3b80d8
Add a little more logging to the StopInfoBreakpoint::PerformAction.


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