diff --git a/tools/gdb/mknative-gdb b/tools/gdb/mknative-gdb index c860bcbfaf37..f2efbdcaf720 100644 --- a/tools/gdb/mknative-gdb +++ b/tools/gdb/mknative-gdb @@ -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 \