summaryrefslogtreecommitdiffstats
path: root/lldb/examples/summaries/cocoa/Selector.py
blob: 05a19606505eeae00406c23c9e9466accf369351 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
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()
OpenPOWER on IntegriCloud