Skip to content

Consider adding Windows Debug Interface Access (DIA) SDK wrappers for PDB analysis #143737

Open
@jieyouxu

Description

@jieyouxu

My only concern with the pdb crate is it doesn't look like it's been updated in awhile. It's probably fine (it has few dependencies by the looks of it) but it makes me slightly wary.

[..] I think long term it would be good to use official debugging APIs on Windows hosts and only fallback to the pdb crate on other platforms (or maybe if they're unavailable for some reason).

-- #143669 (comment)

Currently, some run-make tests use llvm-pdbutil to inspect PDB for symbols and other purposes, but operating on llvm-pdbutil's textual output seems rather fragile, as between llvm-pdbutil versions that's not guaranteed to stay the same (there's an pdb2yaml subcommand, but then we're still parsing yaml?).

Consider introducing Windows Debug Interface Access (DIA) API wrappers to perform PDB analysis programmatically via the Officially Recommended ™️ way instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-run-makeArea: port run-make Makefiles to rmake.rsA-test-infraArea: test infrastructure (may span bootstrap/compiletest/more)C-enhancementCategory: An issue proposing an enhancement or a PR with one.O-windows-msvcToolchain: MSVC, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions