Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:56

0001 //===-- ThreadPlanStepInstruction.h -----------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_TARGET_THREADPLANSTEPINSTRUCTION_H
0010 #define LLDB_TARGET_THREADPLANSTEPINSTRUCTION_H
0011 
0012 #include "lldb/Target/Thread.h"
0013 #include "lldb/Target/ThreadPlan.h"
0014 #include "lldb/lldb-private.h"
0015 
0016 namespace lldb_private {
0017 
0018 class ThreadPlanStepInstruction : public ThreadPlan {
0019 public:
0020   ThreadPlanStepInstruction(Thread &thread, bool step_over, bool stop_others,
0021                             Vote report_stop_vote, Vote report_run_vote);
0022 
0023   ~ThreadPlanStepInstruction() override;
0024 
0025   void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
0026   bool ValidatePlan(Stream *error) override;
0027   bool ShouldStop(Event *event_ptr) override;
0028   bool StopOthers() override;
0029   lldb::StateType GetPlanRunState() override;
0030   bool WillStop() override;
0031   bool MischiefManaged() override;
0032   bool IsPlanStale() override;
0033 
0034 protected:
0035   bool DoPlanExplainsStop(Event *event_ptr) override;
0036 
0037   void SetUpState();
0038 
0039 private:
0040   friend lldb::ThreadPlanSP Thread::QueueThreadPlanForStepSingleInstruction(
0041       bool step_over, bool abort_other_plans, bool stop_other_threads,
0042       Status &status);
0043 
0044   lldb::addr_t m_instruction_addr;
0045   bool m_stop_other_threads;
0046   bool m_step_over;
0047   // These two are used only for the step over case.
0048   bool m_start_has_symbol;
0049   StackID m_stack_id;
0050   StackID m_parent_frame_id;
0051 
0052   ThreadPlanStepInstruction(const ThreadPlanStepInstruction &) = delete;
0053   const ThreadPlanStepInstruction &
0054   operator=(const ThreadPlanStepInstruction &) = delete;
0055 };
0056 
0057 } // namespace lldb_private
0058 
0059 #endif // LLDB_TARGET_THREADPLANSTEPINSTRUCTION_H