告诉gdb跳过标准文件 [英] Tell gdb to skip standard files

查看:80
本文介绍了告诉gdb跳过标准文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用GDB调试C ++代码,当它进入一个包含标准库对象的对象的构造函数时,它向我显示了这些对象的构造函数(如 std :: map

I'm debugging C++ code with GDB and when it enters a constructor of some object containing standard library objects, it shows me the constructor of these objects (like std::map) and everything that's underneath.

我知道下一个运算符,但我更喜欢基本上黑名单列出任何标准库代码,这从来不是我正在调查的错误的来源。希望的行为是,一个简单的 skip 会将我发送给下一个user-land代码。

I know about the next operator, but I'd prefer to basically black list any standard library code, which is never the source of the error I'm investigating. The wished behavior is that a simple skip would send me to the next "user-land" code.

推荐答案


* GDB 7.4中的变更

* Changes in GDB 7.4


  • GDB现在允许您在使用跳过功能和跳过文件命令时跳过不感兴趣的函数和文件。
  • GDB now allows you to skip uninteresting functions and files when stepping with the "skip function" and "skip file" commands.

这篇关于告诉gdb跳过标准文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆