摘要: gdb调试的时候会出现esp和ebp这两个指针,而这两个指针为我们查看栈的情况提供了方便。 简单点说,esp指向栈顶,而ebp指向栈底。例如一段程序: 1 #include <stdio.h> 2 3 int layout(int a){ 4 int b = a + 5; 5 return b; 6 阅读全文
posted @ 2016-11-13 18:04 zhazhalovecoding 阅读(2264) 评论(0) 推荐(0) 编辑