[Lldb-commits] [lldb] [LLDB] Don't cache module sp when Activate() fails. (PR #95586)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 14 15:31:32 PDT 2024
================
@@ -60,6 +60,8 @@ void InstrumentationRuntime::ModulesDidLoad(
if (CheckIfRuntimeIsValid(module_sp)) {
SetRuntimeModuleSP(module_sp);
Activate();
+ if (IsActive())
+ SetRuntimeModuleSP({}); // Don't cache module if activation failed.
----------------
JDevlieghere wrote:
Should this be `if (!IsActive())`?
https://github.com/llvm/llvm-project/pull/95586
More information about the lldb-commits
mailing list