Skip to content
Snippets Groups Projects
Commit 0126132e authored by Enrico Granata's avatar Enrico Granata
Browse files

Tweaking a comment in the NSURL formatter for correctness - the code was doing...

Tweaking a comment in the NSURL formatter for correctness - the code was doing the right thing, but the comment was highly misleading

llvm-svn: 170441
parent 76bd3d85
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,10 @@ class NSURLKnown_SummaryProvider:
# 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment