summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/UnwindAssembly/InstEmulation
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2013-09-12 23:23:35 +0000
committerJason Molenda <jmolenda@apple.com>2013-09-12 23:23:35 +0000
commit6b3e6d54871f02cdaca323a80051f2d744b39b76 (patch)
treef4eaf6aa66fd66b3e977f654b25e845cd7e4aced /lldb/source/Plugins/UnwindAssembly/InstEmulation
parenta5ebe426a5a6202240e95a5b478b5163761310a7 (diff)
downloadbcm5719-llvm-6b3e6d54871f02cdaca323a80051f2d744b39b76.tar.gz
bcm5719-llvm-6b3e6d54871f02cdaca323a80051f2d744b39b76.zip
Disassembler::DisassembleRange() currently calls Target::ReadMemory
with prefer_file_cache == false. This is what we want to do when the user is doing a disassemble command -- show the actual memory contents in case the memory has been corrupted or something -- but when we're profiling functions for stepping or unwinding (ThreadPlanStepRange::GetInstructionsForAddress, UnwindAssemblyInstEmulation::GetNonCallSiteUnwindP) we can read __TEXT instructions directly out of the file, if it exists. <rdar://problem/14397491> llvm-svn: 190638
Diffstat (limited to 'lldb/source/Plugins/UnwindAssembly/InstEmulation')
-rw-r--r--lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp b/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp
index c93dea9b5d3..8ddc1cd2ee8 100644
--- a/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp
+++ b/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp
@@ -53,11 +53,13 @@ UnwindAssemblyInstEmulation::GetNonCallSiteUnwindPlanFromAssembly (AddressRange&
ExecutionContext exe_ctx;
thread.CalculateExecutionContext(exe_ctx);
+ const bool prefer_file_cache = true;
DisassemblerSP disasm_sp (Disassembler::DisassembleRange (m_arch,
NULL,
NULL,
exe_ctx,
- range));
+ range,
+ prefer_file_cache));
Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_UNWIND));
OpenPOWER on IntegriCloud