diff options
author | grog <grog@FreeBSD.org> | 2003-06-12 08:09:48 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 2003-06-12 08:09:48 +0000 |
commit | a23727d13de564fb84a3666e8cf6a76e4d52f229 (patch) | |
tree | 810050b55f180ecf00d753bf6af03ee1dd545704 /sys | |
parent | 3faa870a3bc4b6d526e9750465ddba528a2f3d9a (diff) | |
download | FreeBSD-src-a23727d13de564fb84a3666e8cf6a76e4d52f229.zip FreeBSD-src-a23727d13de564fb84a3666e8cf6a76e4d52f229.tar.gz |
If we're building a debug kernel, add target to install the .gdbinit files
from tools/debugscripts.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/conf/kern.post.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index 2eb6c8c..e6172b7 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -52,8 +52,16 @@ FULLKERNEL= ${KERNEL_KO} FULLKERNEL= ${KERNEL_KO}.debug ${KERNEL_KO}: ${FULLKERNEL} ${OBJCOPY} --strip-debug ${FULLKERNEL} ${KERNEL_KO} -install.debug reinstall.debug: +install.debug reinstall.debug: gdbinit cd ${.CURDIR}; ${MAKE} -DINSTALL_DEBUG ${.TARGET:R} + +gdbinit: + sed < ${S}/../tools/debugscripts/dot.gdbinit > .gdbinit \ + "s:MODPATH:modules${S}/modules:" + cp ${S}/../tools/debugscripts/gdbinit.kernel \ + ${S}/../tools/debugscripts/gdbinit.vinum ${.CURDIR} + cp ${S}/../tools/debugscripts/gdbinit.${MACHINE_ARCH} \ + ${.CURDIR}/gdbinit.machine .endif ${FULLKERNEL}: ${SYSTEM_DEP} vers.o |