llvm-project/lldb
Jonas Devlieghere 4add853647 [lldb] Improve platform handling in CreateTargetInternal
Currently, `target create` has no --platform option. However,
TargetList::CreateTargetInternal which is called under the hood, will
return an error when either no platform or multiple matching platforms
are found, saying that a platform should be specified with --platform.

This patch adds the platform option, but that doesn't solve either of
these errors.

 - If more than one platform matches, specifying the platform isn't
   going to fix that. The current code will only look at the
   architecture instead. I've updated the error message to ask the user
   to specify an architecture.

 - If no architecture is found, specifying a new one via platform isn't
   going to change that either because we already try to find one that
   matches the given architecture.

Differential revision: https://reviews.llvm.org/D84809
2020-07-29 10:30:20 -07:00
..
bindings [lldb] Make sure we don't leak SBThreadPlan pointer (NFCI) 2020-07-20 16:58:06 -07:00
cmake [CMake] Move find_package(ZLIB) to LLVMConfig 2020-07-27 17:13:55 -07:00
docs Updated the list of supported platforms in LLDB to include Apple silicon. 2020-07-08 15:33:00 -07:00
examples Harmonize Python shebang 2020-07-16 21:53:45 +02:00
include/lldb Unify the return value of GetByteSize to an llvm::Optional<uint64_t> (NFC-ish) 2020-07-27 13:26:35 -07:00
packages/Python Add Debug Info Size to Symbol Status 2020-07-24 13:30:04 -07:00
resources
scripts Harmonize Python shebang 2020-07-16 21:53:45 +02:00
source [lldb] Improve platform handling in CreateTargetInternal 2020-07-29 10:30:20 -07:00
test [lldb] Improve platform handling in CreateTargetInternal 2020-07-29 10:30:20 -07:00
third_party/Python/module Harmonize Python shebang 2020-07-16 21:53:45 +02:00
tools Add Debug Info Size to Symbol Status 2020-07-24 13:30:04 -07:00
unittests [lldb/ArchSpec] Always match simulator environment in IsEqualTo 2020-07-27 17:33:37 -07:00
utils [lldb/Test] Fix missing yaml2obj in Xcode standalone build. 2020-07-10 21:34:56 -07:00
.clang-format
.clang-tidy [lldb] Add .clang-tidy with customization to disable readability-identifier-naming 2020-03-09 12:50:28 -07:00
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt [CMake] Bump CMake minimum version to 3.13.4 2020-07-22 14:25:07 -04:00
CODE_OWNERS.txt [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
LICENSE.TXT
use_lldb_suite_root.py