[Lldb-commits] [lldb] r256042 - Turns out, many people define structs named Point that do not share the same names that this formatter uses for fields; use the {} syntax to make it so that a failure to parse the summary doesn't cause the entire printout to fail
Enrico Granata via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 18 14:04:47 PST 2015
Author: enrico
Date: Fri Dec 18 16:04:47 2015
New Revision: 256042
URL: http://llvm.org/viewvc/llvm-project?rev=256042&view=rev
Log:
Turns out, many people define structs named Point that do not share the same names that this formatter uses for fields; use the {} syntax to make it so that a failure to parse the summary doesn't cause the entire printout to fail
Modified:
lldb/trunk/source/Plugins/Language/ObjC/ObjCLanguage.cpp
Modified: lldb/trunk/source/Plugins/Language/ObjC/ObjCLanguage.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Language/ObjC/ObjCLanguage.cpp?rev=256042&r1=256041&r2=256042&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Language/ObjC/ObjCLanguage.cpp (original)
+++ lldb/trunk/source/Plugins/Language/ObjC/ObjCLanguage.cpp Fri Dec 18 16:04:47 2015
@@ -415,7 +415,7 @@ LoadObjCFormatters(TypeCategoryImplSP ob
ConstString("Rect"),
objc_flags);
AddStringSummary(objc_category_sp,
- "(v=${var.v}, h=${var.h})",
+ "{(v=${var.v}, h=${var.h})}",
ConstString("Point"),
objc_flags);
AddStringSummary(objc_category_sp,
More information about the lldb-commits
mailing list