[Lldb-commits] [lldb] r265978 - Add a formatter for zero-sized NSData
Enrico Granata via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 11 11:46:26 PDT 2016
Author: enrico
Date: Mon Apr 11 13:46:26 2016
New Revision: 265978
URL: http://llvm.org/viewvc/llvm-project?rev=265978&view=rev
Log:
Add a formatter for zero-sized NSData
Modified:
lldb/trunk/source/Plugins/Language/ObjC/Cocoa.cpp
Modified: lldb/trunk/source/Plugins/Language/ObjC/Cocoa.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Language/ObjC/Cocoa.cpp?rev=265978&r1=265977&r2=265978&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Language/ObjC/Cocoa.cpp (original)
+++ lldb/trunk/source/Plugins/Language/ObjC/Cocoa.cpp Mon Apr 11 13:46:26 2016
@@ -833,6 +833,10 @@ lldb_private::formatters::NSDataSummaryP
if (error.Fail())
return false;
}
+ else if (!strcmp(class_name, "_NSZeroData"))
+ {
+ value = 0;
+ }
else
return false;
More information about the lldb-commits
mailing list