代码之家  ›  专栏  ›  技术社区  ›  Javier Hernández

如何避免使用gdb“s”命令进入stl_vector.h?

  •  4
  • Javier Hernández  · 技术社区  · 13 年前

    主题

    编译:g++-g-Wall-o程序程序.cpp

    正在运行:gdb-tui程序

    非常感谢。

    哈维尔。

    2 回复  |  直到 13 年前
        1
  •  5
  •   Ari    13 年前

    如果你有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.
    
        2
  •  2
  •   Maxim Egorushkin    13 年前

    使用 fin(ish) 退出函数调用的命令。或者使用跳过函数调用 n(ext) 命令看见 Continuing and Stepping .

    推荐文章