diff options
author | Enrico Granata <granata.enrico@gmail.com> | 2012-01-31 17:01:51 +0000 |
---|---|---|
committer | Enrico Granata <granata.enrico@gmail.com> | 2012-01-31 17:01:51 +0000 |
commit | bac45f610df116976a01ca7d84e4090e0537811b (patch) | |
tree | 9fd27370f9488c59135a5bc44f4c5d47e061d9fe /lldb/examples/summaries/objc.py | |
parent | 27a59958bdfc24d58f32d45d6e1df75a08ee87ce (diff) | |
download | bcm5719-llvm-bac45f610df116976a01ca7d84e4090e0537811b.tar.gz bcm5719-llvm-bac45f610df116976a01ca7d84e4090e0537811b.zip |
This commit provides a new default summary for Objective-C boolean variables, which shows YES or NO instead of the character value. A new category named objc is added to contain this summary provider. Any future Objective-C related formatters would probably fit here
llvm-svn: 149388
Diffstat (limited to 'lldb/examples/summaries/objc.py')
-rw-r--r-- | lldb/examples/summaries/objc.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/examples/summaries/objc.py b/lldb/examples/summaries/objc.py new file mode 100644 index 00000000000..33dc7d14bb8 --- /dev/null +++ b/lldb/examples/summaries/objc.py @@ -0,0 +1,9 @@ +# Summaries for common ObjC types that require Python scripting +# to be generated fit into this file + +def BOOL_SummaryProvider (valobj,dict): + if valobj.GetValueAsUnsigned() == 0: + return "NO" + else: + return "YES" + |