summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/ThreadPlanCallUserExpression.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-05-11 18:43:38 +0000
committerJim Ingham <jingham@apple.com>2012-05-11 18:43:38 +0000
commit923886ce2c7e4142e6335df3b236f58d13f9d967 (patch)
tree0632847ed82ee435a2052712710a2fa3bace960d /lldb/source/Target/ThreadPlanCallUserExpression.cpp
parent4ae4160974c7dbc082d9c81d0ddbd30996531318 (diff)
downloadbcm5719-llvm-923886ce2c7e4142e6335df3b236f58d13f9d967.tar.gz
bcm5719-llvm-923886ce2c7e4142e6335df3b236f58d13f9d967.zip
Don't try to use "OkayToDiscard" to mean BOTH this plan is a user plan or not AND unwind on error.
rdar://problem/11419156 llvm-svn: 156627
Diffstat (limited to 'lldb/source/Target/ThreadPlanCallUserExpression.cpp')
-rw-r--r--lldb/source/Target/ThreadPlanCallUserExpression.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Target/ThreadPlanCallUserExpression.cpp b/lldb/source/Target/ThreadPlanCallUserExpression.cpp
index b46d6b4704d..f739d2aef2c 100644
--- a/lldb/source/Target/ThreadPlanCallUserExpression.cpp
+++ b/lldb/source/Target/ThreadPlanCallUserExpression.cpp
@@ -47,6 +47,9 @@ ThreadPlanCallUserExpression::ThreadPlanCallUserExpression (Thread &thread,
ThreadPlanCallFunction (thread, function, ClangASTType(), arg, stop_other_threads, discard_on_error, this_arg, cmd_arg),
m_user_expression_sp (user_expression_sp)
{
+ // User expressions are generally "User generated" so we should set them up to stop when done.
+ SetIsMasterPlan (true);
+ SetOkayToDiscard(false);
}
ThreadPlanCallUserExpression::~ThreadPlanCallUserExpression ()
OpenPOWER on IntegriCloud