[lldb] Assert & fix missing calls to UnregisterPlugin (#185162)

Fix missing calls to UnregisterPlugin and add an assert in the
PluginManager that ensures all plugins have been unregistered by the
time the plugin manager is destroyed.
This commit is contained in:
Jonas Devlieghere authored and GitHub committed 2026-03-09 13:04:08 -07:00
1 parent 3e2069d128
commit c182ca3e3a
20 files changed
+41 -20

No files matched your search

@@ -301,6 +301,7 @@ void ScriptInterpreterPython::Initialize() {
void ScriptInterpreterPython::Terminate() {
ScriptInterpreterPythonInterfaces::Terminate();
PluginManager::UnregisterPlugin(ScriptInterpreterPythonImpl::CreateInstance);
}
ScriptInterpreterPythonImpl::Locker::Locker(