summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2012-05-29 18:06:49 +0000
committerEnrico Granata <egranata@apple.com>2012-05-29 18:06:49 +0000
commitde4ca5b789513c6d672661cc2a726c046c0043c7 (patch)
tree3420b21e3ebaef335f8824791382a5df11422e42
parent8ac9c2239113383be89bbdb8f750418d969d48dc (diff)
downloadbcm5719-llvm-de4ca5b789513c6d672661cc2a726c046c0043c7.tar.gz
bcm5719-llvm-de4ca5b789513c6d672661cc2a726c046c0043c7.zip
rdar://problem/10996978 - Fixing an issue where crash reports for the expression parser might include symbols from the user's application
llvm-svn: 157631
-rw-r--r--lldb/source/API/SBFrame.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/API/SBFrame.cpp b/lldb/source/API/SBFrame.cpp
index b38fa3dceb4..01510741663 100644
--- a/lldb/source/API/SBFrame.cpp
+++ b/lldb/source/API/SBFrame.cpp
@@ -1055,12 +1055,12 @@ SBFrame::EvaluateExpression (const char *expr, lldb::DynamicValueType fetch_dyna
Process::StopLocker stop_locker;
if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock()))
{
+#ifdef LLDB_CONFIGURATION_DEBUG
StreamString frame_description;
frame->DumpUsingSettingsFormat (&frame_description);
-
Host::SetCrashDescriptionWithFormat ("SBFrame::EvaluateExpression (expr = \"%s\", fetch_dynamic_value = %u) %s",
expr, fetch_dynamic_value, frame_description.GetString().c_str());
-
+#endif
const bool coerce_to_id = false;
const bool keep_in_memory = false;
@@ -1073,7 +1073,9 @@ SBFrame::EvaluateExpression (const char *expr, lldb::DynamicValueType fetch_dyna
fetch_dynamic_value,
expr_value_sp);
expr_result.SetSP(expr_value_sp);
+#ifdef LLDB_CONFIGURATION_DEBUG
Host::SetCrashDescription (NULL);
+#endif
}
else
{
OpenPOWER on IntegriCloud