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