Class DebugInfo
Inheritance
System.Object
DebugInfo
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: IL2CPU.Debug.Symbols.Net48.dll
Syntax
public sealed class DebugInfo : IDisposable
Constructors
|
Improve this Doc
View Source
DebugInfo(String, Boolean, Boolean)
Declaration
public DebugInfo(string aPathname, bool aCreate = false, bool aCreateIndexes = false)
Parameters
Type |
Name |
Description |
System.String |
aPathname |
|
System.Boolean |
aCreate |
|
System.Boolean |
aCreateIndexes |
|
Fields
|
Improve this Doc
View Source
AssemblerDebugSymbolsRange
Specifies range which is used by the assembler during compilation phase.
Declaration
public const long AssemblerDebugSymbolsRange = 0L
Field Value
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
AssemblyGUIDs
Declaration
public Dictionary<Assembly, long> AssemblyGUIDs
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.Reflection.Assembly, System.Int64> |
|
|
Improve this Doc
View Source
DocumentGUIDs
Declaration
public Dictionary<string, long> DocumentGUIDs
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Int64> |
|
|
Improve this Doc
View Source
Specifies range which is used by the Elf map extraction process.
Declaration
public const long ElfFileMapExtractionRange = 1152921504606846976L
Field Value
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
Specifies range which is used by the Yasm map extraction process.
Declaration
public const long NAsmMapExtractionRange = 4611686018427387904L
Field Value
Type |
Description |
System.Int64 |
|
Properties
|
Improve this Doc
View Source
CreateId
Generates new id for the symbol.
Declaration
public static long CreateId { get; }
Property Value
Type |
Description |
System.Int64 |
New value for the id.
|
|
Improve this Doc
View Source
CurrentInstance
Declaration
public static DebugInfo CurrentInstance { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddAssemblies(List<Assembly>, Boolean)
Declaration
public void AddAssemblies(List<Assembly> aAssemblies, bool aFlush = false)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Reflection.Assembly> |
aAssemblies |
|
System.Boolean |
aFlush |
|
|
Improve this Doc
View Source
AddDocument(String, Boolean)
Declaration
public void AddDocument(string aPathname, bool aFlush = false)
Parameters
Type |
Name |
Description |
System.String |
aPathname |
|
System.Boolean |
aFlush |
|
|
Improve this Doc
View Source
AddINT3Labels(SqliteConnection, IList<INT3Label>, Boolean)
Declaration
public void AddINT3Labels(SqliteConnection mConnection, IList<INT3Label> aLabels, bool aFlush = false)
Parameters
Type |
Name |
Description |
SqliteConnection |
mConnection |
|
System.Collections.Generic.IList<INT3Label> |
aLabels |
|
System.Boolean |
aFlush |
|
|
Improve this Doc
View Source
AddLabels(SqliteConnection, IList<Label>, Boolean)
Declaration
public void AddLabels(SqliteConnection mConnection, IList<Label> aLabels, bool aFlush = false)
Parameters
Type |
Name |
Description |
SqliteConnection |
mConnection |
|
System.Collections.Generic.IList<Label> |
aLabels |
|
System.Boolean |
aFlush |
|
|
Improve this Doc
View Source
AddMethod(Method, Boolean)
Declaration
public void AddMethod(Method aMethod, bool aFlush = false)
Parameters
Type |
Name |
Description |
Method |
aMethod |
|
System.Boolean |
aFlush |
|
|
Improve this Doc
View Source
AddSymbols(IList<MethodIlOp>, Boolean)
Declaration
public void AddSymbols(IList<MethodIlOp> aSymbols, bool aFlush = false)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<MethodIlOp> |
aSymbols |
|
System.Boolean |
aFlush |
|
|
Improve this Doc
View Source
BulkInsert<T>(SqliteConnection, String, IList<T>, Int32, Boolean)
Declaration
public void BulkInsert<T>(SqliteConnection mConnection, string aTableName, IList<T> aList, int aFlushSize = 0, bool aFlush = false)
where T : class
Parameters
Type |
Name |
Description |
SqliteConnection |
mConnection |
|
System.String |
aTableName |
|
System.Collections.Generic.IList<T> |
aList |
|
System.Int32 |
aFlushSize |
|
System.Boolean |
aFlush |
|
Type Parameters
|
Improve this Doc
View Source
CreateIndexes(SqliteConnection)
Create indexes inside the database.
Declaration
public void CreateIndexes(SqliteConnection mConnection)
Parameters
Type |
Name |
Description |
SqliteConnection |
mConnection |
|
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
GeneratedIdsCount()
Gets count of ids generated during last session.
Declaration
public static long GeneratedIdsCount()
Returns
Type |
Description |
System.Int64 |
Count of generated ids.
|
|
Improve this Doc
View Source
GetAddressOfLabel(String)
Declaration
public uint GetAddressOfLabel(string aLabelName)
Parameters
Type |
Name |
Description |
System.String |
aLabelName |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
Declaration
public List<KeyValuePair<uint, string>> GetAllINT3AddressesForMethod(SqliteConnection mConnection, Method aMethod, bool filterPermanentINT3s)
Parameters
Type |
Name |
Description |
SqliteConnection |
mConnection |
|
Method |
aMethod |
|
System.Boolean |
filterPermanentINT3s |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.UInt32, System.String>> |
|
|
Improve this Doc
View Source
GetAllLocalsAndArgumentsInfosByMethodLabelName(String)
Declaration
public LOCAL_ARGUMENT_INFO[] GetAllLocalsAndArgumentsInfosByMethodLabelName(string aLabelName)
Parameters
Type |
Name |
Description |
System.String |
aLabelName |
|
Returns
|
Improve this Doc
View Source
GetAssemblyFileById(Int64)
Declaration
public AssemblyFile GetAssemblyFileById(long aId)
Parameters
Type |
Name |
Description |
System.Int64 |
aId |
|
Returns
|
Improve this Doc
View Source
GetClosestCSharpBPAddress(UInt32)
Declaration
public uint GetClosestCSharpBPAddress(uint aAddress)
Parameters
Type |
Name |
Description |
System.UInt32 |
aAddress |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetDocumentById(SqliteConnection, Int64)
Declaration
public Document GetDocumentById(SqliteConnection mConnection, long aDocumentId)
Parameters
Type |
Name |
Description |
SqliteConnection |
mConnection |
|
System.Int64 |
aDocumentId |
|
Returns
|
Improve this Doc
View Source
GetFieldInfoByName(String)
Declaration
public FIELD_INFO GetFieldInfoByName(string aName)
Parameters
Type |
Name |
Description |
System.String |
aName |
|
Returns
|
Improve this Doc
View Source
GetFieldMap(String)
Declaration
public DebugInfo.Field_Map GetFieldMap(string aTypeName)
Parameters
Type |
Name |
Description |
System.String |
aTypeName |
|
Returns
|
Improve this Doc
View Source
GetFirstMethodIlOpByMethodIdAndILOffset(SqliteConnection, Int64, Int64)
Declaration
public MethodIlOp GetFirstMethodIlOpByMethodIdAndILOffset(SqliteConnection mConnection, long aMethodId, long aILOffset)
Parameters
Type |
Name |
Description |
SqliteConnection |
mConnection |
|
System.Int64 |
aMethodId |
|
System.Int64 |
aILOffset |
|
Returns
|
Improve this Doc
View Source
GetLabels(UInt32)
Declaration
public string[] GetLabels(uint aAddress)
Parameters
Type |
Name |
Description |
System.UInt32 |
aAddress |
|
Returns
Type |
Description |
System.String[] |
|
|
Improve this Doc
View Source
GetMethod(SqliteConnection, UInt32)
Declaration
public Method GetMethod(SqliteConnection mConnection, uint aAddress)
Parameters
Type |
Name |
Description |
SqliteConnection |
mConnection |
|
System.UInt32 |
aAddress |
|
Returns
|
Improve this Doc
View Source
GetMethod(Int64)
Declaration
public Method GetMethod(long aMethodId)
Parameters
Type |
Name |
Description |
System.Int64 |
aMethodId |
|
Returns
|
Improve this Doc
View Source
GetMethodByDocumentIDAndLinePosition(SqliteConnection, Int64, Int64, Int64)
Declaration
public Method GetMethodByDocumentIDAndLinePosition(SqliteConnection mConnection, long aDocID, long aStartPos, long aEndPos)
Parameters
Type |
Name |
Description |
SqliteConnection |
mConnection |
|
System.Int64 |
aDocID |
|
System.Int64 |
aStartPos |
|
System.Int64 |
aEndPos |
|
Returns
|
Improve this Doc
View Source
Declaration
public Label GetMethodHeaderLabel(SqliteConnection mConnection, uint aAddress)
Parameters
Type |
Name |
Description |
SqliteConnection |
mConnection |
|
System.UInt32 |
aAddress |
|
Returns
|
Improve this Doc
View Source
GetMethodLabels(SqliteConnection, UInt32)
Declaration
public Label[] GetMethodLabels(SqliteConnection mConnection, uint address)
Parameters
Type |
Name |
Description |
SqliteConnection |
mConnection |
|
System.UInt32 |
address |
|
Returns
|
Improve this Doc
View Source
GetNewConnection()
Create a new sqlite connection for the current thread
Declaration
public SqliteConnection GetNewConnection()
Returns
Type |
Description |
SqliteConnection |
|
|
Improve this Doc
View Source
GetSequencePoints(MethodBase, Boolean)
Declaration
public DebugInfo.SequencePoint[] GetSequencePoints(MethodBase aMethod, bool aFilterHiddenLines = false)
Parameters
Type |
Name |
Description |
System.Reflection.MethodBase |
aMethod |
|
System.Boolean |
aFilterHiddenLines |
|
Returns
|
Improve this Doc
View Source
GetSequencePoints(String, Int32, Boolean)
Declaration
public DebugInfo.SequencePoint[] GetSequencePoints(string aAsmPathname, int aMethodToken, bool aFilterHiddenLines = false)
Parameters
Type |
Name |
Description |
System.String |
aAsmPathname |
|
System.Int32 |
aMethodToken |
|
System.Boolean |
aFilterHiddenLines |
|
Returns
|
Improve this Doc
View Source
GetSourceInfos(UInt32)
Declaration
public SortedList<uint, SourceInfo> GetSourceInfos(uint aAddress)
Parameters
Type |
Name |
Description |
System.UInt32 |
aAddress |
|
Returns
Type |
Description |
System.Collections.Generic.SortedList<System.UInt32, SourceInfo> |
|
|
Improve this Doc
View Source
GetSymbols(SqliteConnection, Method)
Declaration
public MethodIlOp[] GetSymbols(SqliteConnection mConnection, Method aMethod)
Parameters
Type |
Name |
Description |
SqliteConnection |
mConnection |
|
Method |
aMethod |
|
Returns
|
Improve this Doc
View Source
LoadLookups()
Declaration
public void LoadLookups()
|
Improve this Doc
View Source
ReadFieldMappingList(SqliteConnection, List<DebugInfo.Field_Map>)
Declaration
public void ReadFieldMappingList(SqliteConnection mConnection, List<DebugInfo.Field_Map> aSymbols)
Parameters
Type |
Name |
Description |
SqliteConnection |
mConnection |
|
System.Collections.Generic.List<DebugInfo.Field_Map> |
aSymbols |
|
|
Improve this Doc
View Source
SetRange(Int64)
Sets the range in which id would be generated.
Declaration
public static void SetRange(long idRange)
Parameters
Type |
Name |
Description |
System.Int64 |
idRange |
Number which specified id range.
|
|
Improve this Doc
View Source
TryGetDocumentIdByName(String, out Int64)
Declaration
public bool TryGetDocumentIdByName(string aDocumentName, out long oDocumentId)
Parameters
Type |
Name |
Description |
System.String |
aDocumentName |
|
System.Int64 |
oDocumentId |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryGetFirstMethodIlOpByLabelName(String)
Declaration
public MethodIlOp TryGetFirstMethodIlOpByLabelName(string aLabelName)
Parameters
Type |
Name |
Description |
System.String |
aLabelName |
|
Returns
|
Improve this Doc
View Source
WriteAllLocalsArgumentsInfos(IList<LOCAL_ARGUMENT_INFO>)
Declaration
public void WriteAllLocalsArgumentsInfos(IList<LOCAL_ARGUMENT_INFO> aInfos)
Parameters
|
Improve this Doc
View Source
WriteFieldInfoToFile(IList<FIELD_INFO>)
Declaration
public void WriteFieldInfoToFile(IList<FIELD_INFO> aFields)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<FIELD_INFO> |
aFields |
|
|
Improve this Doc
View Source
WriteFieldMappingToFile(IEnumerable<DebugInfo.Field_Map>)
Declaration
public void WriteFieldMappingToFile(IEnumerable<DebugInfo.Field_Map> aMapping)
Parameters
Implements
System.IDisposable