[Lldb-commits] [lldb] r152358 - /lldb/trunk/examples/summaries/cocoa/NSNotification.py

Enrico Granata egranata at apple.com
Thu Mar 8 16:45:19 PST 2012


Author: enrico
Date: Thu Mar  8 18:45:19 2012
New Revision: 152358

URL: http://llvm.org/viewvc/llvm-project?rev=152358&view=rev
Log:
the formatter for NSNotification was not being initialized correctly

Modified:
    lldb/trunk/examples/summaries/cocoa/NSNotification.py

Modified: lldb/trunk/examples/summaries/cocoa/NSNotification.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/summaries/cocoa/NSNotification.py?rev=152358&r1=152357&r2=152358&view=diff
==============================================================================
--- lldb/trunk/examples/summaries/cocoa/NSNotification.py (original)
+++ lldb/trunk/examples/summaries/cocoa/NSNotification.py Thu Mar  8 18:45:19 2012
@@ -16,6 +16,7 @@
 
 	def __init__(self, valobj, params):
 		self.valobj = valobj;
+		self.sys_params = params
 		if not (self.sys_params.types_cache.id):
 			self.sys_params.types_cache.id = self.valobj.GetType().GetBasicType(lldb.eBasicTypeObjCID)
 		self.update();
@@ -26,7 +27,7 @@
 	# skip the ISA and go to the name pointer
 	def offset(self):
 		return self.sys_params.pointer_size
-\
+
 	def name(self):
 		string_ptr = self.valobj.CreateChildAtOffset("name",
 							self.offset(),
@@ -74,10 +75,10 @@
 	
 	name_string = class_data.class_name()
 	if name_string == 'NSConcreteNotification':
-		wrapper = NSConcreteNotification_SummaryProvider(valobj)
+		wrapper = NSConcreteNotification_SummaryProvider(valobj, class_data.sys_params)
 		statistics.metric_hit('code_notrun',valobj)
 	else:
-		wrapper = NSNotificationUnknown_SummaryProvider(valobj)
+		wrapper = NSNotificationUnknown_SummaryProvider(valobj, class_data.sys_params)
 		statistics.metric_hit('unknown_class',str(valobj) + " seen as " + name_string)
 	return wrapper;
 





More information about the lldb-commits mailing list