Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/conf Pull up revision 1.21 (requested by thorpej in...



details:   https://anonhg.NetBSD.org/src/rev/a876558d7f49
branches:  netbsd-1-6
changeset: 529559:a876558d7f49
user:      he <he%NetBSD.org@localhost>
date:      Sat Nov 30 13:05:35 2002 +0000

description:
Pull up revision 1.21 (requested by thorpej in ticket #756):
  Build a .gdbinit in the kernel build directory.  The new
  .gdbinit will source all of the system-provided gdb scripts
  in sys/gdbscripts, as well as any files specified by the
  user in the GDBINIT make variable.

diffstat:

 sys/conf/Makefile.kern.inc |  19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r cff65024e2a0 -r a876558d7f49 sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc        Sat Nov 30 13:02:15 2002 +0000
+++ b/sys/conf/Makefile.kern.inc        Sat Nov 30 13:05:35 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.kern.inc,v 1.13.4.6 2002/08/17 16:02:38 lukem Exp $
+#      $NetBSD: Makefile.kern.inc,v 1.13.4.7 2002/11/30 13:05:35 he Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}. There are
@@ -140,7 +140,7 @@
 #      ${SYSTEM_LD} swapxxx.o
 #      ${SYSTEM_LD_TAIL}
 SYSTEM_OBJ?=   ${MD_OBJS} ${MI_OBJS} ${OBJS} ${LIBCOMPAT} ${LIBKERN}
-SYSTEM_DEP?=   Makefile ${SYSTEM_OBJ}
+SYSTEM_DEP?=   Makefile ${SYSTEM_OBJ} .gdbinit
 SYSTEM_LD_HEAD?=       @rm -f $@
 SYSTEM_LD?=    @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o; \
                ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} vers.o
@@ -327,6 +327,21 @@
 
 .endif
 
+.include "${S}/gdbscripts/Makefile.inc"
+
+EXTRA_CLEAN+= .gdbinit
+.gdbinit: Makefile ${S}/gdbscripts/Makefile.inc
+       @echo building GDB initialization file
+       rm -f .gdbinit
+.for __gdbinit in ${SYS_GDBINIT}
+       echo "source ${S}/gdbscripts/${__gdbinit}" >> .gdbinit
+.endfor
+.if defined(GDBINIT) && !empty(GDBINIT)
+.for __gdbinit in ${GDBINIT}
+       echo "source ${__gdbinit}" >> .gdbinit
+.endfor
+.endif
+
 ##
 ## the end
 ##



Home | Main Index | Thread Index | Old Index