Skip to content

[lldb] Remove SymbolFileDWARF assumption in DWARFASTParserSwiftDescri…#13214

Open
felipepiovezan wants to merge 1 commit into
swiftlang:stable/21.xfrom
felipepiovezan:felipe/fixdsymvariantembeedded
Open

[lldb] Remove SymbolFileDWARF assumption in DWARFASTParserSwiftDescri…#13214
felipepiovezan wants to merge 1 commit into
swiftlang:stable/21.xfrom
felipepiovezan:felipe/fixdsymvariantembeedded

Conversation

@felipepiovezan

@felipepiovezan felipepiovezan commented Jun 15, 2026

Copy link
Copy Markdown

…ptorFinder

A SymbolFile representing DWARF can be either a SymbolFileDWARF or a SymbolFileDWARFDebugMap. Prior to this commit
DWARFASTParserSwiftDescriptorFinder assumed it would get a SymbolFileDWARF from the TypeSystem.

By changing the query to obtain the SymbolFile from the Type itself (as opposed to TypeSystem), we can guarantee that the resulting SymbolFile will be a SymbolFileDWARF representing a specific object file.

This was never discovered because our DWARF variants in embedded swift were still using dsyms.

Existing tests are enough.

rdar://179813200

@felipepiovezan felipepiovezan requested a review from a team as a code owner June 15, 2026 18:55
@felipepiovezan

Copy link
Copy Markdown
Author

@swift-ci test

@felipepiovezan felipepiovezan force-pushed the felipe/fixdsymvariantembeedded branch 2 times, most recently from 14dfd06 to 758836f Compare June 16, 2026 12:13
@felipepiovezan

Copy link
Copy Markdown
Author

@swift-ci test

@augusto2112 augusto2112 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

…ptorFinder

A SymbolFile representing DWARF can be either a SymbolFileDWARF or a
SymbolFileDWARFDebugMap. Prior to this commit
DWARFASTParserSwiftDescriptorFinder assumed it would get a
SymbolFileDWARF from the TypeSystem.

By changing the query to obtain the SymbolFile from the `Type` itself
(as opposed to `TypeSystem`), we can guarantee that the resulting
SymbolFile will be a SymbolFileDWARF representing a specific object
file.

This was never discovered because our DWARF variants in embedded swift
were still using dsyms.
@felipepiovezan felipepiovezan force-pushed the felipe/fixdsymvariantembeedded branch from 758836f to 31ce34b Compare June 29, 2026 08:50
@felipepiovezan felipepiovezan changed the base branch from swift/release/6.4.x to stable/21.x June 29, 2026 08:51
@felipepiovezan

Copy link
Copy Markdown
Author

Changed destination branch to 21.x

@felipepiovezan

Copy link
Copy Markdown
Author

@swift-ci test

@felipepiovezan

Copy link
Copy Markdown
Author

13:59:02 Timed Out Tests (1):
13:59:02 lldb-api :: macosx/thread_suspend/TestInternalThreadSuspension.py

@felipepiovezan

Copy link
Copy Markdown
Author

@swift-ci test macos platform

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.

2 participants