Skip to content

feat(debugid): debug ids for PE, PDB, ELF, Mach-O, dSYM and .sym files, and symbols info - #19

Closed
bobbyg603 wants to merge 1 commit into
feat/scaffoldfrom
feat/debugid
Closed

bobbyg603 wants to merge 1 commit into
feat/scaffoldfrom
feat/debugid

Conversation

@bobbyg603

Copy link
Copy Markdown
Member

Adds bugsplat_debugid::read, which returns the debug id, module name, kind and architecture of every object in a PE, PDB, portable PDB, ELF, Mach-O (thin or fat) or Breakpad .sym file, or in a .dSYM, .app, .framework, .bundle or .xcarchive bundle, deciding the kind from the file's contents, and bugsplat symbols info <file>..., which prints them as text or --json. The PDB and portable PDB readers are ported from pdb-guid; PE, ELF and Mach-O are parsed with the object crate and given the ids pdb-guid, symbol-upload and macho-uuid produce (a PE's id is its timestamp and image size, as PeGuid has it, not its CodeView record). Every id assertion in the four packages' spec files is ported: those with small fixtures run in cargo test against 12 MB of committed fixtures, and the rest (the Unreal PDB, the xcarchive, the fat dylib and others) run when BUGSPLAT_REFERENCE_DIR points at the packages' checkouts, which passed locally, as did a comparison of the CLI's output with the installed npm packages on every file in their spec folders. Closes #5

🤖 Generated with Claude Code

…s, and symbols info

bugsplat_debugid::read returns one DebugInfo per object in a file or bundle,
with the id pdb-guid, macho-uuid, elfy and symbol-upload produce for it. The
kind comes from the file's contents. PDB and portable PDB readers are ported
from pdb-guid; PE, ELF and Mach-O go through the object crate with the
packages' id rules applied on top.

`bugsplat symbols info <file>...` prints each object as text or JSON.

Closes #5

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@bobbyg603 bobbyg603 mentioned this pull request Nov 24, 2026
@bobbyg603

Copy link
Copy Markdown
Member Author

Closing in favor of #21, which contains this branch together with the other phase 1 streams and the fixes made when they were combined. This pull request's diff is still here for reviewing this stream on its own; the branch is not deleted.

@bobbyg603 bobbyg603 closed this Nov 24, 2026
@bobbyg603
bobbyg603 deleted the feat/debugid branch November 25, 2026 22:19
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