[lldb] Rename QueueFundamentalPlan to QueueBasePlan (NFC)
authorDave Lee <davelee.com@gmail.com>
Tue, 2 Mar 2021 21:18:35 +0000 (13:18 -0800)
committerDave Lee <davelee.com@gmail.com>
Fri, 5 Mar 2021 05:46:49 +0000 (21:46 -0800)
Minor change for naming consistency.

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

lldb/include/lldb/Target/Thread.h
lldb/include/lldb/Target/ThreadPlanBase.h
lldb/source/Target/Thread.cpp
lldb/source/Target/ThreadPlanStack.cpp

index 916493c..0f6b574 100644 (file)
@@ -615,7 +615,7 @@ public:
   /// \return
   ///     A shared pointer to the newly queued thread plan, or nullptr if the
   ///     plan could not be queued.
-  virtual lldb::ThreadPlanSP QueueFundamentalPlan(bool abort_other_plans);
+  lldb::ThreadPlanSP QueueBasePlan(bool abort_other_plans);
 
   /// Queues the plan used to step one instruction from the current PC of \a
   /// thread.
index 48058a9..5c44b9f 100644 (file)
@@ -44,8 +44,7 @@ protected:
   ThreadPlanBase(Thread &thread);
 
 private:
-  friend lldb::ThreadPlanSP
-  Thread::QueueFundamentalPlan(bool abort_other_plans);
+  friend lldb::ThreadPlanSP Thread::QueueBasePlan(bool abort_other_plans);
 
   ThreadPlanBase(const ThreadPlanBase &) = delete;
   const ThreadPlanBase &operator=(const ThreadPlanBase &) = delete;
index e261cae..e5271cc 100644 (file)
@@ -1229,7 +1229,7 @@ Status Thread::UnwindInnermostExpression() {
   return error;
 }
 
-ThreadPlanSP Thread::QueueFundamentalPlan(bool abort_other_plans) {
+ThreadPlanSP Thread::QueueBasePlan(bool abort_other_plans) {
   ThreadPlanSP thread_plan_sp(new ThreadPlanBase(*this));
   QueueThreadPlan(thread_plan_sp, abort_other_plans);
   return thread_plan_sp;
index 5a4ca88..8ae5c94 100644 (file)
@@ -375,7 +375,7 @@ void ThreadPlanStackMap::Update(ThreadList &current_threads,
       lldb::tid_t cur_tid = thread->GetID();
       if (!Find(cur_tid)) {
         AddThread(*thread.get());
-        thread->QueueFundamentalPlan(true);
+        thread->QueueBasePlan(true);
       }
     }
   }