Table of Contents

Class PdbModule

Namespace
AsmResolver.Symbols.Pdb
Assembly
AsmResolver.Symbols.Pdb.dll

Represents a single module stored in a PDB image.

public class PdbModule : ICodeViewSymbolProvider
Inheritance
PdbModule
Implements
Derived
Inherited Members

Constructors

PdbModule()

Initialize an empty module in a PDB image.

protected PdbModule()

PdbModule(Utf8String)

Creates a new linked module in a PDB image.

public PdbModule(Utf8String name)

Parameters

name Utf8String

The name of the module.

PdbModule(Utf8String, Utf8String)

Creates a new module in a PDB image that was constructed from an object file.

public PdbModule(Utf8String name, Utf8String objectFileName)

Parameters

name Utf8String

The name of the module.

objectFileName Utf8String

The path to the object file.

Properties

Name

Gets or sets the name of the module.

public Utf8String? Name { get; set; }

Property Value

Utf8String

Remarks

This is often a full path to the object file that was passed into link.exe directly, or a string in the form of Import:dll_name

ObjectFileName

Gets or sets the name of the object file name.

public Utf8String? ObjectFileName { get; set; }

Property Value

Utf8String

Remarks

In the case this module is linked directly passed to link.exe, this is the same as Name. If the module comes from an archive, this is the full path to that archive.

SectionContribution

Gets or sets a description of the section within the final binary which contains code and/or data from this module.

public SectionContribution SectionContribution { get; set; }

Property Value

SectionContribution

SourceFiles

Gets a collection of source files that were used to compile the module.

public IList<PdbSourceFile> SourceFiles { get; }

Property Value

IList<PdbSourceFile>

Symbols

Gets the list of defined symbols.

public IList<ICodeViewSymbol> Symbols { get; }

Property Value

IList<ICodeViewSymbol>

Methods

GetName()

Obtains the name of the module.

protected virtual Utf8String? GetName()

Returns

Utf8String

The name.

Remarks

This method is called upon the initialization of the Name property.

GetObjectFileName()

Obtains the object file name of the module.

protected virtual Utf8String? GetObjectFileName()

Returns

Utf8String

The object file name.

Remarks

This method is called upon the initialization of the ObjectFileName property.

GetSectionContribution()

Obtains the section contribution of the module.

protected virtual SectionContribution? GetSectionContribution()

Returns

SectionContribution

The section contribution.

Remarks

This method is called upon the initialization of the SectionContribution property.

GetSourceFiles()

Obtains the source file names associated to the module.

protected virtual IList<PdbSourceFile> GetSourceFiles()

Returns

IList<PdbSourceFile>

The source file names.

Remarks

This method is called upon the initialization of the SourceFiles property.

GetSymbols()

Obtains the symbols stored in the module.

protected virtual IList<ICodeViewSymbol> GetSymbols()

Returns

IList<ICodeViewSymbol>

The symbols.

Remarks

This method is called upon the initialization of the Symbols property.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.