diff options
| author | Chaoren Lin <chaorenl@google.com> | 2015-02-10 18:30:34 +0000 |
|---|---|---|
| committer | Chaoren Lin <chaorenl@google.com> | 2015-02-10 18:30:34 +0000 |
| commit | c30c49c4203eceada3309bdbdbdc155dd7d36fce (patch) | |
| tree | e6426257cb4e32569f459ec4d5de63517482a58b /lldb/source/Host/linux | |
| parent | 03d30fc7bc55b8c93e2966c685e64b660470498f (diff) | |
| download | bcm5719-llvm-c30c49c4203eceada3309bdbdbdc155dd7d36fce.tar.gz bcm5719-llvm-c30c49c4203eceada3309bdbdbdc155dd7d36fce.zip | |
Failsafe directory for shared objects and support executables.
llvm-svn: 228716
Diffstat (limited to 'lldb/source/Host/linux')
| -rw-r--r-- | lldb/source/Host/linux/HostInfoLinux.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/source/Host/linux/HostInfoLinux.cpp b/lldb/source/Host/linux/HostInfoLinux.cpp index bca92ec9961..2085df43207 100644 --- a/lldb/source/Host/linux/HostInfoLinux.cpp +++ b/lldb/source/Host/linux/HostInfoLinux.cpp @@ -223,6 +223,15 @@ HostInfoLinux::GetProgramFileSpec() } bool +HostInfoLinux::ComputeSharedLibraryDirectory(FileSpec &file_spec) +{ + if (HostInfoPosix::ComputeSharedLibraryDirectory(file_spec)) + return true; + file_spec.GetDirectory() = GetProgramFileSpec().GetDirectory(); + return (bool)file_spec.GetDirectory(); +} + +bool HostInfoLinux::ComputeSystemPluginsDirectory(FileSpec &file_spec) { FileSpec temp_file("/usr/lib/lldb", true); |

