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

No attribute 'setAnalyzedFlag' #1

Open
T0T4R4 opened this issue Nov 23, 2023 · 2 comments
Open

No attribute 'setAnalyzedFlag' #1

T0T4R4 opened this issue Nov 23, 2023 · 2 comments

Comments

@T0T4R4
Copy link

T0T4R4 commented Nov 23, 2023

Hi,

I ran with simple parameters on one of my C libraries :

python .\ghidra_pyhidra_callgraphs.py .\Utils.dll -m 3

But ended up with this error :

File "D:\_Dev\_ReverseEngineering\ghidra_10.4_PUBLIC_20230928\pyhidra\ghidra_pyhidra_callgraphs.py", line 503, in <module>
    GhidraProgramUtilities.setAnalyzedFlag(program, True)
AttributeError: type object 'ghidra.program.util.GhidraProgramUtilities' has no attribute 'setAnalyzedFlag'. Did you mean: 'resetAnalysisFlags'?

Tried to investigate but I can't find the root cause, as the Ghidra API definitely defines setAnalyzedFlag...

While debugging I found that indeed there is no such method:

image

@T0T4R4
Copy link
Author

T0T4R4 commented Nov 23, 2023

Cloned the repo and ran the example, same error.

@T0T4R4
Copy link
Author

T0T4R4 commented Nov 23, 2023

Ok it looks like the Ghidra API java doc page has not been recently refreshed.

You need to change that line to
GhidraProgramUtilities.markProgramAnalyzed(program).

Will send a PR.

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

1 participant