我如何用GDB检查堆栈框架? [英] How can I examine the stack frame with GDB?
本文介绍了我如何用GDB检查堆栈框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现在我一直在使用GDB反汇编一个二进制文件,并检查出不同的寄存器和其他内容。是否有简单的命令来检查堆栈中的所有内容?这可以限制在一个函数中的所有内容吗?
解决方案
对于当前的堆栈帧:
- 信息框架列出有关框架的一般信息(其中内容始于内存等)。
- info locals 列出存储在框架中的局部变量
- info frame lists general info about the frame (where things start in memory, etc.)
- info args lists arguments to the function
- info locals lists local variables stored in the frame
ul>
Right now I've been using GDB to disassemble a binary file and check out different registers and whatnot. Is there an easy command to examine everything on the stack? Can this be limited to everything in a function?
解决方案
For the current stack frame:
这篇关于我如何用GDB检查堆栈框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文