Preventing GDB from stepping into a function (or file)

后端 未结 5 1575
心在旅途
心在旅途 2020-11-27 21:14

I have some C++ code like this that I\'m stepping through with GDB:

void foo(int num) { ... }

void main() {
  Baz baz;
  foo (baz.get());
}
<
5条回答
  •  迷失自我
    2020-11-27 22:16

    Starting with GDB 7.4, skip can be used.

    Run info skip, or check out the manual for details: https://sourceware.org/gdb/onlinedocs/gdb/Skipping-Over-Functions-and-Files.html

提交回复
热议问题