[Lldb-commits] [lldb] [lldb] Use range-based for loops over plugins (PR #184837)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 6 10:24:58 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
----------------
bulbazord wrote:
The comment on this line is interesting. Which other callbacks are allowed to be null?
https://github.com/llvm/llvm-project/pull/184837
More information about the lldb-commits
mailing list