1 //===-- ThreadPlanBase.h ----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_ThreadPlanFundamental_h_
11 #define liblldb_ThreadPlanFundamental_h_
15 // Other libraries and framework includes
17 #include "lldb/Target/Process.h"
18 #include "lldb/Target/Thread.h"
19 #include "lldb/Target/ThreadPlan.h"
21 namespace lldb_private {
24 //------------------------------------------------------------------
26 // This is the generic version of the bottom most plan on the plan stack. It should
27 // be able to handle generic breakpoint hitting, and signals and exceptions.
28 //------------------------------------------------------------------
30 class ThreadPlanBase : public ThreadPlan
32 friend class Process; // RunThreadPlan manages "stopper" base plans.
34 virtual ~ThreadPlanBase ();
36 virtual void GetDescription (Stream *s, lldb::DescriptionLevel level);
37 virtual bool ValidatePlan (Stream *error);
38 virtual bool ShouldStop (Event *event_ptr);
39 virtual Vote ShouldReportStop (Event *event_ptr);
40 virtual bool StopOthers ();
41 virtual lldb::StateType GetPlanRunState ();
42 virtual bool WillStop ();
43 virtual bool MischiefManaged ();
45 virtual bool OkayToDiscard()
57 virtual bool DoWillResume (lldb::StateType resume_state, bool current_plan);
58 virtual bool DoPlanExplainsStop (Event *event_ptr);
59 ThreadPlanBase (Thread &thread);
62 friend lldb::ThreadPlanSP
63 Thread::QueueFundamentalPlan(bool abort_other_plans);
65 DISALLOW_COPY_AND_ASSIGN (ThreadPlanBase);
69 } // namespace lldb_private
71 #endif // liblldb_ThreadPlanFundamental_h_