2

Creating a module that will decode structures defined in a PDB document; can anyone provide me with a module that would extract the required debugging symbols from the PDB document? Thanks.

gnat
  • 6,213
  • 108
  • 53
  • 73
Jeremy
  • 29
  • 1

1 Answers1

2

You want the Debug Interface Access (DIA) SDK. It's COM-based, but it's the most powerful and flexible way to deal with PDBs, and it abstracts away all of the version-to-version PDB format changes. It ships with Visual Studio, and the headers and libraries can be found under your VS installation directory.

MSDN also has a fairly complete example of dumping a PDB that includes dumping out type information.

The alternative to DIA is the Debug Help (DbgHelp) library. It has a simpler interface, but it exposes less functionality than DIA. For what you want, I imagine you'd use the SymGetTypeInfo method.

Chris Schmich
  • 29,128
  • 5
  • 77
  • 94