Source-Changes-HG archive

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

[src/trunk]: src/sys/conf If generating a gdb kernel and using dbsym, insert ...



details:   https://anonhg.NetBSD.org/src/rev/ca930057ba7d
branches:  trunk
changeset: 762223:ca930057ba7d
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Feb 17 18:47:13 2011 +0000

description:
If generating a gdb kernel and using dbsym, insert the symbols into it.
(This is useful when using the .gdb with an emulator so that ddb in the
emulator will have symbols).

diffstat:

 sys/conf/Makefile.kern.inc |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 3c21d59be274 -r ca930057ba7d sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc        Thu Feb 17 18:44:54 2011 +0000
+++ b/sys/conf/Makefile.kern.inc        Thu Feb 17 18:47:13 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.kern.inc,v 1.129 2011/01/04 01:52:30 matt Exp $
+#      $NetBSD: Makefile.kern.inc,v 1.130 2011/02/17 18:47:13 matt Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -249,6 +249,12 @@
 LINKFLAGS+=    ${LINKFLAGS_DEBUG}
 EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.gdb@}
 CTFFLAGS+=     -g
+SYSTEM_LD_TAIL+=; \
+       if grep '^\#define.*SYMTAB_SPACE' opt_ddbparam.h > /dev/null; then \
+               echo "${DBSYM} $@.gdb"; \
+               ${DBSYM} $@.gdb; \
+       fi
+
 .elifndef PROF
 LINKFLAGS+=    ${LINKFLAGS_NORMAL}
 .endif



Home | Main Index | Thread Index | Old Index