简体   繁体   English

GDB位移命令

[英]GDB Displacement Command

How would I get the value at 我将如何获得价值

0x14(%esp,%ebx,4)

in GDB? 在GDB中?

I have tried p/x 0x14(%esp,%ebx,4) and get the error 我尝试了p/x 0x14(%esp,%ebx,4)并得到错误

A syntax error in expression, near `%esp,%ebx,4)'

%esp + 4 *%ebx + 0x14它是根据该公式计算得出的偏移量(基数,索引,倍数)地址=基数+索引*乘数+偏移量

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM