Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

[DNM] Add LLDB formatters for types that live primarily in FoundationBase. #1187

Open
wants to merge 1 commit into
base: stable
Choose a base branch
from

Conversation

millenomi
Copy link

This supports the change at apple/swift-corelibs-foundation#1799.

@@ -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}",
Copy link
Member

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.

Copy link
Author

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?

Copy link
Author

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 :)

Copy link
Member

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!

@millenomi
Copy link
Author

This is blocked by https://bugs.swift.org/browse/SR-9635.

@millenomi millenomi force-pushed the swift-corelibs-foundation-split-soil branch from 19fcd66 to 90602cd Compare January 11, 2019 18:53
@dcci
Copy link
Member

dcci commented Jan 11, 2019

The problem you have is that swift and lldb are out of sync.

Copy link
Member

@dcci dcci left a 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.

@millenomi millenomi force-pushed the swift-corelibs-foundation-split-soil branch from 90602cd to a6891e0 Compare January 22, 2019 17:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants