Yogesh
Yogesh

Reputation: 253

How can we get Source File revision number from pdb file?

We have source server enabled, and source indexing is implemented according Using SrcSrv (MSDN). Debugger intelligently Copies the file from the server to the local cache. This works fine on developer machine.

Using IdebugSymbols Interface, we are able to retrieve information from pdb files. We have IdebugSymbols API functions for retrieving file name, source line number, module name etc. Reference: IDebugSymbols interface (MSDN)

My query is whether we can retrieve Source File revision number from .pdb file using some Microsoft API?

Please let me know if the problem is not understood or you require some more inputs from my side. Thanks :)

Upvotes: 4

Views: 397

Answers (1)

Yogesh
Yogesh

Reputation: 253

I found one more general approach using Microsoft tools called "pdbstr.exe"and "Srctool.exe". These tools can be found at this location %PROGRAMFILES%\Debugging Tools for Windows (x86)\srcsrv (from: Source Server (MSDN))

These tools simply interacts with pdb symbols file and fetches the information. So I was interested in fetching following info and yes that answers my question. - What are all files which are Indexed with their revision number?

Upvotes: 4

Related Questions