diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-01-07 01:57:07 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-01-07 01:57:07 +0000 |
| commit | db59823068e572b005867a67e87d9a594a4c9210 (patch) | |
| tree | 05aede85bc9f2723d5501736561420a6b67bf508 /lldb/source/Core/Disassembler.cpp | |
| parent | 1c926b78feaae00409e5dd3aa672f55cb47c2bb3 (diff) | |
| download | bcm5719-llvm-db59823068e572b005867a67e87d9a594a4c9210.tar.gz bcm5719-llvm-db59823068e572b005867a67e87d9a594a4c9210.zip | |
Added the ability for Target::ReadMemory to prefer to read from the file
cache even when a valid process exists. Previously, Target::ReadMemory would
read from the process if there was a valid one and then fallback to the
object file cache.
llvm-svn: 122989
Diffstat (limited to 'lldb/source/Core/Disassembler.cpp')
| -rw-r--r-- | lldb/source/Core/Disassembler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Core/Disassembler.cpp b/lldb/source/Core/Disassembler.cpp index 65380493082..e6fe1b018a5 100644 --- a/lldb/source/Core/Disassembler.cpp +++ b/lldb/source/Core/Disassembler.cpp @@ -422,7 +422,8 @@ Disassembler::ParseInstructions DataBufferSP data_sp(heap_buffer); Error error; - const size_t bytes_read = target->ReadMemory (range.GetBaseAddress(), heap_buffer->GetBytes(), heap_buffer->GetByteSize(), error); + bool prefer_file_cache = true; + const size_t bytes_read = target->ReadMemory (range.GetBaseAddress(), prefer_file_cache, heap_buffer->GetBytes(), heap_buffer->GetByteSize(), error); if (bytes_read > 0) { |

