<rdar://problem/11730263>
authorGreg Clayton <gclayton@apple.com>
Thu, 28 Mar 2013 23:42:53 +0000 (23:42 +0000)
committerGreg Clayton <gclayton@apple.com>
Thu, 28 Mar 2013 23:42:53 +0000 (23:42 +0000)
commit3faf47c46225b0f56c14235550d363ae90f4f1c6
tree979adba317d03734d4d237552cfaf1cbc2bb7088
parenta486a11dcfaa9f31d78eb52929d8d33c56e9cf60
<rdar://problem/11730263>

PC relative loads are missing disassembly comments when disassembled in a live process.

This issue was because some sections, like __TEXT and __DATA in libobjc.A.dylib, were being moved when they were put into the dyld shared cache. This could also affect any other system that slides sections individually.

The solution is to keep track of wether the bytes we will disassemble are from an executable file (file address), or from a live process (load address). We now do the right thing based off of this input in all cases.

llvm-svn: 178315
lldb/include/lldb/Core/DataExtractor.h
lldb/include/lldb/Core/Disassembler.h
lldb/source/API/SBTarget.cpp
lldb/source/Core/DataExtractor.cpp
lldb/source/Core/Disassembler.cpp
lldb/source/Expression/IRExecutionUnit.cpp
lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.h
lldb/source/Target/ThreadPlanTracer.cpp