使用命令:gcc - g example.c -o example -m32
gcc - g example.c -o example -m32
测试代码:
int g(int x){ return x+3; } int f(int x){ int i = 1317; return g(x)+i; } int main(void){ return f(8)+1; }
开始调试:
eip(rip),ebp(rbp),esp(rsb),eax(rax)的值和栈的变化情况: