Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===-- ThreadPlanStepOverRange.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_THREADPLANSTEPOVERRANGE_H
0010 #define LLDB_TARGET_THREADPLANSTEPOVERRANGE_H
0011 
0012 #include "lldb/Core/AddressRange.h"
0013 #include "lldb/Target/StackID.h"
0014 #include "lldb/Target/Thread.h"
0015 #include "lldb/Target/ThreadPlanStepRange.h"
0016 #include "lldb/Target/TimeoutResumeAll.h"
0017 
0018 namespace lldb_private {
0019 
0020 class ThreadPlanStepOverRange : public ThreadPlanStepRange,
0021                                 ThreadPlanShouldStopHere,
0022                                 TimeoutResumeAll {
0023 public:
0024   ThreadPlanStepOverRange(Thread &thread, const AddressRange &range,
0025                           const SymbolContext &addr_context,
0026                           lldb::RunMode stop_others,
0027                           LazyBool step_out_avoids_no_debug);
0028 
0029   ~ThreadPlanStepOverRange() override;
0030 
0031   void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
0032   void SetStopOthers(bool new_value) override;
0033   bool ShouldStop(Event *event_ptr) override;
0034   void DidPush() override;
0035 
0036 protected:
0037   bool DoPlanExplainsStop(Event *event_ptr) override;
0038   bool DoWillResume(lldb::StateType resume_state, bool current_plan) override;
0039 
0040   void SetFlagsToDefault() override {
0041     GetFlags().Set(ThreadPlanStepOverRange::s_default_flag_values);
0042   }
0043 
0044 private:
0045   static uint32_t s_default_flag_values;
0046 
0047   void SetupAvoidNoDebug(LazyBool step_out_avoids_code_without_debug_info);
0048   bool IsEquivalentContext(const SymbolContext &context);
0049 
0050   bool m_first_resume;
0051   lldb::RunMode m_run_mode;
0052 
0053   ThreadPlanStepOverRange(const ThreadPlanStepOverRange &) = delete;
0054   const ThreadPlanStepOverRange &
0055   operator=(const ThreadPlanStepOverRange &) = delete;
0056 };
0057 
0058 } // namespace lldb_private
0059 
0060 #endif // LLDB_TARGET_THREADPLANSTEPOVERRANGE_H