getsentry / pdb

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

Add support for reading and iterating over modules from the DBI stream #8

Closed luser closed 7 years ago

luser commented 7 years ago

I started looking at the code to see if I could replicate the dump_syms tool we use, but one of the first things it does is iterate over the modules in the DBI stream. So I implemented that. I don't know if this is the best way to expose this or not, but it works. I compared the output of llvm-pdbdump raw -modules (grepped for Name:) and a program that is basically the example code I added here and they match exactly.

willglynn commented 7 years ago

Looks great, thanks!