[Lldb-commits] [lldb] [lldb] Use range-based for loops over plugins (PR #184837)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 6 10:31:13 PST 2026
================
@@ -82,6 +82,46 @@ struct PluginNamespace {
SetPluginEnabled set_enabled;
};
+struct InstrumentationRuntimeCallbacks {
+ InstrumentationRuntimeCreateInstance create_callback;
+ InstrumentationRuntimeGetType get_type_callback;
+};
+
+struct LanguageRuntimeCallbacks {
+ LanguageRuntimeCreateInstance create_callback;
+ LanguageRuntimeGetCommandObject command_callback;
+ LanguageRuntimeGetExceptionPrecondition precondition_callback;
+};
+
+struct ObjectFileCallbacks {
+ ObjectFileCreateInstance create_callback;
+ ObjectFileCreateMemoryInstance create_memory_callback;
+ ObjectFileGetModuleSpecifications get_module_specifications;
+ ObjectFileSaveCore save_core;
+};
+
+struct ObjectContainerCallbacks {
+ ObjectContainerCreateInstance create_callback;
+ ObjectContainerCreateMemoryInstance create_memory_callback;
+ ObjectFileGetModuleSpecifications get_module_specifications;
+};
+
+struct StructuredDataPluginCallbacks {
+ StructuredDataPluginCreateInstance create_callback;
+ StructuredDataFilterLaunchInfo filter_callback; // may be null
----------------
JDevlieghere wrote:
Theoretically, any but the create callback. But the filter was explicitly called out a the call site:
```
// Note iteration can't simply go until a nullptr callback is returned, as it
// is valid for a plugin to not supply a filter.
```
https://github.com/llvm/llvm-project/pull/184837
More information about the lldb-commits
mailing list