Skip to content

Commit 5f87d6e

Browse files
authored
Merge pull request #8910 from apple/instrumention-runtime-activate
[LLDB] Don't cache module sp when Activate() fails. (llvm#95586)
2 parents de395d3 + 6f054de commit 5f87d6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Target/InstrumentationRuntime.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ void InstrumentationRuntime::ModulesDidLoad(
6060
if (CheckIfRuntimeIsValid(module_sp)) {
6161
SetRuntimeModuleSP(module_sp);
6262
Activate();
63+
if (!IsActive())
64+
SetRuntimeModuleSP({}); // Don't cache module if activation failed.
6365
return false; // Stop iterating, we're done.
6466
}
6567
}

0 commit comments

Comments
 (0)