Module Name: src
Committed By: christos
Date: Sat Dec 5 21:27:31 UTC 2020
Modified Files:
src/tools/gdb: mknative-gdb
Log Message:
Don't bother with gdbserver for archs that don't build it.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/tools/gdb/mknative-gdb
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tools/gdb/mknative-gdb
diff -u src/tools/gdb/mknative-gdb:1.14 src/tools/gdb/mknative-gdb:1.15
--- src/tools/gdb/mknative-gdb:1.14 Thu Sep 24 10:53:17 2020
+++ src/tools/gdb/mknative-gdb Sat Dec 5 16:27:31 2020
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: mknative-gdb,v 1.14 2020/09/24 14:53:17 christos Exp $
+# $NetBSD: mknative-gdb,v 1.15 2020/12/05 21:27:31 christos Exp $
#
# Shell script for generating all the constants needed for a native
# platform build of src/external/gpl3/gdb
@@ -218,6 +218,10 @@ get_gdb_libgdb () {
get_gdb_bingdbserver () {
local _CTF=$_GDB/bin/gdbserver
+
+ if [ ! -f $_CTF/arch/$_MACHINE_SUBDIR/config.h ]; then
+ return
+ fi
mkdir -p $_TOP/$_CTF/arch/$_MACHINE_SUBDIR
write_c $_CTF/arch/$_MACHINE_SUBDIR/config.h \