NativeSourceMap
Namespace: Dotsider.Core.Analysis.Models
Assembly: Dotsider.Core.dll
An address-sorted map from virtual address to source file and line, aggregated from a native
binary’s debug sidecar. Int32%40) resolves an instruction address to its source
location the way NativeSymbol%40) resolves an address to a symbol,
letting the disassembler annotate the listing with // file:line where the sidecar has data.
public sealed record NativeSourceMap : IEquatable<NativeSourceMap>Inheritance
Section titled “Inheritance”Object → NativeSourceMap
Implements
Section titled “Implements”Constructors
Section titled “Constructors”NativeSourceMap(IReadOnlyList<NativeSourceLine>)
Section titled “NativeSourceMap(IReadOnlyList<NativeSourceLine>)”An address-sorted map from virtual address to source file and line, aggregated from a native
binary’s debug sidecar. Int32%40) resolves an instruction address to its source
location the way NativeSymbol%40) resolves an address to a symbol,
letting the disassembler annotate the listing with // file:line where the sidecar has data.
Parameters:
Lines(IReadOnlyList<NativeSourceLine>): The source rows, sorted ascending by Address.
public NativeSourceMap(IReadOnlyList<NativeSourceLine> Lines)Properties
Section titled “Properties”The source rows, sorted ascending by Address.
Returns: IReadOnlyList<NativeSourceLine>
public IReadOnlyList<NativeSourceLine> Lines { get; init; }Methods
Section titled “Methods”TryGetLine(ulong, out string, out int)
Section titled “TryGetLine(ulong, out string, out int)”Resolves a virtual address to its source file and 1-based line, if mapped.
Parameters:
virtualAddress(UInt64): The instruction virtual address.file(String): The source file when found.line(Int32): The 1-based source line when found.
Returns: Boolean
True when the address falls within a mapped row; otherwise false.
public bool TryGetLine(ulong virtualAddress, out string file, out int line)