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шаги Into подпрограмм, но 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.