How to print memory referenced by a complex addressing mode, using GDB?

Viewed 441

I am new to assembly and I am trying to print a value stored in the following address.

 cmp    %esi,0x10(%rsp,%rax,4) 

I think it is something like

 x/d $rsp+ 0x10 + 4*$rax
1 Answers

This is the correct way to print the contents of a memory location.

x/d $rsp+ 0x10 + 4*$rax
Related