Bug 15814 - Improve "skip file X" behaviour in .gdbinit to allow quiet adding of skip entries
Summary: Improve "skip file X" behaviour in .gdbinit to allow quiet adding of skip ent...
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: cli (show other bugs)
Version: 7.6
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-04 22:06 UTC by Richard Geary
Modified: 2023-01-23 22:51 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
Patch for "server skip file X" (741 bytes, patch)
2013-08-04 22:06 UTC, Richard Geary
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Geary 2013-08-04 22:06:12 UTC
Created attachment 7134 [details]
Patch for "server skip file X"

I want my gdb to always skip the system headers. But adding (say) "skip file /usr/include/c++/4.6/debug/safe_iterator.h" to the .gdbinit file will get ignored as there's nothing loaded at that point.

The attached patch changes the default behaviour to assume you want the skip to apply to future loads. Also if you use "server skip file X", it will hide the "File X will be skipped when stepping" message so you can quietly add skips.
Comment 1 Tom Tromey 2013-08-09 15:44:49 UTC
See the contribution checklist for info on submitting patches:
http://sourceware.org/gdb/wiki/ContributionChecklist

Thanks.
Comment 2 trass3r 2020-09-02 13:36:19 UTC
Looks like this is obsolete now.
Comment 3 Tom Tromey 2023-01-23 22:51:41 UTC
The skip is no longer ignored.  It's still noisy but you can
suppress it:

| skip file /usr/include/blah.h | cat > /dev/null