getsentry / pdb

A parser for Microsoft PDB (Program Database) debugging information
https://docs.rs/pdb/
Apache License 2.0
384 stars 69 forks source link

CodeView parsing in public crate interface #108

Open osiewicz opened 2 years ago

osiewicz commented 2 years ago

Hi, I work on a toy Windows linker written in Rust. I would like to use this crate for creation of PDBs (I am aware that writing PDBs is not currently supported per #16). Before writing PDB I have to parse & dedup .debug$S and .debug$T sections in object files, which contain CodeView-related information.

Would it make sense from your PoV to roll out CodeView parsing as a part of pdb's public API (perhaps gated behind a feature flag)? I understand that's not the main use case of pdb, however IMHO it would make sense for pdb to host this kind of functionality. I'd be happy to work on API changes and eventually #16 down the road.

shuffle2 commented 2 years ago

Agree; I recently wanted to just parse these sections (no writing), and couldn't easily find something..