ghidra_pcode_scripts icon indicating copy to clipboard operation
ghidra_pcode_scripts copied to clipboard

Type error on HighParam assignment

Open niconaus opened this issue 3 years ago • 1 comments

Hi,

I tried to use the scripts in this repo to dump PCode, but I can't get the script to compile, I get the following error:

PCodeDumpSF.java:509: error: incompatible types: ghidra.program.model.pcode.HighSymbol cannot be converted to ghidra.program.model.pcode.HighParam HighParam param = proto.getParam(i); ^

I'm assuming this is due to the age of the code. Do you have any suggestions on how to fix this?

Thanks!

niconaus avatar Nov 29 '21 16:11 niconaus

I was able to resolve this with the following changes starting on line 509 inside of exportPrototype():

for (int i = 0; i < proto.getNumParams(); i++) {
    HighSymbol paramSymbol = proto.getParam(i);
    HighVariable param = paramSymbol.getHighVariable();

whoismissing avatar Jun 02 '22 11:06 whoismissing