How to interpret GDB “info frame” output?

后端 未结 3 1039
孤独总比滥情好
孤独总比滥情好 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:38

    I know this questions is from ... 8 years ago. But for future users, I found a very clear outline of the info here.

    This is pulled from the aforementioned link:

    info frame
    info f
    
    This command prints a verbose description of the selected stack frame, including:
    
        the address of the frame
        the address of the next frame down (called by this frame)
        the address of the next frame up (caller of this frame)
        the language in which the source code corresponding to this frame is written
        the address of the frame’s arguments
        the address of the frame’s local variables
        the program counter saved in it (the address of execution in the caller frame)
        which registers were saved in the frame 
    

提交回复
热议问题