Author: Dave Lee
Date: 2022-03-10T13:58:08-08:00
New Revision: 47f652d69517336fb0f6fbdcd6bf4dc962ae5e65

URL: 
https://github.com/llvm/llvm-project/commit/47f652d69517336fb0f6fbdcd6bf4dc962ae5e65
DIFF: 
https://github.com/llvm/llvm-project/commit/47f652d69517336fb0f6fbdcd6bf4dc962ae5e65.diff

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

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

Differential Revision: https://reviews.llvm.org/D96655

Added: 
    

Modified: 
    lldb/source/Target/Thread.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp
index 228d1fb2ef289..332e03bedbf17 100644
--- a/lldb/source/Target/Thread.cpp
+++ b/lldb/source/Target/Thread.cpp
@@ -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(), 


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to