ThreadPlanStepOverRange.h revision b2cf58a817f6c0d15b2077316810c17d9c8ac173
1//===-- ThreadPlanStepOverRange.h -------------------------------*- C++ -*-===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef liblldb_ThreadPlanStepOverRange_h_
11#define liblldb_ThreadPlanStepOverRange_h_
12
13// C Includes
14// C++ Includes
15// Other libraries and framework includes
16// Project includes
17#include "lldb/Core/AddressRange.h"
18#include "lldb/Target/StackID.h"
19#include "lldb/Target/Thread.h"
20#include "lldb/Target/ThreadPlanStepRange.h"
21
22namespace lldb_private {
23
24class ThreadPlanStepOverRange : public ThreadPlanStepRange
25{
26public:
27
28    ThreadPlanStepOverRange (Thread &thread,
29                             const AddressRange &range,
30                             const SymbolContext &addr_context,
31                             lldb::RunMode stop_others,
32                             bool okay_to_discard = false);
33
34    virtual ~ThreadPlanStepOverRange ();
35
36    virtual void GetDescription (Stream *s, lldb::DescriptionLevel level);
37    virtual bool ShouldStop (Event *event_ptr);
38    virtual bool
39    IsMasterPlan()
40    {
41        return true;
42    }
43
44protected:
45
46private:
47
48    friend ThreadPlan *
49    Thread::QueueThreadPlanForStepRange (bool abort_other_plans,
50                                         StepType type,
51                                         const AddressRange &range,
52                                         const SymbolContext &addr_context,
53                                         lldb::RunMode stop_others,
54                                         bool avoid_code_without_debug_info);
55
56    DISALLOW_COPY_AND_ASSIGN (ThreadPlanStepOverRange);
57
58};
59
60} // namespace lldb_private
61
62#endif  // liblldb_ThreadPlanStepOverRange_h_
63