summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2012-04-04 17:34:10 +0000
committerEnrico Granata <egranata@apple.com>2012-04-04 17:34:10 +0000
commitf18c03e49e1867db55c5f641e3b53f4521cb5db8 (patch)
treef6f78dfb95e9c8e7e0b00662f9a78d591940752e /lldb/source/Core
parent0249fba8c3281d6c991e58472045e8a9bbb91910 (diff)
downloadbcm5719-llvm-f18c03e49e1867db55c5f641e3b53f4521cb5db8.tar.gz
bcm5719-llvm-f18c03e49e1867db55c5f641e3b53f4521cb5db8.zip
Attempt at fixing a crasher where summary strings where looping endlessly.
llvm-svn: 154028
Diffstat (limited to 'lldb/source/Core')
-rw-r--r--lldb/source/Core/ValueObject.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index 9e27dc0b164..800ab06bb2d 100644
--- a/lldb/source/Core/ValueObject.cpp
+++ b/lldb/source/Core/ValueObject.cpp
@@ -671,6 +671,14 @@ ValueObject::GetSummaryAsCString (TypeSummaryImpl* summary_ptr,
return false;
m_is_getting_summary = true;
+
+ // this is a hot path in code and we prefer to avoid setting this string all too often also clearing out other
+ // information that we might care to see in a crash log. might be useful in very specific situations though.
+ /*Host::SetCrashDescriptionWithFormat("Trying to fetch a summary for %s %s. Summary provider's description is %s",
+ GetTypeName().GetCString(),
+ GetName().GetCString(),
+ summary_ptr->GetDescription().c_str());*/
+
if (UpdateValueIfNeeded (false))
{
if (summary_ptr)
@@ -3928,7 +3936,6 @@ ValueObject::ClearUserVisibleData(uint32_t clear_mask)
if ((clear_mask & eClearUserVisibleDataItemsSummary) == eClearUserVisibleDataItemsSummary)
{
- m_is_getting_summary = false;
m_summary_str.clear();
}
OpenPOWER on IntegriCloud