GDB debugging on Linux _x86_64 command line

I am trying to debug my program on Linux using gdb.

I want to check the register values ​​for a specific frame in linux and for this I run two commands; info reg and info frame

I found that the values ​​shown by the info reg command for different registers are different than in this case the values ​​shown for the save registers for the information frame command. The rbp, rsp, rip registers are important to me.

What is the difference between these teams? and when he says “saved registers”, what does it mean and in what place are these registers stored?

+4
source share
1 answer

You want to switch to the right frame before you start the reg reg function. Then you will see that there really is no difference between the two.

Hope this helps. Alex

+1
source

All Articles