gpt4 book ai didi

c++ - 如何摆脱使用 gdb "s"命令进入 STL_vector.h?

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:29:39 26 4
gpt4 key购买 nike

主题。

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

运行:gdb -tui 程序

谢谢,

哈维尔。

最佳答案

如果您有 GDB 7.4 或更高版本,则有一个 skip 命令,可让您跳过函数或整个文件。将文件或函数标记为跳过后,它将不会再次进入。来自 GDB 手册 -- Skipping Over Functions and Files

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.

关于c++ - 如何摆脱使用 gdb "s"命令进入 STL_vector.h?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18745155/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com