help running
memberikan beberapa petunjuk:
Ada step
dan next
instuctions (dan juga nexti
dan stepi
).
(gdb) help next
Step program, proceeding through subroutine calls.
Usage: next [N]
Unlike "step", if the current source line calls a subroutine,
this command does not enter the subroutine, but instead steps over
the call, in effect treating it as a single source line.
Jadi kita bisa melihat bahwa step
langkah-langkah dalam subrutin, tetapi next
akan melangkah lebih subrutin.
Tanda step
dan stepi
(dan tanda next
dan nexti
) membedakan dengan kenaikan "baris" atau "instruksi".
step -- Step program until it reaches a different source line
stepi -- Step one instruction exactly
Terkait adalah finish
:
(gdb) help finish
Execute until selected stack frame returns.
Usage: finish
Upon return, the value returned is printed and put in the value history.
Banyak informasi yang lebih berguna ada di https://sourceware.org/gdb/onlinedocs/gdb/Continuing-and-Stepping.html