[Lldb-commits] [lldb] 354d105 - [lldb] Fix PushPlan to set subplan to private

Dave Lee via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 10 11:05:54 PST 2021


Author: Dave Lee
Date: 2021-03-10T11:05:33-08:00
New Revision: 354d10530d267838a08bf0a27b1bdf69fd99086e

URL: https://github.com/llvm/llvm-project/commit/354d10530d267838a08bf0a27b1bdf69fd99086e
DIFF: https://github.com/llvm/llvm-project/commit/354d10530d267838a08bf0a27b1bdf69fd99086e.diff

LOG: [lldb] Fix PushPlan to set subplan to private

Call `SetPrivate(true)` for subplans pushed via `PushPlan()`, as described in its
docstring.

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

Added: 
    

Modified: 
    lldb/include/lldb/Target/ThreadPlan.h

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Target/ThreadPlan.h b/lldb/include/lldb/Target/ThreadPlan.h
index 007e56d4babe..5e14a1fd6577 100644
--- a/lldb/include/lldb/Target/ThreadPlan.h
+++ b/lldb/include/lldb/Target/ThreadPlan.h
@@ -494,7 +494,7 @@ class ThreadPlan : public std::enable_shared_from_this<ThreadPlan>,
   // another thread plan is never either of the above.
   void PushPlan(lldb::ThreadPlanSP &thread_plan_sp) {
     GetThread().PushPlan(thread_plan_sp);
-    thread_plan_sp->SetPrivate(false);
+    thread_plan_sp->SetPrivate(true);
     thread_plan_sp->SetIsMasterPlan(false);
   }
 


        


More information about the lldb-commits mailing list