aboutsummaryrefslogtreecommitdiff
path: root/include/lldb/Target/ThreadPlanCallUserExpression.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lldb/Target/ThreadPlanCallUserExpression.h')
-rw-r--r--include/lldb/Target/ThreadPlanCallUserExpression.h79
1 files changed, 35 insertions, 44 deletions
diff --git a/include/lldb/Target/ThreadPlanCallUserExpression.h b/include/lldb/Target/ThreadPlanCallUserExpression.h
index bb261d9c96b4..f1425b2f97e1 100644
--- a/include/lldb/Target/ThreadPlanCallUserExpression.h
+++ b/include/lldb/Target/ThreadPlanCallUserExpression.h
@@ -1,4 +1,5 @@
-//===-- ThreadPlanCallUserExpression.h --------------------------------*- C++ -*-===//
+//===-- ThreadPlanCallUserExpression.h --------------------------------*- C++
+//-*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -14,60 +15,50 @@
// C++ Includes
// Other libraries and framework includes
// Project includes
-#include "lldb/lldb-private.h"
#include "lldb/Target/Thread.h"
#include "lldb/Target/ThreadPlan.h"
#include "lldb/Target/ThreadPlanCallFunction.h"
+#include "lldb/lldb-private.h"
#include "llvm/ADT/ArrayRef.h"
namespace lldb_private {
-class ThreadPlanCallUserExpression : public ThreadPlanCallFunction
-{
+class ThreadPlanCallUserExpression : public ThreadPlanCallFunction {
public:
- ThreadPlanCallUserExpression (Thread &thread,
- Address &function,
- llvm::ArrayRef<lldb::addr_t> args,
- const EvaluateExpressionOptions &options,
- lldb::UserExpressionSP &user_expression_sp);
-
- ~ThreadPlanCallUserExpression() override;
-
- void
- GetDescription(Stream *s, lldb::DescriptionLevel level) override;
-
- void
- WillPop() override;
-
- lldb::StopInfoSP
- GetRealStopInfo() override;
-
- bool
- MischiefManaged() override;
-
- void
- TransferExpressionOwnership ()
- {
- m_manage_materialization = true;
- }
-
- lldb::ExpressionVariableSP
- GetExpressionVariable() override
- {
- return m_result_var_sp;
- }
-
+ ThreadPlanCallUserExpression(Thread &thread, Address &function,
+ llvm::ArrayRef<lldb::addr_t> args,
+ const EvaluateExpressionOptions &options,
+ lldb::UserExpressionSP &user_expression_sp);
+
+ ~ThreadPlanCallUserExpression() override;
+
+ void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
+
+ void WillPop() override;
+
+ lldb::StopInfoSP GetRealStopInfo() override;
+
+ bool MischiefManaged() override;
+
+ void TransferExpressionOwnership() { m_manage_materialization = true; }
+
+ lldb::ExpressionVariableSP GetExpressionVariable() override {
+ return m_result_var_sp;
+ }
+
protected:
private:
- lldb::UserExpressionSP m_user_expression_sp; // This is currently just used to ensure the
- // User expression the initiated this ThreadPlan
- // lives as long as the thread plan does.
- bool m_manage_materialization = false;
- lldb::ExpressionVariableSP m_result_var_sp; // If we are left to manage the materialization,
- // then stuff the result expression variable here.
-
- DISALLOW_COPY_AND_ASSIGN (ThreadPlanCallUserExpression);
+ lldb::UserExpressionSP
+ m_user_expression_sp; // This is currently just used to ensure the
+ // User expression the initiated this ThreadPlan
+ // lives as long as the thread plan does.
+ bool m_manage_materialization = false;
+ lldb::ExpressionVariableSP
+ m_result_var_sp; // If we are left to manage the materialization,
+ // then stuff the result expression variable here.
+
+ DISALLOW_COPY_AND_ASSIGN(ThreadPlanCallUserExpression);
};
} // namespace lldb_private