ILGPU  0.9.0
ILGPU.Frontend.DebugInformation.DebugInformationManager Class Reference

Represents a debug-information manager. More...

Inheritance diagram for ILGPU.Frontend.DebugInformation.DebugInformationManager:
ILGPU.Util.DisposeBase ILGPU.ICache

Public Member Functions

 DebugInformationManager ()
 Constructs a new debug-information manager. More...
 
bool TryLoadSymbols (Assembly assembly, out AssemblyDebugInformation assemblyDebugInformation)
 Tries to load symbols for the given assembly. More...
 
bool TryLoadSymbols (Assembly assembly, string pdbFileName, out AssemblyDebugInformation assemblyDebugInformation)
 Tries to load symbols for the given assembly based on the given debug-information file. More...
 
bool TryLoadSymbols (Assembly assembly, Stream pdbStream, out AssemblyDebugInformation assemblyDebugInformation)
 Tries to load symbols for the given assembly based on the given PDB stream. More...
 
bool TryFindPbdFile (string pdbFileName, out string fileName)
 Tries to find a debug-information file with the name pdbFileName . More...
 
void RegisterLookupDirectory (string directory)
 Registers the given directory as a source directory for debug-information files. More...
 
bool TryLoadDebugInformation (MethodBase methodBase, out MethodDebugInformation methodDebugInformation)
 Tries to load debug information for the given method. More...
 
SequencePointEnumerator LoadSequencePoints (MethodBase methodBase)
 Loads the sequence points of the given method. More...
 
void ClearCache (ClearCacheMode mode)
 Clears cached debug information. More...
 
- Public Member Functions inherited from ILGPU.Util.DisposeBase
void Dispose ()
 Triggers the 'dispose' functionality of this object. More...
 

Public Attributes

const string PDBFileExtensions = ".pdb"
 The PDB file extension (.pdb). More...
 
const string PDBFileSearchPattern = "*" + PDBFileExtensions
 The PDB file-search extension (*.pdb). More...
 

Protected Member Functions

override void Dispose (bool disposing)
 

Detailed Description

Represents a debug-information manager.

Constructor & Destructor Documentation

ILGPU.Frontend.DebugInformation.DebugInformationManager.DebugInformationManager ( )

Constructs a new debug-information manager.

Member Function Documentation

void ILGPU.Frontend.DebugInformation.DebugInformationManager.ClearCache ( ClearCacheMode  mode)

Clears cached debug information.

Parameters
modeThe clear mode.

Implements ILGPU.ICache.

override void ILGPU.Frontend.DebugInformation.DebugInformationManager.Dispose ( bool  disposing)
protectedvirtual

Reimplemented from ILGPU.Util.DisposeBase.

SequencePointEnumerator ILGPU.Frontend.DebugInformation.DebugInformationManager.LoadSequencePoints ( MethodBase  methodBase)

Loads the sequence points of the given method.

Parameters
methodBaseThe method base.
Returns
A sequence-point enumerator that targets the given method.

If no debug information could be loaded for the given method, an empty SequencePointEnumerator will be returned.

void ILGPU.Frontend.DebugInformation.DebugInformationManager.RegisterLookupDirectory ( string  directory)

Registers the given directory as a source directory for debug-information files.

Parameters
directoryThe directory to register.
bool ILGPU.Frontend.DebugInformation.DebugInformationManager.TryFindPbdFile ( string  pdbFileName,
out string  fileName 
)

Tries to find a debug-information file with the name pdbFileName .

Parameters
pdbFileNameThe name of the debug-information file.
fileNameThe resolved filename (or null).
Returns
True, if the given debug-information file could be found.
bool ILGPU.Frontend.DebugInformation.DebugInformationManager.TryLoadDebugInformation ( MethodBase  methodBase,
out MethodDebugInformation  methodDebugInformation 
)

Tries to load debug information for the given method.

Parameters
methodBaseThe method.
methodDebugInformationLoaded debug information (or null).
Returns
True, if debug information could be loaded.
bool ILGPU.Frontend.DebugInformation.DebugInformationManager.TryLoadSymbols ( Assembly  assembly,
out AssemblyDebugInformation  assemblyDebugInformation 
)

Tries to load symbols for the given assembly.

Parameters
assemblyThe assembly.
assemblyDebugInformationThe loaded debug information (or null).
Returns
True, if the debug information could be loaded.
bool ILGPU.Frontend.DebugInformation.DebugInformationManager.TryLoadSymbols ( Assembly  assembly,
string  pdbFileName,
out AssemblyDebugInformation  assemblyDebugInformation 
)

Tries to load symbols for the given assembly based on the given debug-information file.

Parameters
assemblyThe assembly.
pdbFileNameThe name of the debug-information file.
assemblyDebugInformationThe loaded debug information (or null).
Returns
True, if the debug information could be loaded.
bool ILGPU.Frontend.DebugInformation.DebugInformationManager.TryLoadSymbols ( Assembly  assembly,
Stream  pdbStream,
out AssemblyDebugInformation  assemblyDebugInformation 
)

Tries to load symbols for the given assembly based on the given PDB stream.

Parameters
assemblyThe assembly.
pdbStreamThe source PDB stream (must be left open).
assemblyDebugInformationThe loaded debug information (or null).
Returns
True, if the debug information could be loaded.

Member Data Documentation

const string ILGPU.Frontend.DebugInformation.DebugInformationManager.PDBFileExtensions = ".pdb"

The PDB file extension (.pdb).

const string ILGPU.Frontend.DebugInformation.DebugInformationManager.PDBFileSearchPattern = "*" + PDBFileExtensions

The PDB file-search extension (*.pdb).


The documentation for this class was generated from the following file: