In debuggers, stepping into a function with arguments that involvefunction calls may step into the nested function calls, even if they aresimple and uninteresting, such as those found in the C++ STL.GDBConsider the following example:1234567891011121314#include#include#includeusingnamespacestd;voidfoo(inti,intj){printf("%d %d\n", i, j);}intmain(){autoi =make_unique(3);vector v{1,2};foo(*i, v.back());// step into}When GDB stops at thefoocall, thestep(s) command will step intostd::vector::backandstd::unique_ptr::operator*. While you can executefinish(fin) and execute
...
继续阅读
(9)