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.
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 ofllvm-pdbdump raw -modules
(grepped forName:
) and a program that is basically the example code I added here and they match exactly.