diff options
author | Enrico Granata <egranata@apple.com> | 2012-02-23 23:10:03 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2012-02-23 23:10:03 +0000 |
commit | d3d444f81144d95501b2db82cf7f5f69385a8ab2 (patch) | |
tree | 1782091ecbc6673e640525248d8123ba376cb816 /lldb/scripts/Python/finish-swig-Python-LLDB.sh | |
parent | 8195ad7b87aac00125490c1968d8054dac83a599 (diff) | |
download | bcm5719-llvm-d3d444f81144d95501b2db82cf7f5f69385a8ab2.tar.gz bcm5719-llvm-d3d444f81144d95501b2db82cf7f5f69385a8ab2.zip |
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.
llvm-svn: 151299
Diffstat (limited to 'lldb/scripts/Python/finish-swig-Python-LLDB.sh')
-rwxr-xr-x | lldb/scripts/Python/finish-swig-Python-LLDB.sh | 241 |
1 files changed, 240 insertions, 1 deletions
diff --git a/lldb/scripts/Python/finish-swig-Python-LLDB.sh b/lldb/scripts/Python/finish-swig-Python-LLDB.sh index 690dbd0fb5d..5f5eb8b1778 100755 --- a/lldb/scripts/Python/finish-swig-Python-LLDB.sh +++ b/lldb/scripts/Python/finish-swig-Python-LLDB.sh @@ -185,7 +185,7 @@ else fi # Copy the ObjC formatters over to the framework Python directory -if [ -f "${SRC_ROOT}/examples/synthetic/objc.py" ] +if [ -f "${SRC_ROOT}/examples/summaries/objc.py" ] then if [ $Debug == 1 ] then @@ -199,6 +199,245 @@ else fi fi +# Copy the Cocoa formatters over to the framework Python directory +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/CFArray.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying CFArray.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/CFArray.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/CFArray.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/CFDictionary.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying CFDictionary.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/CFDictionary.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/CFDictionary.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/CFString.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying CFString.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/CFString.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/CFString.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSData.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying NSData.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/NSData.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSData.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSMachPort.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying NSMachPort.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/NSMachPort.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSMachPort.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSSet.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying NSSet.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/NSSet.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSSet.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSNotification.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying NSNotification.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/NSNotification.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSNotification.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSException.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying NSException.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/NSException.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSException.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/CFBag.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying CFBag.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/CFBag.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/CFBag.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/CFBinaryHeap.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying CFBinaryHeap.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/CFBinaryHeap.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/CFBinaryHeap.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSURL.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying NSURL.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/NSURL.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSURL.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSBundle.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying NSBundle.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/NSBundle.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSBundle.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSNumber.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying NSNumber.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/NSNumber.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSNumber.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/cache.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying cache.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/cache.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/cache.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/metrics.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying metrics.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/metrics.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/metrics.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/objc_lldb.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying objc_lldb.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/objc_lldb.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/objc_lldb.py" + fi +fi + +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/objc_runtime.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying objc_runtime.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/objc_runtime.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/objc_runtime.py" + fi +fi + fi exit 0 |