Questions tagged [dia-sdk]

The Microsoft Debug Interface Access Software Development Kit (DIA SDK) provides access to debug information stored in program database (.pdb) files generated by Microsoft postcompiler tools.

The Microsoft Debug Interface Access Software Development Kit (DIA SDK) provides access to debug information stored in program database (.pdb) files generated by Microsoft postcompiler tools. Because the format of the .pdb file generated by the postcompiler tools undergoes constant revision, exposing the format is impractical. Using the DIA API, you can develop applications that search for and browse debug information stored in a .pdb file. Such applications could, for example, report stack trace-back information and analyze performance data.

Reference:

32 questions
8
votes
4 answers

How do I use the MS DIA SDK from C#?

I'm trying to use the Microsoft Debug Interface Access SDK from C#. This is installed with Visual Studio, but the docs don't seem to mention how you use this from C#. I've found example code on interweb but no information on how to link to the DIA…
Nick
  • 27,566
  • 12
  • 60
  • 72
6
votes
3 answers

What is the format (schema) of .NET PDB files?

What is the format (schema) of .NET PDB files? I'd like to parse the information out of these files so that I can display the correct lines of code (line numbers) in a debugging application.
Sean
  • 1,373
  • 2
  • 14
  • 26
3
votes
0 answers

How to use the DIA SDK to read *code* (specifically including jump tables)?

I'm using the DIA SDK from C#. Right now I have something like: static void Main(string[] args) { var v = new DiaSource(); v.loadDataForExe("Temp.exe", null, null); // native, with symbols Dia2Lib.IDiaSession session; …
user541686
  • 205,094
  • 128
  • 528
  • 886
3
votes
3 answers

How can I get the GUID from a PDB file?

Does anyone know how to get the GUID from a PDB file? I'm using Microsoft's Debug Interface Access SDK http://msdn.microsoft.com/en-us/library/f0756hat.aspx and getting E_PDB_INVALID_SIG when passing in the GUID i expect when trying to load the…
thoughton
  • 511
  • 1
  • 5
  • 10
2
votes
1 answer

I am looking for a C++ library which processes debug symbols out of a .PDB document

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.
Jeremy
  • 29
  • 1
2
votes
1 answer

Why DIA SDK get_libraryName symbol returns NULL for IDiaSymbol?

I need to find the correct .dll/.exe from where the function enumerated. For this I am using get_libraryName which to me should return file Name(.dll/.exe) in which the function was originally defined. But It returns every time…
Hassan
  • 171
  • 2
  • 6
2
votes
1 answer

Iterating through Symbols in DIA SDK with getSymbolsByAddr

GOAL: I'm trying to list the addresses of all functions contained in a pdb file. CURRENT APPROACH: I found the DIA SDK and I'm modifying the dia2dump example: https://msdn.microsoft.com/en-us/library/hd8h6f46.aspx I have added a new function: bool…
zje
  • 3,824
  • 4
  • 25
  • 31
2
votes
2 answers

Load data from microsoft pdb file using dia-sdk

Hi im trying to read data from pdb files Ive followed the steps from How do I use the MS DIA SDK from C#? and generated the assembly The problem is: When calling dataSource.loadDataFromPdb on a MS pdb file it throws a ComException(HRESULT:…
Lars Nielsen
  • 436
  • 3
  • 16
1
vote
3 answers

Why doesn't TlbImp import this COM interface for DIA correctly into .NET?

I tried to import Microsoft's DIA SDK for use with .NET: call "%VS90COMNTOOLS%\vsvars32.bat" midl /I "%VSINSTALLDIR%\DIA SDK\include" "%VSINSTALLDIR%\DIA SDK\idl\dia2.idl" /tlb dia2.tlb tlbimp dia2.tlb Which seems to work correctly for the most…
user541686
  • 205,094
  • 128
  • 528
  • 886
1
vote
1 answer

AST from PDB (e.g. via DIA)

I'm currently using the DIA SDK to get some very useful information from a PDB file... Now, the basic question is: how deep can I go with that? The optimum would be to able to get everything right down to the abstract syntax tree... Is that even…
Jay
  • 237
  • 2
  • 14
1
vote
1 answer

Getting a List of Symbols Used by My VC++ Code

I am building a tool that process my VC++ source codes. For this, I need to obtain a list of symbols including local variable names and their types used by my codes. I know Visual C++ 2010 already provides a .bsc file that allows the object…
JavaMan
  • 4,954
  • 4
  • 41
  • 69
1
vote
0 answers

DIA SDK Throws NotImplementedException

I am trying to inspect a .pdb using the DIA SDK from C# but I cannot get the user defined types using this code: string pdbFileName = @"c:\test.pdb"; var sourceClass = new DiaSourceClass(); sourceClass.loadDataFromPdb(pdbFileName); IDiaSession…
Jay8ee
  • 101
  • 1
  • 8
1
vote
1 answer

Get raw decodated name of IDiaSymbol

I'm trying to improve SymbolSort library, which reads PDB files with DIA SDK. I need to match the symbols read from object files with the symbols read from PDB. The question is: given an IDiaSymbol variable, how can I obtain its real name? I'm not…
stgatilov
  • 5,333
  • 31
  • 54
1
vote
1 answer

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…
user4434329
1
vote
1 answer

List folders of Classes in C++ PDB using DIA SDK

I am working on a profiling tool in C#. It analyses C++ PDB files using DIA SDK and lists all classes, functions, fields etc. I would like to know the folder names of the classes and list classes, functions etc folder wise. I have seen all the…
1
2 3