diff options
author | Enrico Granata <egranata@apple.com> | 2012-12-18 19:22:05 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2012-12-18 19:22:05 +0000 |
commit | 0126132e2f309a03104e8384586f407160446452 (patch) | |
tree | e9a391cb15193c65f0a3df36fd6de29c7a0d1847 /lldb/examples | |
parent | 76bd3d8599a802f6c87833c946e0214d9cb13a07 (diff) | |
download | bcm5719-llvm-0126132e2f309a03104e8384586f407160446452.tar.gz bcm5719-llvm-0126132e2f309a03104e8384586f407160446452.zip |
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
Diffstat (limited to 'lldb/examples')
-rw-r--r-- | lldb/examples/summaries/cocoa/NSURL.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/examples/summaries/cocoa/NSURL.py b/lldb/examples/summaries/cocoa/NSURL.py index 29f81a840ad..ac47be365e5 100644 --- a/lldb/examples/summaries/cocoa/NSURL.py +++ b/lldb/examples/summaries/cocoa/NSURL.py @@ -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 |