Is it possible to run multiple commands in gdb
such as the following:
# step instruction and then print what I want to see again
>>> si && x/bt $rsi
If so, how can it be done?
Is it possible to run multiple commands in gdb
such as the following:
# step instruction and then print what I want to see again
>>> si && x/bt $rsi
If so, how can it be done?
If your gdb includes python, follow this post to add a user command in your .gdbinit file: https://stackoverflow.com/a/51804606/11873710
Usage example:
(gdb) cmds echo hi ; echo bye
hi
bye