Replies: 2 comments 1 reply
-
Sorry to jump in, but check if these PRs help in anyway: |
Beta Was this translation helpful? Give feedback.
1 reply
-
Bumping this discussion, as I've got stuff involving loops with arrays like this all over the codebase i'm analyzing, and it gets really hard to tell what's going on, or what is even inside of a struct |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an array of 10 fully defined
GlobalWaveDetails
objects instantiated in the data segment. When Ghidra's decompiler produces C that references the first member of the structure, although not perfect, the output is okay-ish (see line 2 below). However when referencing other structure members the array index becomes externlised and consequently is multiplied by the structures size and then added, making things less legible (see lines 3, 4 & 6 below):Can anyone advise as to where this transformation is occurring (either/both of Ghidra's C and/or Java) so a fix could be found?
Beta Was this translation helpful? Give feedback.
All reactions