IDA: Add concrete generic method names and addresses

This commit is contained in:
Katy Coe
2020-02-02 23:19:44 +01:00
parent 3e69784898
commit fd96b02065

View File

@@ -67,6 +67,11 @@ def SetName(addr, name):
writeMethods(type.Name, type.DeclaredConstructors);
writeMethods(type.Name, type.DeclaredMethods);
}
foreach (var method in model.GenericMethods.Values.Where(m => m.VirtualAddress.HasValue)) {
writeLines($"SetName({method.VirtualAddress.Value.Start.ToAddressString()}," +
$"'{method.DeclaringType.Name}$${method.Name}{method.GetFullTypeParametersString()}')");
}
}
private void writeMethods(string typeName, IEnumerable<MethodBase> methods) {