brintos

brintos / llvm-project-archived public Read only

0
0
Text · 665 B · d1ff1c9 Raw
27 lines · python
1"""2LLDB AppKit formatters3 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-exception7"""8import lldb9 10 11def SEL_Summary(valobj, dict):12    return valobj.Cast(13        valobj.GetType().GetBasicType(lldb.eBasicTypeChar).GetPointerType()14    ).GetSummary()15 16 17def SELPointer_Summary(valobj, dict):18    return (19        valobj.CreateValueFromAddress(20            "text",21            valobj.GetValueAsUnsigned(0),22            valobj.GetType().GetBasicType(lldb.eBasicTypeChar),23        )24        .AddressOf()25        .GetSummary()26    )27