summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>2003-12-29 06:40:00 +0000
committerGreg Lehey <grog@FreeBSD.org>2003-12-29 06:40:00 +0000
commit01b4ca63ec640d20b7cefec294e849d1c2fe379c (patch)
treeaeb05a962867aa7118f35d5d9ead649696221ac8
parent410b51e72b11f89abf6e74449f3ef5c548ce1ec0 (diff)
Notes
-rw-r--r--sys/conf/kern.post.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk
index 2c59b7ee71b4..ecea0165d724 100644
--- a/sys/conf/kern.post.mk
+++ b/sys/conf/kern.post.mk
@@ -54,9 +54,10 @@ ${KERNEL_KO}: ${FULLKERNEL}
install.debug reinstall.debug: gdbinit
cd ${.CURDIR}; ${MAKE} -DINSTALL_DEBUG ${.TARGET:R}
+# Install gdbinit files for kernel debugging
gdbinit:
- sed < ${S}/../tools/debugscripts/dot.gdbinit > .gdbinit \
- "s:MODPATH:${.OBJDIR}/modules:"
+ grep -v '# XXX' ${S}/../tools/debugscripts/dot.gdbinit \
+ | sed "s:MODPATH:${.OBJDIR}/modules:" > .gdbinit
cp ${S}/../tools/debugscripts/gdbinit.kernel \
${S}/../tools/debugscripts/gdbinit.vinum ${.CURDIR}
cp ${S}/../tools/debugscripts/gdbinit.${MACHINE_ARCH} \