Repository navigation
Enable LLDB symbol lookup from separate dSYM files - #6060
Merged
max-charlamb merged 1 commit intoSep 23, 2026
Merged
max-charlamb merged 1 commit into
max-charlamb merged 1 commit into
Conversation
Fall back to the symbol file associated with a loaded module when LLDB cannot resolve local Mach-O symbols through the module itself. Translate between link-time and runtime addresses for both lookup directions. Co-authored-by: Copilot <[email protected]>
max-charlamb
requested review from
steveisok
and
a lite review from Copilot
September 23, 2026 15:08
Contributor
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
Address dSYM module caching and architecture selection, and add regression coverage.
Review effort: Lite
Findings: None
What changed in this PR
Adds LLDB SOS fallback symbol lookup through associated dSYM files, including name/address resolution and runtime slide translation.
Changes:
- Resolves symbols from separate dSYM modules.
- Supports both lookup directions.
- Translates link-time and runtime addresses.
| File | Summary | Review findings |
|---|---|---|
src/SOS/lldbplugin/services.cpp |
Implements dSYM fallback lookup and address translation. | Moderate (1): cache symbol modules. Moderate (1): preserve the loaded module’s architecture/triple. Nit (1): add automated macOS regression coverage. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
steveisok
approved these changes
Sep 23, 2026
This was referenced Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Update the SOS LLDB services to fall back to the symbol file associated with a loaded module when a symbol cannot be resolved from the module itself.
The fallback:
SBModule::GetSymbolFileSpec.SBModule.Background
LLDB can associate a dSYM with a loaded Mach-O module and use its DWARF information, but local symbols from the dSYM's Mach-O symbol table are not always exposed through the loaded module's normal symbol lookup APIs.
Opening the associated symbol file as a separate
SBModulemakes those symbols available without requiring SOS to locate the dSYM or parse its Mach-O symbol table directly.If no associated symbol file exists, or the symbol is not present in it, lookup retains the existing failure behavior.
Testing