This project is read-only.

How to get the pdb-location stored in the Assembly?

Topics: Metadata Model, PE reader
Aug 29, 2011 at 5:03 PM

Hi,

I have a question. Is there a way to get the location of the pdb-file that is stored within within the Assembly itself?

In all your samples you are just renaming the extension, but in my case this forces me to keep two copies of the pdb-file.

Aug 29, 2011 at 6:28 PM

There is a section in a PE file that is filled in by the PDB writer and that appears to contain the name of the PDB file. Unfortunately the format of this section is not specified and hence object model support for it has not yet made it to the top of my todo list.

Aug 29, 2011 at 9:09 PM

I've added IModule.DebugInformationLocation to model the location of the pdb file. In addition I've made some assumptions about the format of the debug directory entry and added code to the PE reader to populate this property. The peToPe sample has been udated to make use of the property.

Aug 31, 2011 at 1:35 PM

Great, I will update and test it right now.

Thanks a lot.