[Lldb-commits] [lldb] r151300 - in /lldb/trunk/examples/summaries/cocoa: ./ CFArray.py CFBag.py CFBinaryHeap.py CFDictionary.py CFString.py NSBundle.py NSData.py NSException.py NSMachPort.py NSNotification.py NSNumber.py NSSet.py NSURL.py cache.py metrics.py objc_lldb.py objc_runtime.py

Enrico Granata egranata at apple.com
Thu Feb 23 15:39:33 PST 2012

As you know, LLDB can use Python scripts to provide summaries for datatypes which are then able to use the SBValue API to fetch required data instead of having to run code.
This commit (and the subsequent ones .. for some reason svn didn't like to submit the whole patch at once) provides a bunch of these Python formatters for NSString, NSArray, NSDictionary, ….
Plus, since it is necessary to interact with the ObjC runtime to get these to work, I have worked on wrapping several informational functions of the runtime in a Python class hierarchy. You can refer to the formatters themselves for hints, or just drop by my office :-)

Enrico Granata
✉ egranata@.com
✆ (four oh eight) 862-7683

On Feb 23, 2012, at 3:35 PM, Eric Christopher wrote:

> On Feb 23, 2012, at 3:10 PM, Enrico Granata <egranata at apple.com> wrote:
>> This patch provides a set of formatters for most of the commonly used Cocoa classes.
>> The formatter for NSString is an improved version of the one previously shipped as an example, the others are new in design and implementation.
>> A more robust and OO-compliant Objective-C runtime wrapper is provided for runtime versions 1 and 2 on 32 and 64 bit.
>> The formatters are contained in a category named "AppKit", which is not enabled at startup.
> Weird commit messages. Want to follow up to this and r151301 with what you actually meant? :)
> -eric

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20120223/d7da15da/attachment.html>

More information about the lldb-commits mailing list