[lldb] Call ThreadPlan::DiscardPlan from Thread::DiscardPlan

Correct `Thread::DiscardPlan` to call `DiscardPlan` instead of `PopPlan`.

Differential Revision: https://reviews.llvm.org/D96655
This commit is contained in:
Dave Lee 2022-03-10 12:11:57 -08:00
parent 54d7fde46e
commit 47f652d695
1 changed files with 1 additions and 1 deletions
lldb/source/Target

View File

@ -1091,7 +1091,7 @@ void Thread::PopPlan() {
void Thread::DiscardPlan() {
Log *log = GetLog(LLDBLog::Step);
ThreadPlanSP discarded_plan_sp = GetPlans().PopPlan();
ThreadPlanSP discarded_plan_sp = GetPlans().DiscardPlan();
LLDB_LOGF(log, "Discarding plan: \"%s\", tid = 0x%4.4" PRIx64 ".",
discarded_plan_sp->GetName(),