|
The code I'm reversing takes address of the structure + 0x10 and, probably because of some optimizations, uses this relative pointer to access structure fields. Is it possible to have this displayed correctly in decompilation? Iirc ghidra allows creating relative pointer typedefs for that. You can create a type for a pointer with offset. |
Answered by
alexrp
Nov 14, 2023
Replies: 2 comments 1 reply
|
You probably want to use either |
1 reply
Answer selected by
fuzyll
|
Works perfectly. :D |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You probably want to use either
__offset(T, N)on the parameter/variable or__ptr_offset(N)on the struct definition.