IDA: Add custom attribute generator function names and addresses

This commit is contained in:
Katy Coe
2020-02-02 23:28:45 +01:00
parent fd96b02065
commit 8a0c912bc5

View File

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