ghidra_pcode_scripts
ghidra_pcode_scripts copied to clipboard
Type error on HighParam assignment
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!
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();