Browse Source

Add method signature to disassembly

pull/1872/head
Andrew Au 5 years ago
parent
commit
f51da987de
  1. 3
      ILSpy.ReadyToRun/ReadyToRunLanguage.cs

3
ILSpy.ReadyToRun/ReadyToRunLanguage.cs

@ -84,13 +84,14 @@ namespace ICSharpCode.ILSpy @@ -84,13 +84,14 @@ namespace ICSharpCode.ILSpy
if (m.MethodHandle == method.MetadataToken) {
// TODO: Indexing
foreach (RuntimeFunction runtimeFunction in m.RuntimeFunctions) {
output.WriteLine(m.SignatureString);
byte[] code = new byte[runtimeFunction.Size];
for (int i = 0; i < runtimeFunction.Size; i++) {
code[i] = reader.Image[reader.GetOffset(runtimeFunction.StartAddress) + i];
}
DecoderFormatterExample(output, code, bitness, (ulong)runtimeFunction.StartAddress);
output.WriteLine();
}
}
}
}

Loading…
Cancel
Save