summaryrefslogtreecommitdiff
path: root/examples/summaries/cocoa/Selector.py
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-01-06 20:12:03 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-01-06 20:12:03 +0000
commit9e6d35490a6542f9c97607f93c2ef8ca8e03cbcc (patch)
treedd2a1ddf0476664c2b823409c36cbccd52662ca7 /examples/summaries/cocoa/Selector.py
parent3bd2e91faeb9eeec1aae82c64a3253afff551cfd (diff)
Notes
Diffstat (limited to 'examples/summaries/cocoa/Selector.py')
-rw-r--r--examples/summaries/cocoa/Selector.py14
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()