summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBFrame.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-05-11 23:47:32 +0000
committerJim Ingham <jingham@apple.com>2012-05-11 23:47:32 +0000
commit7ba6e991583603e0dbeb632a9086a9f9fbf5445c (patch)
tree600187733c0ecfc1bb7034a2d940c81a57be710e /lldb/source/API/SBFrame.cpp
parent87a170c1e60f0b0c109f4c94a96e4ba43ac160cb (diff)
downloadbcm5719-llvm-7ba6e991583603e0dbeb632a9086a9f9fbf5445c.tar.gz
bcm5719-llvm-7ba6e991583603e0dbeb632a9086a9f9fbf5445c.zip
Found one more place where the OkayToDiscard needs to be consulted.
Also changed the defaults for SBThread::Step* to not delete extant plans. Also added some test cases to test more complex stepping scenarios. llvm-svn: 156667
Diffstat (limited to 'lldb/source/API/SBFrame.cpp')
-rw-r--r--lldb/source/API/SBFrame.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/source/API/SBFrame.cpp b/lldb/source/API/SBFrame.cpp
index 27c07ef15d5..b38fa3dceb4 100644
--- a/lldb/source/API/SBFrame.cpp
+++ b/lldb/source/API/SBFrame.cpp
@@ -1028,6 +1028,12 @@ SBFrame::EvaluateExpression (const char *expr)
SBValue
SBFrame::EvaluateExpression (const char *expr, lldb::DynamicValueType fetch_dynamic_value)
{
+ return EvaluateExpression (expr, fetch_dynamic_value, true);
+}
+
+SBValue
+SBFrame::EvaluateExpression (const char *expr, lldb::DynamicValueType fetch_dynamic_value, bool unwind_on_error)
+{
LogSP log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
LogSP expr_log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
@@ -1056,7 +1062,6 @@ SBFrame::EvaluateExpression (const char *expr, lldb::DynamicValueType fetch_dyna
expr, fetch_dynamic_value, frame_description.GetString().c_str());
const bool coerce_to_id = false;
- const bool unwind_on_error = true;
const bool keep_in_memory = false;
exe_results = target->EvaluateExpression (expr,
OpenPOWER on IntegriCloud