From 222aa33abcb594647d55b6d330a71e4f427f6804 Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Thu, 12 Jun 2003 08:09:48 +0000 Subject: [PATCH] If we're building a debug kernel, add target to install the .gdbinit files from tools/debugscripts. --- sys/conf/kern.post.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index 2eb6c8c23bba..e6172b74807e 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