[Lldb-commits] [lldb] r117190 - /lldb/trunk/source/Core/ValueObject.cpp
Sean Callanan
scallanan at apple.com
Fri Oct 22 17:18:49 PDT 2010
Author: spyffe
Date: Fri Oct 22 19:18:49 2010
New Revision: 117190
URL: http://llvm.org/viewvc/llvm-project?rev=117190&view=rev
Log:
Fixed value objects so that they return an
informative message when they have no description.
Modified:
lldb/trunk/source/Core/ValueObject.cpp
Modified: lldb/trunk/source/Core/ValueObject.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObject.cpp?rev=117190&r1=117189&r2=117190&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObject.cpp (original)
+++ lldb/trunk/source/Core/ValueObject.cpp Fri Oct 22 19:18:49 2010
@@ -565,7 +565,11 @@
{
m_object_desc_str.append (s.GetData());
}
- return m_object_desc_str.c_str();
+
+ if (m_object_desc_str.empty())
+ return NULL;
+ else
+ return m_object_desc_str.c_str();
}
const char *
@@ -995,7 +999,7 @@
if (object_desc)
s.Printf(" %s\n", object_desc);
else
- s.Printf ("No description available.\n");
+ s.Printf (" [no Objective-C description available]\n");
return;
}
}
More information about the lldb-commits
mailing list