llvm-project/lldb/source
Pavel Labath 669e57ebd1 [lldb] Simplify specifying of platform supported architectures
The GetSupportedArchitectureAtIndex pattern forces the use of
complicated patterns in both the implementations of the function and in
the various callers.

This patch creates a new method (GetSupportedArchitectures), which
returns a list (vector) of architectures. The
GetSupportedArchitectureAtIndex is kept in order to enable incremental
rollout. Base Platform class contains implementations of both of these
methods, using the other method as the source of truth. Platforms
without infinite stacks should implement at least one of them.

This patch also ports Linux, FreeBSD and NetBSD platforms to the new
API. A new helper function (CreateArchList) is added to simplify the
common task of creating a list of ArchSpecs with the same OS but
different architectures.

Differential Revision: https://reviews.llvm.org/D113608
2021-11-16 11:43:48 +01:00
..
API [lldb][NFC] Inclusive Language: rename master plan to controlling plan 2021-11-11 15:04:44 -06:00
Breakpoint Add breakpoint resolving stats to each target. 2021-10-27 16:50:11 -07:00
Commands [lldb][NFC] Inclusive Language: rename master plan to controlling plan 2021-11-11 15:04:44 -06:00
Core [lldb][NFC] Delete commented out code in AddressRange 2021-11-11 15:42:27 -08:00
DataFormatters [lldb/Formatters] Remove space from vector type string summaries (NFCI) 2021-10-22 21:18:54 +02:00
Expression [lldb][NFC] Inclusive Language: rename master plan to controlling plan 2021-11-11 15:04:44 -06:00
Host [lldb] [Host/Terminal] Fix warnings with termios disabled 2021-10-29 09:58:09 +02:00
Initialization [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
Interpreter [lldb] make it easier to find LLDB's python 2021-11-10 10:33:34 -08:00
Plugins [lldb] Simplify specifying of platform supported architectures 2021-11-16 11:43:48 +01:00
Symbol [lldb] Add support for demangling D symbols 2021-11-11 11:11:21 +01:00
Target [lldb] Simplify specifying of platform supported architectures 2021-11-16 11:43:48 +01:00
Utility [lldb] Use is_style_posix() for path style checks 2021-11-05 21:50:45 +02:00
CMakeLists.txt [LLVM][CMake][NFC] Resolve FIXME: Rename LLVM_CMAKE_PATH to LLVM_CMAKE_DIR throughout the project 2021-09-16 18:29:57 +02:00
lldb.cpp [lldb] Reinstate support for LLDB_VERSION_STRING 2021-02-22 16:56:00 -08:00