From: Oleksiy Vyalov Date: Thu, 26 Feb 2015 02:50:14 +0000 (+0000) Subject: Return a current executable's directory from HostInfoAndroid::ComputeSupportExeDirectory. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb9015ddaaa182a6aa4ecaa175be4d89b364cb53;p=platform%2Fupstream%2Fllvm.git Return a current executable's directory from HostInfoAndroid::ComputeSupportExeDirectory. http://reviews.llvm.org/D7876 llvm-svn: 230604 --- diff --git a/lldb/include/lldb/Host/android/HostInfoAndroid.h b/lldb/include/lldb/Host/android/HostInfoAndroid.h index 3e75789..8b5942a 100644 --- a/lldb/include/lldb/Host/android/HostInfoAndroid.h +++ b/lldb/include/lldb/Host/android/HostInfoAndroid.h @@ -26,6 +26,7 @@ class HostInfoAndroid : public HostInfoLinux protected: static void ComputeHostArchitectureSupport(ArchSpec &arch_32, ArchSpec &arch_64); + static bool ComputeSupportExeDirectory(FileSpec &file_spec); }; } // end of namespace lldb_private diff --git a/lldb/source/Host/android/HostInfoAndroid.cpp b/lldb/source/Host/android/HostInfoAndroid.cpp index bc546e5..c5e91d7 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(); +}