user4434329
user4434329

Reputation:

Is it possible to use IDiaDataSource::LoadDataFromPdb to read pdbs from symbol store?

I am trying to use IDiaDataSource::LoadDataFromPdb from Debug Interface Access windows library (DIA) to read symbol files (*.pdb) from the local symbol store but I do not find something to set the path which above function would use to search for *.pdbs. Is it possible for LoadDataForPdb to read symbols files from local symbol store?

Local symbol store is created by using the tool SymStore.exe with the following command line arguments:

symstore.exe add /f *.pdb /s .\SymbolStore /t "X"

Local symbol store contains all the pdbs in a centralized place.

Upvotes: 1

Views: 332

Answers (1)

valiano
valiano

Reputation: 18551

It seems you are looking for IDiaSession::findInjectedSource:

Retrieves a list of sources that has been placed into the symbol store by attribute providers or other components of the compilation process.

You can probably load a .pdb file directly from the symbol store using IDiaDataSource::loadDataFromPdb if you have the indexed .pdb path, but I guess the former is more suitable.

Upvotes: 0

Related Questions