1 //===-- ThreadPlanCallUserExpression.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_ThreadPlanCallUserExpression_h_
11 #define liblldb_ThreadPlanCallUserExpression_h_
15 // Other libraries and framework includes
17 #include "lldb/lldb-private.h"
18 #include "lldb/Expression/ClangUserExpression.h"
19 #include "lldb/Target/Thread.h"
20 #include "lldb/Target/ThreadPlan.h"
21 #include "lldb/Target/ThreadPlanCallFunction.h"
23 namespace lldb_private {
25 class ThreadPlanCallUserExpression : public ThreadPlanCallFunction
28 ThreadPlanCallUserExpression (Thread &thread,
31 bool stop_other_threads,
33 bool ignore_breakpoints,
34 lldb::addr_t *this_arg,
35 lldb::addr_t *cmd_arg,
36 ClangUserExpression::ClangUserExpressionSP &user_expression_sp);
39 ~ThreadPlanCallUserExpression ();
42 GetDescription (Stream *s, lldb::DescriptionLevel level);
47 ThreadPlanCallFunction::WillPop();
48 if (m_user_expression_sp)
49 m_user_expression_sp.reset();
52 virtual lldb::StopInfoSP
57 ClangUserExpression::ClangUserExpressionSP m_user_expression_sp; // This is currently just used to ensure the
58 // User expression the initiated this ThreadPlan
59 // lives as long as the thread plan does.
60 DISALLOW_COPY_AND_ASSIGN (ThreadPlanCallUserExpression);
63 } // namespace lldb_private
65 #endif // liblldb_ThreadPlanCallUserExpression_h_