Skip to content

Conversation

@augusto2112
Copy link

There are swift metadata symbols outside the "_swift" sections. For example, swift context descriptors live in the "const" sections. Allow LLDBMemoryReader::resolvePointerAsSymbol to return any symbol that it finds.

rdar://165950673

@augusto2112 augusto2112 requested a review from a team as a code owner December 6, 2025 01:19
@augusto2112
Copy link
Author

@swift-ci test

@augusto2112
Copy link
Author

swiftlang/swift#85907

@swift-ci test

There are swift metadata symbols outside the "__swift_" sections. For
example, swift context descriptors live in the "const" sections. Allow
LLDBMemoryReader::resolvePointerAsSymbol to return any symbol that it
finds.

rdar://165950673
@augusto2112
Copy link
Author

swiftlang/swift#85907

@swift-ci test

1 similar comment
@augusto2112
Copy link
Author

swiftlang/swift#85907

@swift-ci test

Address::CalculateSymbolContextSymbol() finds the wrong symbol on
Linux when debugging swift application because symbols have an
actual size (as opposed to macOS, where they have size 0). This is
either an LLDB or a swift compiler bug.

For now, disable this optimization on Linux.
@augusto2112
Copy link
Author

swiftlang/swift#85907

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant