在GDB中,我如何打印0xc(%rsp)? [英] In GDB how do I print 0xc(%rsp)?

查看:83
本文介绍了在GDB中,我如何打印0xc(%rsp)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试调试项目的一些代码,而我碰到了这行 cmpl $ 0x7,0xc(%rsp).什么是0xc(%rsp),如何打印?

I'm trying to debug some code for a project and I've come up against this line cmpl $0x7,0xc(%rsp). What is 0xc(%rsp), and how do I print it?

推荐答案

什么是0xc(%rsp)

What is 0xc(%rsp)

当前堆栈指针上方12个字节的内存位置.该位置的值正在与 7 进行比较.

The memory location 12 bytes above current stack pointer. The value at that location is being compared with 7.

如何打印?

(gdb) print $rsp+0xc

这篇关于在GDB中,我如何打印0xc(%rsp)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆