summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/android/HostInfoAndroid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Host/android/HostInfoAndroid.cpp')
-rw-r--r--lldb/source/Host/android/HostInfoAndroid.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/source/Host/android/HostInfoAndroid.cpp b/lldb/source/Host/android/HostInfoAndroid.cpp
index f2911511afb..3dea01f8240 100644
--- a/lldb/source/Host/android/HostInfoAndroid.cpp
+++ b/lldb/source/Host/android/HostInfoAndroid.cpp
@@ -40,8 +40,11 @@ FileSpec HostInfoAndroid::ResolveLibraryPath(const std::string &module_path,
static const char *const default_lib64_path[] = {"/vendor/lib64",
"/system/lib64", nullptr};
- if (module_path.empty() || module_path[0] == '/')
- return FileSpec(module_path.c_str(), true);
+ if (module_path.empty() || module_path[0] == '/') {
+ FileSpec file_spec(module_path.c_str());
+ FileSystem::Instance().Resolve(file_spec);
+ return file_spec;
+ }
SmallVector<StringRef, 4> ld_paths;
OpenPOWER on IntegriCloud