SPECIFYING ARRAYS

root@sre:~$ ./ghidra

#step 1: review the instruction in the decompiler view & make an educated guess of the data type of the array
ghidra > decompiler view

#step 2: create the array
ghidra > decompiler view > double-click the &DAT_... item
 
 * this will move to the focus to where the &DAT_... is in assembly listing view
 
ghidra > assembly listing view > right-click the DAT_... > data > select the {dataType}
ghidra > assembly listing view > data > create an array
 Enter the number of array elements: {#}
 
 * ghidra will provide an estimate of what it thinks is the number of array element w/o overwriting existing data
 

Last updated