Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which tool to use to open .pdb (symbol) files?

I have .pdb file, downloaded from MS symbols server. I need to fetch list of symbols (functions, arguments, anything it has). There is a tool on CodeProject, but it only reports modules. There is DbgHelp API, but it only could be attcahed to running process. How can I read .pdb file offline?

like image 439
user996142 Avatar asked Oct 16 '25 15:10

user996142


2 Answers

Good News for anyone still looking,

The information you seek is now open source!

https://github.com/Microsoft/microsoft-pdb

Some real interesting stuff there. Like this pdbdump.cpp file, with its dumpPublics function or its main flow controls. Good documentation too

like image 180
Frison Alexander Avatar answered Oct 18 '25 08:10

Frison Alexander


You can also use Visual Studio's Dia2Dump sample program to dump human-readable output from a PDB file, including its public symbols.

Be sure to build it as a 32-bit application though, or you might run into some problems with it. (See dia2dump: CoCreateInstance failed - HRESULT = 80040154)

like image 23
Cazra Avatar answered Oct 18 '25 08:10

Cazra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!