(gdb) apropos reverse
rc -- Continue program being debugged but run it in reverse
reverse-continue-- Continue program being debugged but run it in reverse
reverse-finish -- Execute backward until just before selected stack frame is called
reverse-next -- Step program backward
reverse-nexti -- Step backward one instruction
reverse-search -- Search backward for regular expression(see regex(3)) from last line listed
reverse-step -- Step program backward until it reaches the beginning of another source line
reverse-stepi -- Step backward exactly one instruction
rn -- Step program backward
set exec-direction -- Set direction of execution
set remote reverse-continue-packet -- Set use of remote protocol `bc'(reverse-continue) packet
set remote reverse-step-packet -- Set use of remote protocol `bs'(reverse-step) packet
set tui active-border-mode -- Set the attribute mode to use for the active TUI window border
set tui border-mode -- Set the attribute mode to use for the TUI window borders
show exec-direction -- Show direction of execution(forward/reverse)
show remote reverse-continue-packet -- Show current use of remote protocol `bc'(reverse-continue) packet
show remote reverse-step-packet -- Show current use of remote protocol `bs'(reverse-step) packet
show tui active-border-mode -- Show the attribute mode to use for the active TUI window border
show tui border-mode -- Show the attribute mode to use for the TUI window borders
GDB之调试回退b mainrunrecord // 重中之重,且一定要在run后面执行(gdb) apropos reverserc -- Continue program being debugged but run it in reversereverse-continue -- Continue program being debugged but run it in reversereverse-finish -- Execute backward until just befor