diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-07-20 16:50:59 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-07-20 16:55:17 -0700 |
commit | 2ba7ce401e760990abb938c57e48c9d77d1b50de (patch) | |
tree | 9c5a012c109a6b0358370ca7dde58a3d69bb23af /lldb/source/Interpreter/CommandObject.cpp | |
parent | fc24d1eaddd8c0618e3ef3ab395029a0238d4568 (diff) | |
download | llvm-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