Warren Seine Warren Seine -4 years ago 122
C++ Question

Tell gdb to skip standard files

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

) and everything that's underneath.

I know about the
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
would send me to the next "user-land" code.

Answer Source

* Changes in GDB 7.4

  • GDB now allows you to skip uninteresting functions and files when stepping with the "skip function" and "skip file" commands.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download