1254721Semaste//===-- ThreadPlanStepOverRange.h -------------------------------*- C++ -*-===// 2254721Semaste// 3353358Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4353358Sdim// See https://llvm.org/LICENSE.txt for license information. 5353358Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6254721Semaste// 7254721Semaste//===----------------------------------------------------------------------===// 8254721Semaste 9254721Semaste#ifndef liblldb_ThreadPlanStepOverRange_h_ 10254721Semaste#define liblldb_ThreadPlanStepOverRange_h_ 11254721Semaste 12254721Semaste#include "lldb/Core/AddressRange.h" 13254721Semaste#include "lldb/Target/StackID.h" 14254721Semaste#include "lldb/Target/Thread.h" 15254721Semaste#include "lldb/Target/ThreadPlanStepRange.h" 16254721Semaste 17254721Semastenamespace lldb_private { 18254721Semaste 19276479Sdimclass ThreadPlanStepOverRange : public ThreadPlanStepRange, 20314564Sdim ThreadPlanShouldStopHere { 21254721Semastepublic: 22314564Sdim ThreadPlanStepOverRange(Thread &thread, const AddressRange &range, 23314564Sdim const SymbolContext &addr_context, 24314564Sdim lldb::RunMode stop_others, 25314564Sdim LazyBool step_out_avoids_no_debug); 26254721Semaste 27314564Sdim ~ThreadPlanStepOverRange() override; 28314564Sdim 29314564Sdim void GetDescription(Stream *s, lldb::DescriptionLevel level) override; 30314564Sdim bool ShouldStop(Event *event_ptr) override; 31314564Sdim 32254721Semasteprotected: 33314564Sdim bool DoPlanExplainsStop(Event *event_ptr) override; 34314564Sdim bool DoWillResume(lldb::StateType resume_state, bool current_plan) override; 35296417Sdim 36314564Sdim void SetFlagsToDefault() override { 37314564Sdim GetFlags().Set(ThreadPlanStepOverRange::s_default_flag_values); 38314564Sdim } 39314564Sdim 40254721Semasteprivate: 41314564Sdim static uint32_t s_default_flag_values; 42258054Semaste 43314564Sdim void SetupAvoidNoDebug(LazyBool step_out_avoids_code_without_debug_info); 44314564Sdim bool IsEquivalentContext(const SymbolContext &context); 45254721Semaste 46314564Sdim bool m_first_resume; 47314564Sdim 48314564Sdim DISALLOW_COPY_AND_ASSIGN(ThreadPlanStepOverRange); 49254721Semaste}; 50254721Semaste 51254721Semaste} // namespace lldb_private 52254721Semaste 53296417Sdim#endif // liblldb_ThreadPlanStepOverRange_h_ 54