4

I am trying to understand how a debugger uses PDB file. It would probably be a small file system in itself. Could someone help me understand the structure of the PDB file?

Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
vrrathod
  • 1,230
  • 2
  • 18
  • 28

3 Answers3

4

According to this blog post, the actual file format is kept secret by MS. However, I recommend you read that post as it has a lot of useful information what a PDB file is and how it's used.

keyboardP
  • 68,824
  • 13
  • 156
  • 205
0

According to MSDN, its impractical:

Because the format of the .pdb file generated by the postcompiler tools undergoes constant revision, exposing the format is impractical

A debugger would use the DIA SDK to access the data inside them, meaning you don't really need to know its structure.

Necrolis
  • 25,836
  • 3
  • 63
  • 101
  • 3
    You do need to know the structure when you're a compiler writer, who wants to emit a `pdb` file with your binary. – Ian Boyd Oct 24 '12 at 15:22
0

As a matter of fact, the format of PDB is not documented, but you can collect very detailed information about the content of PDB files programmatically using the appropriate interfaces See Sample

mox
  • 6,084
  • 2
  • 23
  • 35