Fix ComputeSupportExeDirectory for Linux (merge with Android).
authorChaoren Lin <chaorenl@google.com>
Sat, 21 Mar 2015 03:59:29 +0000 (03:59 +0000)
committerChaoren Lin <chaorenl@google.com>
Sat, 21 Mar 2015 03:59:29 +0000 (03:59 +0000)
commit0a6ce26c387055e5d6803cab130195190103f6ce
tree213afe0b786d482ba3805900ccf74d2d2a29006e
parent83eb13c9672a457eff4a74590b02d86bdb36b594
Fix ComputeSupportExeDirectory for Linux (merge with Android).

Summary:
ComputeSupportExeDirectory relied on ComputeSharedLibraryDirectory which was
not always reliable. Using procfs seems to be the best way to deal with it on
Linux (since it's already done on Android, might as well merge it).

Reviewers: ovyalov

Reviewed By: ovyalov

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D8511

llvm-svn: 232883
lldb/include/lldb/Host/android/HostInfoAndroid.h
lldb/include/lldb/Host/linux/HostInfoLinux.h
lldb/source/Host/android/HostInfoAndroid.cpp
lldb/source/Host/linux/HostInfoLinux.cpp