如何使用gdb"s"命令摆脱步入stl_vector.h?

Jav*_*dez 4 c++ gdb stdvector

学科.

编译:g ++ -g -Wall -o program program.cpp

正在运行:gdb -tui程序

谢谢,

哈维尔.

Ari*_*Ari 5

如果你有GDB 7.4或更高版本,那么有一个skip命令可以让你跳过函数或整个文件.将文件或函数标记为跳过后,它不会再次进入它.从GDB手册 - 跳过函数和文件

skip [linespec]

skip function [linespec]
After running this command, the function named by linespec or the function containing the line named by linespec will be skipped over when stepping. 

skip file [filename]
After running this command, any function whose source lives in filename will be skipped over when stepping.
Run Code Online (Sandbox Code Playgroud)