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
diff --git a/lldb/source/Core/Address.cpp b/lldb/source/Core/Address.cpp
index a038dd8..c87814fa 100644
--- a/lldb/source/Core/Address.cpp
+++ b/lldb/source/Core/Address.cpp
@@ -68,7 +68,8 @@
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;
}