Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用我在 gdb 中拒绝的二进制文件。现在我只是在检查一个函数的返回值。
0x08048604 <playGame+78>: ret
显示的地址是函数中存储 ret 的地址吗?还是只是返回 ret 值的指令地址?
它是存储指令的.text部分的地址。ret您可以在函数中添加一些局部变量并打印它们的地址,这将是非常不同的,因为局部变量存储在堆栈上,而堆栈通常远离实际的可执行代码。
.text
ret