aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandObject.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-07-20 16:50:59 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2020-07-20 16:55:17 -0700
commit2ba7ce401e760990abb938c57e48c9d77d1b50de (patch)
tree9c5a012c109a6b0358370ca7dde58a3d69bb23af /lldb/source/Interpreter/CommandObject.cpp
parentfc24d1eaddd8c0618e3ef3ab395029a0238d4568 (diff)
downloadllvm-2ba7ce401e760990abb938c57e48c9d77d1b50de.zip
llvm-2ba7ce401e760990abb938c57e48c9d77d1b50de.tar.gz
llvm-2ba7ce401e760990abb938c57e48c9d77d1b50de.tar.bz2
[lldb] Use weak_ptr to hold on to the underlying thread plan in SBThreadPlan
Use a weak pointer to hold on to the the underlying thread plan in SBThreadPlan. When the process continues, all the popped ThreadPlans get discarded, and you can’t reuse them, so you have to create them anew. Therefore the SBThreadPlan doesn’t need to keep the ThreadPlan alive. This fixes the cleanup error in TestThreadPlanCommands.py and TestStepScripted.py caused by the thread plans never being deleted. Differential revision: https://reviews.llvm.org/D84210
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
0 files changed, 0 insertions, 0 deletions