help running cung cấp một số gợi ý:
Có stepvà bản năng next(và cũng nextivà 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.
Vì vậy, chúng ta có thể thấy rằng stepcác bước vào chương trình con, nhưng nextsẽ bước qua chương trình con.
Các stepvà stepi(và nextvà nexti) được phân biệt theo gia số "dòng" hoặc "hướng dẫn".
step -- Step program until it reaches a different source line
stepi -- Step one instruction exactly
Liên quan là 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.
Nhiều thông tin hữu ích hơn có tại https://sourceware.org/gdb/onlinesocs/gdb/Continuing-and-Stepping.html