llvm-project/lldb
Pavel Labath fc89bbcc71 Unify PlatformPOSIX::ResolveExecutable
Summary:
various platforms very using nearly identical code for this method. As far as I
can tell there was nothing platform-specific about the differences, but rather
it looked like it was caused by tiny tweaks being made to individual copies
without affecting the overall functionality. I have taken the superset of all
these tweaks and put it into one method in the base class (incidentaly, nobody
was using the base class implementation of the method, as all classes were
overriding it). From the darwin class I took the slightly improved error
reporting (checking whether the file is readable) and the
ResolveExecutableInBundle call (which has no effect elsewhere as the function
is already a no-op on non-darwin platforms). From the linux class I took the
set-the-triple-vendor-to-host-if-unspecified tweak (present in PlatformKalimba
as well).

PlatformWindows has an identical copy as well. We could resolve that by pushing
this code further down into Platform class, that that would require pushing the
m_remote_platform_sp member as well, which seems like a bad design choice.

Reviewers: clayborg, emaste, krytarowski

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D29406

llvm-svn: 293910
2017-02-02 17:50:03 +00:00
..
cmake [CMake] Add explicit dependencies to plugins 2017-01-31 22:12:59 +00:00
docs Small tweaks to the markup in StructuredDataPlugins. 2016-12-13 05:59:24 +00:00
examples Improve crashlog.py so it can handle more iOS crashlog files. 2016-12-08 00:22:45 +00:00
include/lldb Break some dependencies in lldbUtility. 2017-02-01 19:45:14 +00:00
lit [CMake] Fix standalone build 2016-10-21 18:38:44 +00:00
lldb.xcodeproj Update xcodeproj to track ConvertEnum.cpp et al being removed. 2017-02-01 22:41:38 +00:00
lldb.xcworkspace Revert r275223, which committed the wrong thing. 2016-07-12 23:31:42 +00:00
packages/Python/lldbsuite Fix multi-process-driver.cpp build on NetBSD 2017-02-02 15:05:56 +00:00
resources Bump the lldb version # in the xcode project files from 2016-03-15 04:36:11 +00:00
scripts Add logging to SBThread::GetInfoItemByPathAsString to 2017-02-02 03:02:51 +00:00
source Unify PlatformPOSIX::ResolveExecutable 2017-02-02 17:50:03 +00:00
test [CMake] Only support LLDB_BUILD_FRAMEWORK on CMake 3.7 and later 2016-12-15 18:18:47 +00:00
third_party/Python/module *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
tools [cmake] Remove VERSION property from executable targets 2017-02-01 19:12:22 +00:00
unittests [CMake] Update unit tests with accurate dependencies 2017-02-01 22:17:00 +00:00
utils *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
www Fix weak symbol linkage in SBStructuredData, update docs. 2016-11-09 23:21:04 +00:00
.arcconfig Upgrade all the .arcconfigs to https. 2016-07-14 13:15:37 +00:00
.clang-format Updated .clang-format rules so bring LLDB in line with LLVM standards. 2016-09-06 17:19:00 +00:00
.gitignore test infra: clear file-charged issues on rerun of file 2016-10-01 00:17:08 +00:00
CMakeLists.txt [cmake] Make lldb build with the android ndk toolchain file 2017-01-17 11:55:00 +00:00
CODE_OWNERS.txt Removing myself from code ownership file 2016-12-12 22:42:00 +00:00
INSTALL.txt Revert the patch to Test Commit Access 2015-07-06 11:26:51 +00:00
LICENSE.TXT
use_lldb_suite_root.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00