Source-Changes-HG archive

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

[src/trunk]: src/tools/gdb Don't bother with gdbserver for archs that don't b...



details:   https://anonhg.NetBSD.org/src/rev/f10a95d52bdb
branches:  trunk
changeset: 1016886:f10a95d52bdb
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Dec 05 21:27:31 2020 +0000

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

diffstat:

 tools/gdb/mknative-gdb |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 182138d79ff9 -r f10a95d52bdb tools/gdb/mknative-gdb
--- a/tools/gdb/mknative-gdb    Sat Dec 05 21:27:06 2020 +0000
+++ b/tools/gdb/mknative-gdb    Sat Dec 05 21:27:31 2020 +0000
@@ -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_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 \



Home | Main Index | Thread Index | Old Index