mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Attach handling of "this" to ProtoParameter
This commit is contained in:
parent
bcc0f7fe38
commit
004a99bb87
29 changed files with 338 additions and 149 deletions
|
@ -103,7 +103,7 @@ public class ConstantPoolJava extends ConstantPool {
|
|||
new ParameterDefinitionImpl("", params.get(i), null);
|
||||
paramDefs[i] = currentParam;
|
||||
}
|
||||
res.hasThisPtr = false;
|
||||
funcDef.setGenericCallingConvention(GenericCallingConvention.stdcall);
|
||||
}
|
||||
//invokeinterface, invokespecial, and invokevirtual do have a this pointer
|
||||
else {
|
||||
|
@ -116,7 +116,7 @@ public class ConstantPoolJava extends ConstantPool {
|
|||
new ParameterDefinitionImpl("", params.get(i - 1), null);
|
||||
paramDefs[i] = currentParam;
|
||||
}
|
||||
res.hasThisPtr = true;
|
||||
funcDef.setGenericCallingConvention(GenericCallingConvention.thiscall);
|
||||
}
|
||||
funcDef.setArguments(paramDefs);
|
||||
res.type = new PointerDataType(funcDef);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue