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/Address.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/Address.cpp')
-rw-r--r-- | lldb/source/Core/Address.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Core/Address.cpp b/lldb/source/Core/Address.cpp index a038dd83edc..c87814fa1f6 100644 --- a/lldb/source/Core/Address.cpp +++ b/lldb/source/Core/Address.cpp @@ -68,7 +68,8 @@ ReadBytes (ExecutionContextScope *exe_scope, const Address &address, void *dst, if (target) { Error error; - return target->ReadMemory (address, dst, dst_len, error); + bool prefer_file_cache = false; + return target->ReadMemory (address, prefer_file_cache, dst, dst_len, error); } return 0; } |