Tomilov Anatoliy
Tomilov Anatoliy

Reputation: 16711

Make GDB to avoid some source files during stepping

Is there way to make GDB to avoid some headers (e.g. STL's) or even a part of whole source directory? Somtimes it is very hindering thing, when GDB steps through a bunch of non-interested code, even through STL's one-liners, concentrated into known at debug time location (source file, separate source files, whole path). I want GDB to step over over all the invocations of functions from specified source files as over some atomic statements, without entering into its internals.

Upvotes: 1

Views: 195

Answers (1)

Employed Russian
Employed Russian

Reputation: 213526

Is there way to make GDB to avoid some headers

Yes, this has been added to recent GDB versions. See skip command documentation.

Upvotes: 5

Related Questions