summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/android
diff options
context:
space:
mode:
authorOleksiy Vyalov <ovyalov@google.com>2015-02-26 02:50:14 +0000
committerOleksiy Vyalov <ovyalov@google.com>2015-02-26 02:50:14 +0000
commitfb9015ddaaa182a6aa4ecaa175be4d89b364cb53 (patch)
tree592f5453d3a7428e1822cfb3ea3aca95ce1c2ac3 /lldb/source/Host/android
parent555c9673fd8c2380bf47f41450ce932472496376 (diff)
downloadbcm5719-llvm-fb9015ddaaa182a6aa4ecaa175be4d89b364cb53.tar.gz
bcm5719-llvm-fb9015ddaaa182a6aa4ecaa175be4d89b364cb53.zip
Return a current executable's directory from HostInfoAndroid::ComputeSupportExeDirectory.
http://reviews.llvm.org/D7876 llvm-svn: 230604
Diffstat (limited to 'lldb/source/Host/android')
-rw-r--r--lldb/source/Host/android/HostInfoAndroid.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Host/android/HostInfoAndroid.cpp b/lldb/source/Host/android/HostInfoAndroid.cpp
index bc546e537b8..c5e91d71209 100644
--- a/lldb/source/Host/android/HostInfoAndroid.cpp
+++ b/lldb/source/Host/android/HostInfoAndroid.cpp
@@ -26,3 +26,10 @@ HostInfoAndroid::ComputeHostArchitectureSupport(ArchSpec &arch_32, ArchSpec &arc
arch_64.GetTriple().setEnvironment(llvm::Triple::Android);
}
}
+
+bool
+HostInfoAndroid::ComputeSupportExeDirectory(FileSpec &file_spec)
+{
+ file_spec.GetDirectory() = HostInfoLinux::GetProgramFileSpec().GetDirectory();
+ return (bool)file_spec.GetDirectory();
+}
OpenPOWER on IntegriCloud