mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 00:31:16 +00:00
Improvements to documentation
This commit is contained in:
parent
2bb89b42ff
commit
bab464fb07
@ -215,7 +215,7 @@ def overwrite_ghidra_function(self, ghidra_function: Function):
|
|||||||
"""Replace the function declaration in Ghidra by the one derived from C++."""
|
"""Replace the function declaration in Ghidra by the one derived from C++."""
|
||||||
|
|
||||||
if ghidra_function.hasCustomVariableStorage():
|
if ghidra_function.hasCustomVariableStorage():
|
||||||
# Unfortunately, Ghidra has a bug where setting custom variable storage back to `False`
|
# Unfortunately, calling `ghidra_function.setCustomVariableStorage(False)`
|
||||||
# leads to two `this` parameters. Therefore, we first need to remove all `this` parameters
|
# leads to two `this` parameters. Therefore, we first need to remove all `this` parameters
|
||||||
# and then re-generate a new one
|
# and then re-generate a new one
|
||||||
ghidra_function.replaceParameters(
|
ghidra_function.replaceParameters(
|
||||||
@ -330,7 +330,7 @@ def _set_this_adjust(
|
|||||||
ghidra_function: Function,
|
ghidra_function: Function,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Then `this adjust` is non-zero, the pointer type of `this` needs to be replaced by an offset version.
|
When `this adjust` is non-zero, the pointer type of `this` needs to be replaced by an offset version.
|
||||||
The offset can only be set on a typedef on the pointer. We also must enable custom storage so we can modify
|
The offset can only be set on a typedef on the pointer. We also must enable custom storage so we can modify
|
||||||
the auto-generated `this` parameter.
|
the auto-generated `this` parameter.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user