I am trying to debug some code and i think i have the array i'm suppose to memorize messed up. How do I see what elements i have in the array using the debugger (the echivalent of print(long)variable
)
I tried using the same command i use to use the array elements: print(long)(%edi, %eax, 4)
, %eax being the index of the wanted element of the array. But it doesn't work.
gcc -m32 app.s -o app -> gdb app -> b tag -> print(long)(%edi, %eax, 4)