Search code examples
memorygdbattx86

GDB IA32 seeing whats at a memory address?


i have the instruction

cmp    %eax,0x18(%esp,%ebx,4)

I know it means compare whatever is at the address with eax, but i cannot figure out how to see whats at the address.

i tried p/s the address, x/s my bad calculation of the address, all failed. any help?


Solution

  • any help

    You didn't show us what you've tried. Something like this should work:

    x/x (0x18 + $esp + 4 * $ebx)