Browse Source

Add GC Info

pull/3076/head
unknown 2 years ago
parent
commit
20201d3598
  1. 11
      ILSpy.ReadyToRun/ReadyToRunDisassembler.cs

11
ILSpy.ReadyToRun/ReadyToRunDisassembler.cs

@ -47,10 +47,19 @@ namespace ICSharpCode.ILSpy.ReadyToRun @@ -47,10 +47,19 @@ namespace ICSharpCode.ILSpy.ReadyToRun
public void Disassemble(PEFile currentFile, int bitness, ulong address, bool showMetadataTokens, bool showMetadataTokensInBase10)
{
// TODO: Decorate the disassembly with GCInfo
ReadyToRunMethod readyToRunMethod = runtimeFunction.Method;
WriteCommentLine(readyToRunMethod.SignatureString);
if (readyToRunMethod.GcInfo != null)
{
string[] lines = readyToRunMethod.GcInfo.ToString().Split(Environment.NewLine);
WriteCommentLine("GC info:");
foreach (string line in lines)
{
WriteCommentLine(line);
}
}
Dictionary<ulong, UnwindCode> unwindInfo = null;
if (ReadyToRunOptions.GetIsShowUnwindInfo(null) && bitness == 64)
{

Loading…
Cancel
Save