Debian Codegraph @

llvm-project/lldb/examples/summaries/cocoa/Selector.py

raw
1 """
2 LLDB AppKit formatters
3
4 Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 See https://llvm.org/LICENSE.txt for license information.
6 SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 """
8 import lldb
9
10
11 def SEL_Summary(valobj, dict):
12 return valobj.Cast(valobj.GetType().GetBasicType(
13 lldb.eBasicTypeChar).GetPointerType()).GetSummary()
14
15
16 def SELPointer_Summary(valobj, dict):
17 return valobj.CreateValueFromAddress(
18 'text', valobj.GetValueAsUnsigned(0), valobj.GetType().GetBasicType(
19 lldb.eBasicTypeChar)).AddressOf().GetSummary()