Skip to content

[cherry-pick][swift/release/6.0] [lldb] Fix type lookup in DWARF .o files via debug map (#87177) #8517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Michael137
Copy link

An inverted condition causes SymbolFileDWARFDebugMap::FindTypes to bail out after inspecting the first .o file in each module.

The same kind of bug is found in
SymbolFileDWARFDebugMap::ParseDeclsForContext.

Correct both early exit conditions and add a regression test for lookup of up a type defined in a secondary compilation unit.

Fixes llvm#87176

(cherry picked from commit 154cea4)

An inverted condition causes `SymbolFileDWARFDebugMap::FindTypes` to
bail out after inspecting the first .o file in each module.

The same kind of bug is found in
`SymbolFileDWARFDebugMap::ParseDeclsForContext`.

Correct both early exit conditions and add a regression test for lookup
of up a type defined in a secondary compilation unit.

Fixes llvm#87176

(cherry picked from commit 154cea4)
@Michael137 Michael137 requested a review from adrian-prantl April 2, 2024 10:48
@Michael137
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 7d518af into swiftlang:swift/release/6.0 Apr 2, 2024
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.

3 participants