I am looking for a program to observe the execution stack of a c/c++ program. Currently I am using gdb for this purpose.
The following command shows the content of the stack:
to execute instruction after instruction I am using
Is it possible to combine these to commands so that I would be able to stept through the assembly code and observing the stack? If you have another possible solution/program I am looking forward to hear that as well.
You can combine commands using
(gdb) define mystep > stepi > x/whatever $rsp > end
mystep should step and then dump some memory.