Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error on HighParam assignment #2

Open
niconaus opened this issue Nov 29, 2021 · 1 comment
Open

Type error on HighParam assignment #2

niconaus opened this issue Nov 29, 2021 · 1 comment

Comments

@niconaus
Copy link

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!

@whoismissing
Copy link

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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants