Reputation: 35485
Stepping through function objects with the debugger can be very confusing if I need to go through a std::function call.
Is it somehow possible to skip these frames?
Upvotes: 7
Views: 576
Reputation: 5614
gdb 7.4 added the skip family of commands for this.
(gdb) apropos skip
info skip -- Display the status of skips
set step-mode -- Set mode of the step operation
show step-mode -- Show mode of the step operation
skip -- Ignore a function while stepping
skip delete -- Delete skip entries
skip disable -- Disable skip entries
skip enable -- Enable skip entries
skip file -- Ignore a file while stepping
skip function -- Ignore a function while stepping
Upvotes: 3