Fixing a whole class of crashers and potential crashers related to data formatters eating up all the stack when an unknown class has to be summarized ; this should make the whole Objective-C summaries more stable
llvm-svn: 153712
diff --git a/lldb/examples/summaries/cocoa/NSDate.py b/lldb/examples/summaries/cocoa/NSDate.py
index 24dd336..e140285 100644
--- a/lldb/examples/summaries/cocoa/NSDate.py
+++ b/lldb/examples/summaries/cocoa/NSDate.py
@@ -186,7 +186,7 @@
statistics.metric_hit('code_notrun',valobj)
else:
wrapper = NSUnknownDate_SummaryProvider(valobj, class_data.sys_params)
- statistics.metric_hit('unknown_class',str(valobj) + " seen as " + name_string)
+ statistics.metric_hit('unknown_class',valobj.GetName() + " seen as " + name_string)
return wrapper;