0

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)

Iustin
  • 70
  • 5
  • 2
    GDB syntax is always C-like, regardless of the language being debugged. See the linked duplicate. `$edi` is a GDB variable tied to the EDI register in the target being debugged. – Peter Cordes Dec 22 '22 at 07:39

0 Answers0