diff options
author | emaste <emaste@FreeBSD.org> | 2015-10-02 13:16:06 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2015-10-02 13:16:06 +0000 |
commit | a587458e05728e74329b8bfac8a4bd22d2e1dd9d (patch) | |
tree | ba34b9de9ddcadbe6a51dad5f5a52d4a070117ec /usr.sbin/kldxref | |
parent | 8e6a38c94e71012a8bcf7fc9c04a1e7a13aa33f7 (diff) | |
download | FreeBSD-src-a587458e05728e74329b8bfac8a4bd22d2e1dd9d.zip FreeBSD-src-a587458e05728e74329b8bfac8a4bd22d2e1dd9d.tar.gz |
Add debug file extension to kldxref(8) after r288176
After r288176 kernel debug files have the extension .debug. They also
moved to /usr/lib/debug/boot/kernel by default so in the normal case
kldxref does not encounter them. A src.conf(5) setting may be used to
continue installing them in /boot/kernel though, so have kldxref skip
.debug files in addition to .symbols files.
Reported by: fabient
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/kldxref')
-rw-r--r-- | usr.sbin/kldxref/kldxref.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/kldxref/kldxref.c b/usr.sbin/kldxref/kldxref.c index c3784ef..1e81801 100644 --- a/usr.sbin/kldxref/kldxref.c +++ b/usr.sbin/kldxref/kldxref.c @@ -360,9 +360,12 @@ main(int argc, char *argv[]) fwrite(&ival, sizeof(ival), 1, fxref); reccnt = 0; } - /* skip non-files or .symbols entries */ + /* skip non-files and separate debug files */ if (p->fts_info != FTS_F) continue; + if (p->fts_namelen >= 6 && + strcmp(p->fts_name + p->fts_namelen - 6, ".debug") == 0) + continue; if (p->fts_namelen >= 8 && strcmp(p->fts_name + p->fts_namelen - 8, ".symbols") == 0) continue; |