Skip to content

Instantly share code, notes, and snippets.

@mikeash
Last active September 20, 2017 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeash/84bee689b7dbf9aa7ca8fa1d4f91bcfd to your computer and use it in GitHub Desktop.
Save mikeash/84bee689b7dbf9aa7ca8fa1d4f91bcfd to your computer and use it in GitHub Desktop.
== [UserExpression::Evaluate] Parsing expression self.state ==
SwiftUserExpression::ScanContext()
[SUE::SC] Compilation unit is swift
[SUE::SC] Containing class name: __NSAtom *
[SUE::SC] Function name: _T018PLBindableControls8CheckboxC11_checkState33_79304706E5FEF3938A56B8427F4A7F7DLL19PLRelationalBinding21ExternalValuePropertyCyAA05CheckE0OGfgAJycfU_
Parsing the following code:
extension $__lldb_context {
@LLDBDebuggerFunction
mutating func $__lldb_wrapped_expr_2(_ $__lldb_arg : UnsafeMutablePointer<Any>) {
do
{
/*__LLDB_USER_START__*/
self.state
/*__LLDB_USER_END__*/
}
catch (let __lldb_tmp_error)
{
var $__lldb_error_result = __lldb_tmp_error
}
}
}
func $__lldb_expr(_ $__lldb_arg : UnsafeMutablePointer<Any>) {
do {
$__lldb_injected_self.$__lldb_wrapped_expr_2(
$__lldb_arg
)
}
}
[PerformAutoImport] Importing module Swift
Importing Swift with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule'
[PerformAutoImport] Importing module PLBindableControls
Importing PLBindableControls with source files:
kind = SerializedAST, filename = 'PLBindableControls'
[PerformAutoImport] Importing module Cocoa
Importing Cocoa with source files:
kind = SerializedAST, filename = '/var/folders/1j/b8nwcvbj2sg2_zfr67j74l640000gn/C/org.llvm.clang.mikeash/ModuleCache/VSQIYVJD92PO/Cocoa-1ZSAXE79IU0C7.pcm'
[PerformAutoImport] Importing module PLRelationalBinding
Importing PLRelationalBinding with source files:
kind = SerializedAST, filename = 'PLRelationalBinding'
[PerformAutoImport] Importing module SwiftOnoneSupport
Importing SwiftOnoneSupport with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule'
[PerformAutoImport] Importing module AppKit
Importing AppKit with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/AppKit.swiftmodule'
[PerformAutoImport] Importing module PLRelational
Importing PLRelational with source files:
kind = SerializedAST, filename = 'PLRelational'
[PerformAutoImport] Importing module Foundation
Importing Foundation with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule'
Made global type alias for $__lldb_context (0x7fcbf92f1f30) in context (0x7fcbf8021000):
(typealias "$__lldb_context" interface type='$__lldb_context.Type' type='Checkbox')
Adding injected self: type (0x7fcbf92f1fa0) context(0x7fcbf8021000) is: (unowned_storage_type
(class_type decl=PLBindableControls.(file).Checkbox))
[SwiftASTManipulator::AddExternalVariables] Injected variable (var_decl implicit "$__lldb_injected_self" type='Checkbox' interface type='Checkbox' storage_kind=stored)
[PerformAutoImport] Performing auto import on found module: Swift.
[PerformAutoImport] Importing module Swift
Importing Swift with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule'
[PerformAutoImport] Performing auto import on found module: Swift.
[PerformAutoImport] Performing auto import on found module: PLBindableControls.
[PerformAutoImport] Importing module PLBindableControls
Importing PLBindableControls with source files:
kind = SerializedAST, filename = 'PLBindableControls'
[PerformAutoImport] Performing auto import on found module: Cocoa.
[PerformAutoImport] Importing module Cocoa
Importing Cocoa with source files:
kind = SerializedAST, filename = '/var/folders/1j/b8nwcvbj2sg2_zfr67j74l640000gn/C/org.llvm.clang.mikeash/ModuleCache/VSQIYVJD92PO/Cocoa-1ZSAXE79IU0C7.pcm'
[PerformAutoImport] Performing auto import on found module: PLRelationalBinding.
[PerformAutoImport] Importing module PLRelationalBinding
Importing PLRelationalBinding with source files:
kind = SerializedAST, filename = 'PLRelationalBinding'
[PerformAutoImport] Performing auto import on found module: SwiftOnoneSupport.
[PerformAutoImport] Importing module SwiftOnoneSupport
Importing SwiftOnoneSupport with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule'
[PerformAutoImport] Performing auto import on found module: AppKit.
[PerformAutoImport] Importing module AppKit
Importing AppKit with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/AppKit.swiftmodule'
[PerformAutoImport] Performing auto import on found module: PLRelational.
[PerformAutoImport] Importing module PLRelational
Importing PLRelational with source files:
kind = SerializedAST, filename = 'PLRelational'
[PerformAutoImport] Performing auto import on found module: Foundation.
[PerformAutoImport] Importing module Foundation
Importing Foundation with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule'
[LLDBNameLookup::lookupOverrides(10)] Searching for $__lldb_context
[LLDBNameLookup::lookupAdditions (10)] Searching for $__lldb_context
[LLDBNameLookup::lookupOverrides(11)] Searching for UnsafeMutablePointer
[LLDBNameLookup::lookupAdditions (11)] Searching for UnsafeMutablePointer
[LLDBNameLookup::lookupOverrides(12)] Searching for UnsafeMutablePointer
[LLDBNameLookup::lookupAdditions (12)] Searching for UnsafeMutablePointer
[LLDBNameLookup::lookupOverrides(13)] Searching for ==
[LLDBNameLookup::lookupAdditions (13)] Searching for ==
[LLDBNameLookup::lookupOverrides(14)] Searching for IntegerLiteralType
[LLDBNameLookup::lookupAdditions (14)] Searching for IntegerLiteralType
[LLDBNameLookup::lookupOverrides(15)] Searching for FloatLiteralType
[LLDBNameLookup::lookupAdditions (15)] Searching for FloatLiteralType
== [UserExpression::Evaluate] Parsing expression $pc ==
SwiftUserExpression::ScanContext()
[SUE::SC] Compilation unit is swift
[SUE::SC] Containing class name: __NSAtom *
[SUE::SC] Function name: _T018PLBindableControls8CheckboxC11_checkState33_79304706E5FEF3938A56B8427F4A7F7DLL19PLRelationalBinding21ExternalValuePropertyCyAA05CheckE0OGfgAJycfU_
Parsing the following code:
extension $__lldb_context {
@LLDBDebuggerFunction
mutating func $__lldb_wrapped_expr_3(_ $__lldb_arg : UnsafeMutablePointer<Any>) {
do
{
/*__LLDB_USER_START__*/
$pc
/*__LLDB_USER_END__*/
}
catch (let __lldb_tmp_error)
{
var $__lldb_error_result = __lldb_tmp_error
}
}
}
func $__lldb_expr(_ $__lldb_arg : UnsafeMutablePointer<Any>) {
do {
$__lldb_injected_self.$__lldb_wrapped_expr_3(
$__lldb_arg
)
}
}
[PerformAutoImport] Importing module Swift
Importing Swift with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule'
[PerformAutoImport] Importing module PLBindableControls
Importing PLBindableControls with source files:
kind = SerializedAST, filename = 'PLBindableControls'
[PerformAutoImport] Importing module Cocoa
Importing Cocoa with source files:
kind = SerializedAST, filename = '/var/folders/1j/b8nwcvbj2sg2_zfr67j74l640000gn/C/org.llvm.clang.mikeash/ModuleCache/VSQIYVJD92PO/Cocoa-1ZSAXE79IU0C7.pcm'
[PerformAutoImport] Importing module PLRelationalBinding
Importing PLRelationalBinding with source files:
kind = SerializedAST, filename = 'PLRelationalBinding'
[PerformAutoImport] Importing module SwiftOnoneSupport
Importing SwiftOnoneSupport with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule'
[PerformAutoImport] Importing module AppKit
Importing AppKit with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/AppKit.swiftmodule'
[PerformAutoImport] Importing module PLRelational
Importing PLRelational with source files:
kind = SerializedAST, filename = 'PLRelational'
[PerformAutoImport] Importing module Foundation
Importing Foundation with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule'
Made global type alias for $__lldb_context (0x7fcbf92f1f30) in context (0x7fcbf8021000):
(typealias "$__lldb_context" interface type='$__lldb_context.Type' type='Checkbox')
Adding injected self: type (0x7fcbf92f1fa0) context(0x7fcbf8021000) is: (unowned_storage_type
(class_type decl=PLBindableControls.(file).Checkbox))
Resolving special name $pc
[SwiftASTManipulator::AddExternalVariables] Injected variable (var_decl implicit "$__lldb_injected_self" type='Checkbox' interface type='Checkbox' storage_kind=stored)
[PerformAutoImport] Performing auto import on found module: Swift.
[PerformAutoImport] Importing module Swift
Importing Swift with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule'
[PerformAutoImport] Performing auto import on found module: Swift.
[PerformAutoImport] Performing auto import on found module: PLBindableControls.
[PerformAutoImport] Importing module PLBindableControls
Importing PLBindableControls with source files:
kind = SerializedAST, filename = 'PLBindableControls'
[PerformAutoImport] Performing auto import on found module: Cocoa.
[PerformAutoImport] Importing module Cocoa
Importing Cocoa with source files:
kind = SerializedAST, filename = '/var/folders/1j/b8nwcvbj2sg2_zfr67j74l640000gn/C/org.llvm.clang.mikeash/ModuleCache/VSQIYVJD92PO/Cocoa-1ZSAXE79IU0C7.pcm'
[PerformAutoImport] Performing auto import on found module: PLRelationalBinding.
[PerformAutoImport] Importing module PLRelationalBinding
Importing PLRelationalBinding with source files:
kind = SerializedAST, filename = 'PLRelationalBinding'
[PerformAutoImport] Performing auto import on found module: SwiftOnoneSupport.
[PerformAutoImport] Importing module SwiftOnoneSupport
Importing SwiftOnoneSupport with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule'
[PerformAutoImport] Performing auto import on found module: AppKit.
[PerformAutoImport] Importing module AppKit
Importing AppKit with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/AppKit.swiftmodule'
[PerformAutoImport] Performing auto import on found module: PLRelational.
[PerformAutoImport] Importing module PLRelational
Importing PLRelational with source files:
kind = SerializedAST, filename = 'PLRelational'
[PerformAutoImport] Performing auto import on found module: Foundation.
[PerformAutoImport] Importing module Foundation
Importing Foundation with source files:
kind = SerializedAST, filename = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule'
[LLDBNameLookup::lookupOverrides(16)] Searching for $__lldb_context
[LLDBNameLookup::lookupAdditions (16)] Searching for $__lldb_context
[LLDBNameLookup::lookupOverrides(17)] Searching for UnsafeMutablePointer
[LLDBNameLookup::lookupAdditions (17)] Searching for UnsafeMutablePointer
[LLDBNameLookup::lookupOverrides(18)] Searching for UnsafeMutablePointer
[LLDBNameLookup::lookupAdditions (18)] Searching for UnsafeMutablePointer
[LLDBNameLookup::lookupOverrides(19)] Searching for $pc
[LLDBNameLookup::lookupAdditions (19)] Searching for $pc
[LLDBNameLookup::lookupOverrides(20)] Searching for $pc
[LLDBNameLookup::lookupAdditions (20)] Searching for $pc
[LLDBNameLookup::lookupOverrides(21)] Searching for ==
[LLDBNameLookup::lookupAdditions (21)] Searching for ==
(lldb) im look -va 0x0000000100384ea3
Address: PLBindableControls[0x0000000000064ea3] (PLBindableControls.__TEXT.__text + 408195)
Summary: PLBindableControls`closure #1 () -> PLBindableControls.CheckState in PLBindableControls.Checkbox.(_checkState in _79304706E5FEF3938A56B8427F4A7F7D).getter : PLRelationalBinding.ExternalValueProperty<PLBindableControls.CheckState> + 19 at Checkbox.swift:32
Module: file = "/Users/mikeash/Library/Developer/Xcode/DerivedData/PLRelational-etigvgdrszlcmkgomclmavlilnao/Build/Products/Debug/PLBindableControls.framework/Versions/A/PLBindableControls", arch = "x86_64"
CompileUnit: id = {0x00000000}, file = "/Users/mikeash/Development/plausible/plrelational/PLBindableControls/AppKit/Checkbox.swift", language = "swift"
Function: id = {0x140000014d}, name = "() -> ()", range = [0x0000000100384e90-0x0000000100384ee8)
FuncType: id = {0x140000014d}, byte-size = 8, decl = Checkbox.swift:31, compiler_type = "() -> ()
"
Blocks: id = {0x140000014d}, range = [0x100384e90-0x100384ee8)
LineEntry: [0x0000000100384ea3-0x0000000100384eaf): /Users/mikeash/Development/plausible/plrelational/PLBindableControls/AppKit/Checkbox.swift:32:31
Symbol: id = {0x00002052}, range = [0x0000000100384e90-0x0000000100384ef0), name="closure #1 () -> PLBindableControls.CheckState in PLBindableControls.Checkbox.(_checkState in _79304706E5FEF3938A56B8427F4A7F7D).getter : PLRelationalBinding.ExternalValueProperty<PLBindableControls.CheckState>", mangled="_T018PLBindableControls8CheckboxC11_checkState33_79304706E5FEF3938A56B8427F4A7F7DLL19PLRelationalBinding21ExternalValuePropertyCyAA05CheckE0OGfgAJycfU_"
Variable: id = {0x1400000166}, name = "self", type = "PLBindableControls.Checkbox", location = DW_OP_fbreg(-8) DW_OP_deref, decl = Checkbox.swift:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment