diff options
Diffstat (limited to 'examples/summaries/cocoa/Selector.py')
-rw-r--r-- | examples/summaries/cocoa/Selector.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/summaries/cocoa/Selector.py b/examples/summaries/cocoa/Selector.py new file mode 100644 index 000000000000..d0505204bf22 --- /dev/null +++ b/examples/summaries/cocoa/Selector.py @@ -0,0 +1,14 @@ +""" +LLDB AppKit formatters + +part of The LLVM Compiler Infrastructure +This file is distributed under the University of Illinois Open Source +License. See LICENSE.TXT for details. +""" +import lldb + +def SEL_Summary(valobj,dict): + return valobj.Cast(valobj.GetType().GetBasicType(lldb.eBasicTypeChar).GetPointerType()).GetSummary() + +def SELPointer_Summary(valobj,dict): + return valobj.CreateValueFromAddress('text',valobj.GetValueAsUnsigned(0),valobj.GetType().GetBasicType(lldb.eBasicTypeChar)).AddressOf().GetSummary() |