CVS commit: src/external/gpl3/gdb/bin/gdbserver

2021-06-20 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun Jun 20 12:29:58 UTC 2021

Modified Files:
src/external/gpl3/gdb/bin/gdbserver: Makefile

Log Message:
gdbserver(1): Work around clang build failure.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/bin/gdbserver/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/bin/gdbserver/Makefile
diff -u src/external/gpl3/gdb/bin/gdbserver/Makefile:1.3 src/external/gpl3/gdb/bin/gdbserver/Makefile:1.4
--- src/external/gpl3/gdb/bin/gdbserver/Makefile:1.3	Thu Sep 24 14:53:35 2020
+++ src/external/gpl3/gdb/bin/gdbserver/Makefile	Sun Jun 20 12:29:58 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2020/09/24 14:53:35 christos Exp $
+#	$NetBSD: Makefile,v 1.4 2021/06/20 12:29:58 riastradh Exp $
 
 NOCTF=
 NOMAN=
@@ -30,6 +30,9 @@ CPPFLAGS+=	-I${.CURDIR} \
 		-I${DIST}/include \
 		${GCPPFLAGS:M-D*}
 
+# /usr/src/current/external/gpl3/gdb/bin/gdbserver/../../dist/gdb/nat/fork-inferior.c:497:15: error: 6 enumeration values not handled in switch: 'TARGET_WAITKIND_VFORK_DONE', 'TARGET_WAITKIND_IGNORE', 'TARGET_WAITKIND_NO_HISTORY'... [-Werror,-Wswitch]
+CXXFLAGS+=	${${ACTIVE_CC} == "clang":? -Wno-error=switch : }
+
 .include "../../Makefile.inc"
 .include 
 



CVS commit: src/external/gpl3/gdb/bin/gdbserver/arch/x86_64

2020-09-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Sep 24 14:54:03 UTC 2020

Added Files:
src/external/gpl3/gdb/bin/gdbserver/arch/x86_64: version.cc

Log Message:
Add the generated version file


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/bin/gdbserver/arch/x86_64/version.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/gpl3/gdb/bin/gdbserver/arch/x86_64/version.cc
diff -u /dev/null src/external/gpl3/gdb/bin/gdbserver/arch/x86_64/version.cc:1.1
--- /dev/null	Thu Sep 24 10:54:03 2020
+++ src/external/gpl3/gdb/bin/gdbserver/arch/x86_64/version.cc	Thu Sep 24 10:54:03 2020
@@ -0,0 +1,8 @@
+/* This file is automatically generated.  DO NOT EDIT! */
+/* Generated from: NetBSD: mknative-gdb,v 1.13 2020/09/23 23:21:29 christos Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
+
+#include "gdbsupport/version.h"
+const char version[] = "11.0.50.20200914-git";
+const char host_name[] = "x86_64--netbsd";
+const char target_name[] = "x86_64--netbsd";



CVS commit: src/external/gpl3/gdb/bin/gdbserver

2020-09-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Sep 24 14:53:35 UTC 2020

Modified Files:
src/external/gpl3/gdb/bin/gdbserver: Makefile

Log Message:
Add version.cc


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/bin/gdbserver/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/bin/gdbserver/Makefile
diff -u src/external/gpl3/gdb/bin/gdbserver/Makefile:1.2 src/external/gpl3/gdb/bin/gdbserver/Makefile:1.3
--- src/external/gpl3/gdb/bin/gdbserver/Makefile:1.2	Wed Sep 23 23:06:01 2020
+++ src/external/gpl3/gdb/bin/gdbserver/Makefile	Thu Sep 24 10:53:35 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.2 2020/09/24 03:06:01 kamil Exp $
+#	$NetBSD: Makefile,v 1.3 2020/09/24 14:53:35 christos Exp $
 
 NOCTF=
 NOMAN=
@@ -9,7 +9,7 @@ PROG=		gdbserver
 
 SERVER_SRCS+=	ax.cc debug.cc dll.cc hostio.cc hostio-errno.cc inferiors.cc mem-break.cc notif.cc
 SERVER_SRCS+=	regcache.cc remote-utils.cc server.cc symbol.cc target.cc
-SERVER_SRCS+=	tdesc.cc tracepoint.cc utils.cc waitstatus.c # version.c
+SERVER_SRCS+=	tdesc.cc tracepoint.cc utils.cc waitstatus.c version.cc
 
 NETBSD_SRCS=		netbsd-low.cc fork-child.cc fork-inferior.c netbsd-nat.c
 ARCH_SRCS=		netbsd-${MACHINE}-low.cc ${MACHINE}.c
@@ -57,4 +57,5 @@ CC:=			${CXX}
 CFLAGS:=		${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector -pthread
 
 .PATH: ${DIST}/gdbserver ${DIST}/gdb/nat ${DIST}/gdb/arch ${DIST}/gdb/target \
+	${.CURDIR}/arch/${GDB_MACHINE_ARCH} \
 	${DIST}/../lib/libgdbsupport/arch/${GDB_MACHINE_ARCH}



CVS commit: src/external/gpl3/gdb/bin/gdbserver

2020-09-23 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Sep 24 03:06:01 UTC 2020

Modified Files:
src/external/gpl3/gdb/bin/gdbserver: Makefile

Log Message:
Make gdbserver almost work

The only missing thing is the lack of generated version.c.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gdb/bin/gdbserver/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/bin/gdbserver/Makefile
diff -u src/external/gpl3/gdb/bin/gdbserver/Makefile:1.1 src/external/gpl3/gdb/bin/gdbserver/Makefile:1.2
--- src/external/gpl3/gdb/bin/gdbserver/Makefile:1.1	Wed Sep 23 23:36:59 2020
+++ src/external/gpl3/gdb/bin/gdbserver/Makefile	Thu Sep 24 03:06:01 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.1 2020/09/23 23:36:59 christos Exp $
+#	$NetBSD: Makefile,v 1.2 2020/09/24 03:06:01 kamil Exp $
 
 NOCTF=
 NOMAN=
@@ -7,7 +7,10 @@ NOMAN=
 
 PROG=		gdbserver
 
-SERVER_SRCS=		server.cc
+SERVER_SRCS+=	ax.cc debug.cc dll.cc hostio.cc hostio-errno.cc inferiors.cc mem-break.cc notif.cc
+SERVER_SRCS+=	regcache.cc remote-utils.cc server.cc symbol.cc target.cc
+SERVER_SRCS+=	tdesc.cc tracepoint.cc utils.cc waitstatus.c # version.c
+
 NETBSD_SRCS=		netbsd-low.cc fork-child.cc fork-inferior.c netbsd-nat.c
 ARCH_SRCS=		netbsd-${MACHINE}-low.cc ${MACHINE}.c
 SRCS=		${SERVER_SRCS} ${NETBSD_SRCS} ${ARCH_SRCS}
@@ -30,25 +33,20 @@ CPPFLAGS+=	-I${.CURDIR} \
 .include "../../Makefile.inc"
 .include 
 
-LIBGDB!=	 cd ${.CURDIR}/../../lib/libgdb	   && ${PRINTOBJDIR}
 LIBBFD!=	 cd ${.CURDIR}/../../lib/libbfd	   && ${PRINTOBJDIR}
 LIBGNULIBDIR!=	 cd ${.CURDIR}/../../lib/libgnulib	   && ${PRINTOBJDIR}
 LIBGDBSUPPORTDIR!=   cd ${.CURDIR}/../../lib/libgdbsupport && ${PRINTOBJDIR}
 LIBIBERTYDIR!=	 cd ${.CURDIR}/../../lib/libiberty	   && ${PRINTOBJDIR}
 
-LDADD+= -L${LIBGDB} -lgdb \
-	-L${LIBGDBSUPPORTDIR} -lgdbsupport \
+LDADD+= -L${LIBGDBSUPPORTDIR} -lgdbsupport \
 	-L${LIBGNULIBDIR} -lgnulib \
-	-L${LIBBFD} -lbfd \
 	-L${LIBIBERTYDIR} -liberty \
-	-lintl -lz
+	-lintl
 
-DPADD+=	${LIBGDB}/libgdb.a \
-	${LIBGDBSUPPORTDIR}/libgdbsupport.a \
+DPADD+=	${LIBGDBSUPPORTDIR}/libgdbsupport.a \
 	${LIBGNULIBDIR}/libgnulib.a \
-	${LIBBFD}/libbfd.a \
 	${LIBIBERTYDIR}/libiberty.a \
-	${LIBINTL} ${LIBZ}
+	${LIBINTL}
 
 .include 
 
@@ -58,4 +56,5 @@ HOST_CC:=		${HOST_CXX}
 CC:=			${CXX}
 CFLAGS:=		${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector -pthread
 
-.PATH: ${DIST}/gdbserver ${DIST}/gdb/nat ${DIST}/gdb/arch
+.PATH: ${DIST}/gdbserver ${DIST}/gdb/nat ${DIST}/gdb/arch ${DIST}/gdb/target \
+	${DIST}/../lib/libgdbsupport/arch/${GDB_MACHINE_ARCH}



CVS commit: src/external/gpl3/gdb/bin/gdbserver

2020-09-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Sep 23 23:37:00 UTC 2020

Added Files:
src/external/gpl3/gdb/bin/gdbserver: Makefile
src/external/gpl3/gdb/bin/gdbserver/arch/x86_64: config.h

Log Message:
Add build glue (does not link)


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/bin/gdbserver/Makefile
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/bin/gdbserver/arch/x86_64/config.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/gpl3/gdb/bin/gdbserver/Makefile
diff -u /dev/null src/external/gpl3/gdb/bin/gdbserver/Makefile:1.1
--- /dev/null	Wed Sep 23 19:37:00 2020
+++ src/external/gpl3/gdb/bin/gdbserver/Makefile	Wed Sep 23 19:36:59 2020
@@ -0,0 +1,61 @@
+#	$NetBSD: Makefile,v 1.1 2020/09/23 23:36:59 christos Exp $
+
+NOCTF=
+NOMAN=
+.include 
+.include "../Makefile.inc"
+
+PROG=		gdbserver
+
+SERVER_SRCS=		server.cc
+NETBSD_SRCS=		netbsd-low.cc fork-child.cc fork-inferior.c netbsd-nat.c
+ARCH_SRCS=		netbsd-${MACHINE}-low.cc ${MACHINE}.c
+SRCS=		${SERVER_SRCS} ${NETBSD_SRCS} ${ARCH_SRCS}
+CPPFLAGS+=	-I${.CURDIR} \
+		-I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \
+		-I${.CURDIR}/../../lib/libgnulib/arch/${GDB_MACHINE_ARCH}/gnulib \
+		-I${DIST}/gdb \
+		-I${DIST}/gdbserver \
+		-I${DIST}/gdbsupport \
+		-I${DIST}/gdb/regformats \
+		-I${DIST}/gdb/config \
+		-I${DIST}/gnulib/import \
+		-I${DIST} \
+		-I${.CURDIR}/../../lib/libgdbsupport/arch/${GDB_MACHINE_ARCH} \
+		-I${.CURDIR}/../../lib/libgnulib/arch/${GDB_MACHINE_ARCH} \
+		-I${.CURDIR}/../../lib/libgnulib/arch/${GDB_MACHINE_ARCH}/gnulib/import \
+		-I${DIST}/include \
+		${GCPPFLAGS:M-D*}
+
+.include "../../Makefile.inc"
+.include 
+
+LIBGDB!=	 cd ${.CURDIR}/../../lib/libgdb	   && ${PRINTOBJDIR}
+LIBBFD!=	 cd ${.CURDIR}/../../lib/libbfd	   && ${PRINTOBJDIR}
+LIBGNULIBDIR!=	 cd ${.CURDIR}/../../lib/libgnulib	   && ${PRINTOBJDIR}
+LIBGDBSUPPORTDIR!=   cd ${.CURDIR}/../../lib/libgdbsupport && ${PRINTOBJDIR}
+LIBIBERTYDIR!=	 cd ${.CURDIR}/../../lib/libiberty	   && ${PRINTOBJDIR}
+
+LDADD+= -L${LIBGDB} -lgdb \
+	-L${LIBGDBSUPPORTDIR} -lgdbsupport \
+	-L${LIBGNULIBDIR} -lgnulib \
+	-L${LIBBFD} -lbfd \
+	-L${LIBIBERTYDIR} -liberty \
+	-lintl -lz
+
+DPADD+=	${LIBGDB}/libgdb.a \
+	${LIBGDBSUPPORTDIR}/libgdbsupport.a \
+	${LIBGNULIBDIR}/libgnulib.a \
+	${LIBBFD}/libbfd.a \
+	${LIBIBERTYDIR}/libiberty.a \
+	${LIBINTL} ${LIBZ}
+
+.include 
+
+# Force c++
+CWARNFLAGS.clang+=	-Wno-deprecated
+HOST_CC:=		${HOST_CXX}
+CC:=			${CXX}
+CFLAGS:=		${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector -pthread
+
+.PATH: ${DIST}/gdbserver ${DIST}/gdb/nat ${DIST}/gdb/arch

Index: src/external/gpl3/gdb/bin/gdbserver/arch/x86_64/config.h
diff -u /dev/null src/external/gpl3/gdb/bin/gdbserver/arch/x86_64/config.h:1.1
--- /dev/null	Wed Sep 23 19:37:00 2020
+++ src/external/gpl3/gdb/bin/gdbserver/arch/x86_64/config.h	Wed Sep 23 19:36:59 2020
@@ -0,0 +1,513 @@
+/* This file is automatically generated.  DO NOT EDIT! */
+/* Generated from: NetBSD: mknative-gdb,v 1.12 2020/09/17 16:54:31 christos Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
+
+/* config.h.  Generated from config.in by configure.  */
+/* config.in.  Generated from configure.ac by autoheader.  */
+
+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
+   systems. This function is required for `alloca.c' support on those systems.
+   */
+/* #undef CRAY_STACKSEG_END */
+
+/* Define to 1 if std::thread works. */
+#define CXX_STD_THREAD 1
+
+/* Define to 1 if using `alloca.c'. */
+/* #undef C_ALLOCA */
+
+/* Define to 1 if translation of program messages to the user's native
+   language is requested. */
+#define ENABLE_NLS 1
+
+/* Define if self-testing features should be enabled */
+#define GDB_SELF_TEST 1
+
+/* Define to 1 if you have `alloca', as a function or macro. */
+#define HAVE_ALLOCA 1
+
+/* Define to 1 if you have  and it should be used (not on Ultrix).
+   */
+/* #undef HAVE_ALLOCA_H */
+
+/* Define to 1 if you have the  header file. */
+#define HAVE_ARPA_INET_H 1
+
+/* define if the compiler supports basic C++11 syntax */
+#define HAVE_CXX11 1
+
+/* Define to 1 if you have the declaration of `ADDR_NO_RANDOMIZE', and to 0 if
+   you don't. */
+#define HAVE_DECL_ADDR_NO_RANDOMIZE 0
+
+/* Define to 1 if you have the declaration of `asprintf', and to 0 if you
+   don't. */
+#define HAVE_DECL_ASPRINTF 1
+
+/* Define to 1 if you have the declaration of `basename(char *)', and to 0 if
+   you don't. */
+#define HAVE_DECL_BASENAME 0
+
+/* Define to 1 if you have the declaration of `ffs', and to 0 if you don't. */
+#define HAVE_DECL_FFS 1
+
+/* Define to 1 if you have the declaration of `perror', and to 0 if you don't.
+   */
+#define HAVE_DECL_PERROR 1
+
+/* Define to 1 if you have the declaration of `snprintf', and to 0 if you
+   don't. */
+#define