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/e85b55ce2be0
branches:  trunk
changeset: 946668:e85b55ce2be0
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 c391e3267717 -r e85b55ce2be0 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