[sdb] Fix step-over with recursive functions. Fixes #5700.