Don't bother with gdbserver for archs that don't build it.

This commit is contained in:
christos 2020-12-05 21:27:31 +00:00
parent 992125b748
commit 575adc5486
1 changed files with 5 additions and 1 deletions

View File

@ -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 \