llvm-project/lldb/source/Plugins
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
..
ABI [lldb][NFC] Inclusive Language: Replace master with main 2021-11-01 12:25:41 -05:00
Architecture [lldb] Remove ConstString from ABI, Architecture and Disassembler plugin names 2021-10-22 10:29:19 +02:00
Disassembler [lldb] Remove ConstString from ABI, Architecture and Disassembler plugin names 2021-10-22 10:29:19 +02:00
DynamicLoader [lldb] Remove ConstString from Platform plugin names 2021-10-26 10:04:35 +02:00
ExpressionParser [lldb][NFC] Inclusive language: rename m_master in ASTImporterDelegate 2021-11-12 12:04:14 -06:00
Instruction Remove ConstString from DynamicLoader, JITLoader and Instruction plugin names 2021-10-25 10:32:35 +02:00
InstrumentationRuntime [lldb] Remove ConstString from SymbolVendor, Trace, TraceExporter, UnwindAssembly, MemoryHistory and InstrumentationRuntime plugin names 2021-10-29 12:08:57 +02:00
JITLoader Remove ConstString from DynamicLoader, JITLoader and Instruction plugin names 2021-10-25 10:32:35 +02:00
Language [formatters] Add a libstdcpp formatter for forward_list and refactor list formatter 2021-11-09 21:33:08 -08:00
LanguageRuntime [lldb] Improve 'lang objc tagged-pointer info' command 2021-11-05 13:19:00 -07:00
MemoryHistory [lldb] Remove ConstString from SymbolVendor, Trace, TraceExporter, UnwindAssembly, MemoryHistory and InstrumentationRuntime plugin names 2021-10-29 12:08:57 +02:00
ObjectContainer [lldb] Remove ConstString from GetPluginNameStatic of some plugins 2021-10-21 12:58:45 +02:00
ObjectFile [LLDB][Breakpad] Make lldb understand INLINE and INLINE_ORIGIN records in breakpad. 2021-11-10 11:20:32 -08:00
OperatingSystem [lldb] Remove ConstString from GetPluginNameStatic of some plugins 2021-10-21 12:58:45 +02:00
Platform [lldb] Simplify specifying of platform supported architectures 2021-11-16 11:43:48 +01:00
Process [lldb][NFC] Inclusive language: replace master/slave names for ptys 2021-11-12 10:54:18 -06:00
REPL [lldb] Remove ConstString from TypeSystem and REPL plugin names 2021-11-02 16:13:52 +01:00
ScriptInterpreter Revert "[lldb] Fix that the embedded Python REPL crashes if it receives SIGINT" 2021-11-13 18:18:24 +01:00
StructuredData [lldb] Remove ConstString from Process, ScriptInterpreter and StructuredData plugin names 2021-10-28 10:15:03 +02:00
SymbolFile [LLDB][NativePDB] Fix image lookup by address 2021-11-15 12:30:23 -08:00
SymbolVendor [lldb] Unbreak the macOS build after dfd499a61c 2021-11-02 09:47:44 +01:00
SystemRuntime Remove ConstString from Language, LanguageRuntime, SystemRuntime and SymbolFile plugin names 2021-10-27 08:25:44 +02:00
Trace [lldb] Remove ConstString from SymbolVendor, Trace, TraceExporter, UnwindAssembly, MemoryHistory and InstrumentationRuntime plugin names 2021-10-29 12:08:57 +02:00
TraceExporter [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
TypeSystem [lldb] Unwrap the type when dereferencing the value 2021-11-15 14:48:19 +01:00
UnwindAssembly [lldb] Remove ConstString from SymbolVendor, Trace, TraceExporter, UnwindAssembly, MemoryHistory and InstrumentationRuntime plugin names 2021-10-29 12:08:57 +02:00
CMakeLists.txt [lldb] Add a C language REPL to test LLDB's REPL infrastructure 2021-09-23 19:31:02 +02:00
Plugins.def.in Re-land "[lldb/CMake] Auto-generate the Initialize and Terminate calls for plugin" 2020-02-18 19:16:07 -08:00