ThreadPlanStepOverRange.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //===-- ThreadPlanStepOverRange.h -------------------------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLDB_TARGET_THREADPLANSTEPOVERRANGE_H
  9. #define LLDB_TARGET_THREADPLANSTEPOVERRANGE_H
  10. #include "lldb/Core/AddressRange.h"
  11. #include "lldb/Target/StackID.h"
  12. #include "lldb/Target/Thread.h"
  13. #include "lldb/Target/ThreadPlanStepRange.h"
  14. namespace lldb_private {
  15. class ThreadPlanStepOverRange : public ThreadPlanStepRange,
  16. ThreadPlanShouldStopHere {
  17. public:
  18. ThreadPlanStepOverRange(Thread &thread, const AddressRange &range,
  19. const SymbolContext &addr_context,
  20. lldb::RunMode stop_others,
  21. LazyBool step_out_avoids_no_debug);
  22. ~ThreadPlanStepOverRange() override;
  23. void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
  24. bool ShouldStop(Event *event_ptr) override;
  25. protected:
  26. bool DoPlanExplainsStop(Event *event_ptr) override;
  27. bool DoWillResume(lldb::StateType resume_state, bool current_plan) override;
  28. void SetFlagsToDefault() override {
  29. GetFlags().Set(ThreadPlanStepOverRange::s_default_flag_values);
  30. }
  31. private:
  32. static uint32_t s_default_flag_values;
  33. void SetupAvoidNoDebug(LazyBool step_out_avoids_code_without_debug_info);
  34. bool IsEquivalentContext(const SymbolContext &context);
  35. bool m_first_resume;
  36. ThreadPlanStepOverRange(const ThreadPlanStepOverRange &) = delete;
  37. const ThreadPlanStepOverRange &
  38. operator=(const ThreadPlanStepOverRange &) = delete;
  39. };
  40. } // namespace lldb_private
  41. #endif // LLDB_TARGET_THREADPLANSTEPOVERRANGE_H