help running дає деякі підказки:
Є stepі nextінстукції (і також nextiі 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.
Тож ми можемо побачити, що stepкроки в підпрограми, але nextбуде перехід через підпрограми.
Значення stepта stepi(і і nextі nexti) розрізняють за кроком "рядок" або "інструкція".
step -- Step program until it reaches a different source line
stepi -- Step one instruction exactly
Пов'язане 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.
Набагато більше корисної інформації можна знайти на веб-сторінці https://sourceware.org/gdb/onlinedocs/gdb/Continuing-and-Stepping.html