-
Notifications
You must be signed in to change notification settings - Fork 197
[DNM] Add LLDB formatters for types that live primarily in FoundationBase. #1187
base: stable
Are you sure you want to change the base?
[DNM] Add LLDB formatters for types that live primarily in FoundationBase. #1187
Conversation
@@ -563,6 +563,8 @@ static void LoadSwiftFormatters(lldb::TypeCategoryImplSP swift_category_sp) { | |||
ConstString("CoreGraphics.CGFloat"), summary_flags); | |||
AddStringSummary(swift_category_sp, "${var.native}", | |||
ConstString("Foundation.CGFloat"), summary_flags); | |||
AddStringSummary(swift_category_sp, "${var.native}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, is CGFloat
living exclusively in FoundationBase
? If so, the other formatter can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only in swift-corelibs-foundation. Does this cover Darwin too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I'd like to be able to debug things built with swift-corelibs-foundation and Swift 4.x :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This covers everything (Darwin and Linux). If you really want to match both, use a regex instead of duplicating the code (see other examples, or ping me if you have issues).
Also, compiler and debugger are revlocked until swift grows a stable module format so the backcompatibility argument doesn't hold.
Thanks!
This is blocked by https://bugs.swift.org/browse/SR-9635. |
19fcd66
to
90602cd
Compare
The problem you have is that swift and lldb are out of sync. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mark as "requested changes" so that it gets out of my review queue.
90602cd
to
a6891e0
Compare
This supports the change at swiftlang/swift-corelibs-foundation#1799.