How to interpret GDB “info frame” output?

后端 未结 3 1046
孤独总比滥情好
孤独总比滥情好 2020-12-12 12:25

Can some please help me to understand this:-

(gdb) info frame
Stack level 0, frame at 0xb75f7390:
 eip = 0x804877f in base::func() (testing.cpp:16); saved ei         


        
3条回答
  •  一个人的身影
    2020-12-12 12:57

    To understand what "ebp, eip Locals at and Previous Frame's sp" mean, you need to understand the x86 calling convention.

    Once you understand how frames are laid out, all the other things will be obvious.

提交回复
热议问题