[Lldb-commits] [lldb] r170441 - /lldb/trunk/examples/summaries/cocoa/NSURL.py

Enrico Granata egranata at apple.com
Tue Dec 18 11:22:05 PST 2012

Author: enrico
Date: Tue Dec 18 13:22:05 2012
New Revision: 170441

URL: http://llvm.org/viewvc/llvm-project?rev=170441&view=rev
Tweaking a comment in the NSURL formatter for correctness - the code was doing the right thing, but the comment was highly misleading


Modified: lldb/trunk/examples/summaries/cocoa/NSURL.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/summaries/cocoa/NSURL.py?rev=170441&r1=170440&r2=170441&view=diff
--- lldb/trunk/examples/summaries/cocoa/NSURL.py (original)
+++ lldb/trunk/examples/summaries/cocoa/NSURL.py Tue Dec 18 13:22:05 2012
@@ -43,7 +43,10 @@
 	# one pointer is the ISA
 	# then there is one more pointer and 8 bytes of plain data
 	# (which are also present on a 32-bit system)
-	# plus another pointer, and then the real data
+	# then there is a pointer to an NSString which is the url text
+	# optionally, the next pointer is another NSURL which is the "base"
+	# of this one when doing NSURLs composition (incidentally, NSURLs can
+	# recurse the base+text mechanism to any desired depth)
 	def offset_text(self):
 		logger = lldb.formatters.Logger.Logger()
 		return 24 if self.sys_params.is_64_bit else 16

More information about the lldb-commits mailing list