summaryrefslogtreecommitdiffstats
path: root/lldb/examples/summaries/cocoa
Commit message (Collapse)AuthorAgeFilesLines
...
* added a new formatter for CF(Mutable)BitVectorEnrico Granata2012-03-032-0/+166
| | | | | | | | fixed a few potential NULL-pointer derefs in ValueObject we have a way to provide docstrings for properties we add to the SWIG layer - a few of these properties have a docstring already, more will come in future commits added a new bunch of properties to SBData to make it more natural and Python-like to access the data they contain llvm-svn: 151962
* Removing a spurious print statement leftover from debugging the formatter codeEnrico Granata2012-03-021-1/+0
| | | | llvm-svn: 151928
* (a) adding formatters for:Enrico Granata2012-03-022-1/+51
| | | | | | | | NSTimeZone and CFTimeZonRef SEL and related types CFGregorianDate llvm-svn: 151866
* this fixes unicode strings handling in 32-bit mode on LionEnrico Granata2012-03-011-12/+2
| | | | llvm-svn: 151831
* (a) adding an introspection formatter for NS(Mutable)IndexSetEnrico Granata2012-03-015-10/+233
| | | | | | | | | (b) fixes and improvements to the formatters for NSDate and NSString (c) adding an introspection formatter for NSCountedSet (d) making the Objective-C formatters test cases pass on both 64 and 32 bit one of the test cases is marked as expected failure on i386 - support needs to be added to the LLDB core for it to pass llvm-svn: 151826
* 1) solving a bug where, after Jim's fixes to stack frames, synthetic ↵Enrico Granata2012-03-011-9/+20
| | | | | | | | | | | | | | | | | children were not recalculated when necessary, causing them to get out of sync with live data 2) providing an updated list of tagged pointers values for the objc_runtime module - hopefully this one is final 3) changing ValueObject::DumpValueObject to use an Options class instead of providing a bulky list of parameters to pass around this change had been laid out previously, but some clients of DumpValueObject() were still using the old prototype and some arguments were treated in a special way and passed in directly instead of through the Options class 4) providing new GetSummaryAsCString() and GetValueAsCString() calls in ValueObject that are passed a formatter object and a destination string and fill the string by formatting themselves using the formatter argument instead of the default for the current ValueObject 5) removing the option to have formats and summaries stick to a variable for the current stoppoint after some debate, we are going with non-sticky: if you say frame variable --format hex foo, the hex format will only be applied to the current command execution and not stick when redisplaying foo the other option would be full stickiness, which means that foo would be formatted as hex for its whole lifetime we are open to suggestions on what feels "natural" in this regard llvm-svn: 151801
* Fixing a problem with v1 runtime - plus hopefully finalizing the code to ↵Enrico Granata2012-02-291-12/+13
| | | | | | check for tagged pointers llvm-svn: 151753
* This commit:Enrico Granata2012-02-2916-184/+350
| | | | | | | | | | | | | a) adds a Python summary provider for NSDate b) changes the initialization for ScriptInterpreter so that we are not passing a bulk of Python-specific function pointers around c) provides a new ScriptInterpreterObject class that allows for ref-count safe wrapping of scripting objects on the C++ side d) contains much needed performance improvements: 1) the pointer to the Python function generating a scripted summary is now cached instead of looked up every time 2) redundant memory reads in the Python ObjC runtime wrapper are eliminated 3) summaries now use the m_summary_str in ValueObject to store their data instead of passing around ( == copying) an std::string object e) contains other minor fixes, such as adding descriptive error messages for some cases of summary generation failure llvm-svn: 151703
* Fixing an if condition which was causing issues in detecting the correct ↵Enrico Granata2012-02-241-1/+1
| | | | | | runtime version llvm-svn: 151388
* fixing a syntax error with objc_runtime.pyEnrico Granata2012-02-231-3/+45
| | | | llvm-svn: 151304
* This patch provides a set of formatters for most of the commonly used Cocoa ↵Enrico Granata2012-02-2317-0/+2928
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. llvm-svn: 151300
OpenPOWER on IntegriCloud