The MASM Forum

Miscellaneous => Miscellaneous Projects => Topic started by: guga on April 22, 2025, 04:51:03 PM

Title: PDB Dumper (Ported to C)
Post by: guga on April 22, 2025, 04:51:03 PM
Hi everyone,

Years ago I started a small program for RosAsm that scans pdb files RosAsm PDB Dumper (https://masm32.com/board/index.php?topic=3449.msg36300#msg36300). Since I'm updating RosAsm, I decided to test it and see how it would work in a new interface and adapted the code to C. The interface is reasonable, but since it's in C and I have no experience with it, I quickly translated it from RosAsm to C to see how it would work. Here's the little program and the source code in C.

Title: Re: PDB Dumper (Ported to C)
Post by: guga on April 22, 2025, 04:51:34 PM
And here is the Source code.

Btw...soon i´ll update the RosAsm version (It is working better and with the correct results than the C one)
Title: Re: PDB Dumper (Ported to C)
Post by: TimoVJL on April 22, 2025, 06:49:14 PM
This site give some info too
https://github.com/microsoft/microsoft-pdb/tree/master/cvdump (https://github.com/microsoft/microsoft-pdb/tree/master/cvdump)

EDIT: once having fun with low level
Title: Re: PDB Dumper (Ported to C)
Post by: guga on April 22, 2025, 06:56:43 PM
Excellent. Tks, Timo.
Title: Re: PDB Dumper (Ported to C)
Post by: guga on April 23, 2025, 11:40:40 AM
Btw, if someone needs the headers here they go:
Note: I can´t upload diaguids.lib, because even zipped, it is bigger then 500Kb limit of the forum
Title: Re: PDB Dumper (Ported to C)
Post by: TimoVJL on April 23, 2025, 04:34:07 PM
MSDia dlls have TLB in resources and lot of GUIDs are there.
Also dia2.h have GUIDs there.

This might also help without that guid library
#define INITGUIDS
Title: Re: PDB Dumper (Ported to C)
Post by: guga on April 23, 2025, 09:42:28 PM
Tks Timo. I´ll compare it wit the one i have for msdia120

Do u want me to send to you the sdk ?