LLDB  mainline
ThreadPlanStepOverRange.h
Go to the documentation of this file.
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 
9 #ifndef LLDB_TARGET_THREADPLANSTEPOVERRANGE_H
10 #define LLDB_TARGET_THREADPLANSTEPOVERRANGE_H
11 
12 #include "lldb/Core/AddressRange.h"
13 #include "lldb/Target/StackID.h"
14 #include "lldb/Target/Thread.h"
16 
17 namespace lldb_private {
18 
21 public:
22  ThreadPlanStepOverRange(Thread &thread, const AddressRange &range,
23  const SymbolContext &addr_context,
24  lldb::RunMode stop_others,
25  LazyBool step_out_avoids_no_debug);
26 
27  ~ThreadPlanStepOverRange() override;
28 
29  void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
30  bool ShouldStop(Event *event_ptr) override;
31 
32 protected:
33  bool DoPlanExplainsStop(Event *event_ptr) override;
34  bool DoWillResume(lldb::StateType resume_state, bool current_plan) override;
35 
36  void SetFlagsToDefault() override {
38  }
39 
40 private:
42 
43  void SetupAvoidNoDebug(LazyBool step_out_avoids_code_without_debug_info);
44  bool IsEquivalentContext(const SymbolContext &context);
45 
47 
50  operator=(const ThreadPlanStepOverRange &) = delete;
51 };
52 
53 } // namespace lldb_private
54 
55 #endif // LLDB_TARGET_THREADPLANSTEPOVERRANGE_H
A class that represents a running process on the host machine.
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
Defines a symbol context baton that can be handed other debug core functions.
Definition: SymbolContext.h:33
bool ShouldStop(Event *event_ptr) override
void GetDescription(Stream *s, lldb::DescriptionLevel level) override
Print a description of this thread to the stream s.
const ThreadPlanStepOverRange & operator=(const ThreadPlanStepOverRange &)=delete
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
void SetupAvoidNoDebug(LazyBool step_out_avoids_code_without_debug_info)
ThreadPlanStepOverRange(Thread &thread, const AddressRange &range, const SymbolContext &addr_context, lldb::RunMode stop_others, LazyBool step_out_avoids_no_debug)
StateType
Process and Thread States.
bool DoPlanExplainsStop(Event *event_ptr) override
ValueType Set(ValueType mask)
Set one or more flags by logical OR'ing mask with the current flags.
Definition: Flags.h:73
bool IsEquivalentContext(const SymbolContext &context)
bool DoWillResume(lldb::StateType resume_state, bool current_plan) override
RunMode
Thread Run Modes.
A section + offset based address range class.
Definition: AddressRange.h:25