Source-Changes-HG archive

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

[src/trunk]: src/tools/gdb grab the gdbserver version



details:   https://anonhg.NetBSD.org/src/rev/efcadfd53476
branches:  trunk
changeset: 955238:efcadfd53476
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Sep 24 14:53:17 2020 +0000

description:
grab the gdbserver version

diffstat:

 tools/gdb/Makefile     |  7 +++++--
 tools/gdb/mknative-gdb |  4 +++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diffs (40 lines):

diff -r 6c5c83976671 -r efcadfd53476 tools/gdb/Makefile
--- a/tools/gdb/Makefile        Thu Sep 24 14:14:18 2020 +0000
+++ b/tools/gdb/Makefile        Thu Sep 24 14:53:17 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.39 2020/09/23 23:21:29 christos Exp $
+#      $NetBSD: Makefile,v 1.40 2020/09/24 14:53:17 christos Exp $
 
 .include <bsd.hostinit.mk>
 
@@ -117,7 +117,10 @@
                (cd ${.OBJDIR}/.native/bfd && \
                        ${MKENV_BUILD_MAKE} bfd.h bfdver.h) && \
                (cd ${.OBJDIR}/.native/gdb && \
-                       ${MKENV_BUILD_MAKE} init.c version.c)
+                       ${MKENV_BUILD_MAKE} init.c version.c) && \
+               (if [ -d ${.OBJDIR}/.native/gdbserver ]; then \
+                       cd ${.OBJDIR}/.native/gdbserver && \
+                       ${MKENV_BUILD_MAKE} version-generated.cc; fi)
        @touch $@
 
 clean: clean.native
diff -r 6c5c83976671 -r efcadfd53476 tools/gdb/mknative-gdb
--- a/tools/gdb/mknative-gdb    Thu Sep 24 14:14:18 2020 +0000
+++ b/tools/gdb/mknative-gdb    Thu Sep 24 14:53:17 2020 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: mknative-gdb,v 1.13 2020/09/23 23:21:29 christos Exp $
+#      $NetBSD: mknative-gdb,v 1.14 2020/09/24 14:53:17 christos Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of src/external/gpl3/gdb
@@ -222,6 +222,8 @@
 
        write_c $_CTF/arch/$_MACHINE_SUBDIR/config.h \
                <$_TMPDIR/gdbserver/config.h
+       write_c $_CTF/arch/$_MACHINE_SUBDIR/version.cc \
+               <$_TMPDIR/gdbserver/version-generated.cc
 }
 
 ##### main #####



Home | Main Index | Thread Index | Old Index