You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
When using .getFunctionContaining() in a python script it returns data based on the functions however they exist in the original file. Any patches which were applied (manually or through the API) are not reflected here unlike in the Decompile window which does display these functions correctly.
To Reproduce
Open any file in the code browser
Patch any instruction that will cause a function to change its boundaries (So JMP or CALL for example)
Go through the relevant instructions with a python script and see what .getFunctionContaining() returns for each instruction
The output for the instructions which always were part of the function are correctly identified as part of the function but the new instructions are not (In my case they return "None", because no function was identified there before patching). This is different from the Decompile window which displays the function correctly
Expected behavior
.getFunctionContaining() should return the correct function as displayed in the Decompile window
Environment (please complete the following information):
OS: Windows 10.0.19045
Java Version: 18.0.2.1
Ghidra Version: 10.4 (I also tested on 11.2.1 and it seemed to give the same results)
Ghidra Origin: Official GitHub
The text was updated successfully, but these errors were encountered:
Describe the Bug
When using .getFunctionContaining() in a python script it returns data based on the functions however they exist in the original file. Any patches which were applied (manually or through the API) are not reflected here unlike in the Decompile window which does display these functions correctly.
To Reproduce
Expected behavior
.getFunctionContaining() should return the correct function as displayed in the Decompile window
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: