CVS commit: src/external/gpl3/gdb/dist/gnulib/import

2021-07-06 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Jul  6 12:41:00 UTC 2021

Modified Files:
src/external/gpl3/gdb/dist/gnulib/import: canonicalize-lgpl.c

Log Message:
Remote -O0 hack for alpha; root cause has been addressed.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c

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/dist/gnulib/import/canonicalize-lgpl.c
diff -u src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c:1.2 src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c:1.3
--- src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c:1.2	Sat May  8 12:23:47 2021
+++ src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c	Tue Jul  6 12:41:00 2021
@@ -114,13 +114,6 @@ alloc_failed (void)
holds the same value as the value returned.  */
 
 char *
-#ifdef __alpha__
-/*
- * toolchain/56153
- * GCC 10 and 9 miscompile malloca() macro for alpha.
- */
-__attribute__((optimize("O0")))
-#endif
 __realpath (const char *name, char *resolved)
 {
   char *rpath, *dest, *extra_buf = NULL;



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/dist/gdb

2021-06-03 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Fri Jun  4 01:42:14 UTC 2021

Modified Files:
src/external/gpl3/gdb/dist/gdb: aarch64-nbsd-tdep.c

Log Message:
Add missing nbsd_init_abi() call to aarch64_nbsd_init_abi().

Fix tests/usr.bin/gdb/t_regress:pie on aarch64eb (types of auxv was
misinterpreted), and hopefully other strange behaviors on aarch64{,eb}.

This is a regression introduced in GDB11. Neither gdb.old nor release
branches are affected.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c

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/dist/gdb/aarch64-nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.7 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.8
--- src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.7	Fri Dec 11 18:23:25 2020
+++ src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c	Fri Jun  4 01:42:14 2021
@@ -182,6 +182,8 @@ aarch64_nbsd_init_abi (struct gdbarch_in
 {
   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
 
+  nbsd_init_abi (info, gdbarch);
+
   set_solib_svr4_fetch_link_map_offsets (gdbarch,
 	 svr4_lp64_fetch_link_map_offsets);
 



CVS commit: src/external/gpl3/gdb/lib/libgdb

2021-05-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sun May 30 02:23:25 UTC 2021

Modified Files:
src/external/gpl3/gdb/lib/libgdb: Makefile

Log Message:
Always use C++17 string_view, the emulation is just broken.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/external/gpl3/gdb/lib/libgdb/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/lib/libgdb/Makefile
diff -u src/external/gpl3/gdb/lib/libgdb/Makefile:1.29 src/external/gpl3/gdb/lib/libgdb/Makefile:1.30
--- src/external/gpl3/gdb/lib/libgdb/Makefile:1.29	Sun Dec  6 04:08:53 2020
+++ src/external/gpl3/gdb/lib/libgdb/Makefile	Sun May 30 02:23:25 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.29 2020/12/06 04:08:53 christos Exp $
+#	$NetBSD: Makefile,v 1.30 2021/05/30 02:23:25 joerg Exp $
 
 NOCTF=
 HOSTPROG_CXX=   1
@@ -47,7 +47,7 @@ CWARNFLAGS.clang+=	-Wno-switch
 CWARNFLAGS.clang+=	-Wno-deprecated
 HOST_CC:=		${HOST_CXX}
 CC:=			${CXX}
-CFLAGS:=		${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
+CFLAGS:=		${CXXFLAGS} -std=gnu++17 -Wno-error=stack-protector
 
 .PATH: ${DIST}/gdb ${DIST}/gdb/arch ${DIST}/gdb/mi ${DIST}/gdb/cli  \
 ${DIST}/gdb/tui ${DIST}/gdb/python ${DIST}/gdb/common ${DIST}/gdb/target \



CVS commit: src/external/gpl3/gdb/dist/gnulib/import

2021-05-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat May  8 12:23:47 UTC 2021

Modified Files:
src/external/gpl3/gdb/dist/gnulib/import: canonicalize-lgpl.c

Log Message:
PR/56153: Rin Okuyama: alpha miscompiles malloca() macro.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c

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/dist/gnulib/import/canonicalize-lgpl.c
diff -u src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c:1.1.1.1 src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c:1.2
--- src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c:1.1.1.1	Mon Sep 14 21:43:50 2020
+++ src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c	Sat May  8 08:23:47 2021
@@ -114,6 +114,13 @@ alloc_failed (void)
holds the same value as the value returned.  */
 
 char *
+#ifdef __alpha__
+/*
+ * toolchain/56153
+ * GCC 10 and 9 miscompile malloca() macro for alpha.
+ */
+__attribute__((optimize("O0")))
+#endif
 __realpath (const char *name, char *resolved)
 {
   char *rpath, *dest, *extra_buf = NULL;



CVS commit: src/external/gpl3/gdb/lib/libctf

2021-04-26 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Apr 26 23:51:08 UTC 2021

Removed Files:
src/external/gpl3/gdb/lib/libctf: ctf-error.h

Log Message:
Remove accidentally committed autogen file.
Should fix periodic snapshot builds with RO mounted /usr/src.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/external/gpl3/gdb/lib/libctf/ctf-error.h

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



CVS commit: src/external/gpl3/gdb/lib

2021-04-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Apr 26 17:26:35 UTC 2021

Added Files:
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb: targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64el: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libctf: ctf-error.h
src/external/gpl3/gdb/lib/libctf/arch/mipsn64el: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64el: config.h defs.mk
gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64el: config.h defs.mk
init.c jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64el: defs.mk
src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64el/gdbsupport:
config.h
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import:
alloca.h ctype.h dirent.h fcntl.h fnmatch.h glob.h inttypes.h
limits.h locale.h math.h signal.h stdint.h stdio.h stdlib.h
string.h time.h unistd.h wchar.h wctype.h
src/external/gpl3/gdb/lib/libiberty/arch/mipsn64el: config.h defs.mk
src/external/gpl3/gdb/lib/libopcodes/arch/mipsn64el: config.h defs.mk
src/external/gpl3/gdb/lib/libreadline/arch/mipsn64el: config.h defs.mk

Log Message:
regen for mipsn64el


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/targmatch.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64el/bfd-in3.h \
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64el/bfd.h \
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64el/bfd_stdint.h \
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64el/bfdver.h \
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64el/config.h \
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64el/defs.mk \
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64el/targmatch.h
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/lib/libctf/ctf-error.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libctf/arch/mipsn64el/config.h \
src/external/gpl3/gdb/lib/libctf/arch/mipsn64el/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64el/config.h \
src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64el/defs.mk \
src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64el/gstdint.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64el/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64el/defs.mk \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64el/init.c \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64el/jit-reader.h \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64el/observer.h \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64el/observer.inc \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64el/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64el/xml-builtin.c
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64el/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64el/gdbsupport/config.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/config.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/alloca.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/ctype.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/dirent.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/fcntl.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/fnmatch.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/glob.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/inttypes.h 
\
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/limits.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/locale.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/math.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/signal.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/stdint.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/stdio.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/stdlib.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/string.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/time.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/unistd.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/wchar.h \

CVS commit: src/external/gpl3/gdb/lib

2021-04-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr 25 23:21:10 UTC 2021

Added Files:
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk
src/external/gpl3/gdb/lib/libctf/arch/mipsn64eb: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64eb: config.h defs.mk
gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb: config.h defs.mk
init.c jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64eb: defs.mk
src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64eb/gdbsupport:
config.h
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import:
alloca.h ctype.h dirent.h fcntl.h fnmatch.h glob.h inttypes.h
limits.h locale.h math.h signal.h stdint.h stdio.h stdlib.h
string.h time.h unistd.h wchar.h wctype.h
src/external/gpl3/gdb/lib/libiberty/arch/mipsn64eb: config.h defs.mk
src/external/gpl3/gdb/lib/libopcodes/arch/mipsn64eb: config.h defs.mk
src/external/gpl3/gdb/lib/libreadline/arch/mipsn64eb: config.h defs.mk

Log Message:
regen for mipsn64eb


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/bfd-in3.h \
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/bfd.h \
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/bfd_stdint.h \
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/bfdver.h \
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/config.h \
src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libctf/arch/mipsn64eb/config.h \
src/external/gpl3/gdb/lib/libctf/arch/mipsn64eb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64eb/config.h \
src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64eb/defs.mk \
src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64eb/gstdint.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/defs.mk \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/init.c \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/jit-reader.h \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/observer.h \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/observer.inc \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/xml-builtin.c
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64eb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64eb/gdbsupport/config.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/config.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/alloca.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/ctype.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/dirent.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/fcntl.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/fnmatch.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/glob.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/inttypes.h 
\
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/limits.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/locale.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/math.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/signal.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/stdint.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/stdio.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/stdlib.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/string.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/time.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/unistd.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/wchar.h \
src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/wctype.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libiberty/arch/mipsn64eb/config.h \
src/external/gpl3/gdb/lib/libiberty/arch/mipsn64eb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libopcodes/arch/mipsn64eb/config.h \
src/external/gpl3/gdb/lib/libopcodes/arch/mipsn64eb/defs.mk

CVS commit: src/external/gpl3/gdb/dist

2021-04-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr 25 23:18:42 UTC 2021

Modified Files:
src/external/gpl3/gdb/dist: config.sub

Log Message:
add mipsn64 targets


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/dist/config.sub

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/dist/config.sub
diff -u src/external/gpl3/gdb/dist/config.sub:1.12 src/external/gpl3/gdb/dist/config.sub:1.13
--- src/external/gpl3/gdb/dist/config.sub:1.12	Mon Sep 14 22:05:15 2020
+++ src/external/gpl3/gdb/dist/config.sub	Sun Apr 25 19:18:42 2021
@@ -1191,6 +1191,7 @@ case $cpu-$vendor in
 			| mips | mipsbe | mipseb | mipsel | mipsle \
 			| mips16 \
 			| mips64 | mips64eb | mips64el \
+			| mipsn64 | mipsn64eb | mipsn64el \
 			| mips64octeon | mips64octeonel \
 			| mips64orion | mips64orionel \
 			| mips64r5900 | mips64r5900el \



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-12-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Dec 14 12:34:07 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: c-exp.y

Log Message:
Initialize namelen


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/gdb/c-exp.y

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/dist/gdb/c-exp.y
diff -u src/external/gpl3/gdb/dist/gdb/c-exp.y:1.3 src/external/gpl3/gdb/dist/gdb/c-exp.y:1.4
--- src/external/gpl3/gdb/dist/gdb/c-exp.y:1.3	Sun Dec 13 16:50:47 2020
+++ src/external/gpl3/gdb/dist/gdb/c-exp.y	Mon Dec 14 12:34:07 2020
@@ -2614,7 +2614,7 @@ get_namelen (const char *tokstart, bool 
   int c;
   int namelen;
 
-  for (c = tokstart[namelen];
+  for (namelen = 0, c = tokstart[namelen];
(c == '_' || c == '$' || (dot && c == '.') || c_ident_is_alnum (c) || c == '<');)
 {
   /* Template parameter lists are part of the name.



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-12-13 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Dec 14 02:05:08 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: nbsd-nat.c

Log Message:
Add some precautions for platforms without PT_STEP support.

"nat/gdb_ptrace.h" defines PT_STEP as 9, if it is not defined. nat-ptrace.c
depends on this; inf_ptrace_target::resume() uses PT_STEP unconditionally
when its ``step'' argument is non-zero. Therefore,

- Add comment that nbsd-nat.c should include  directly,
  instead of "nat/gdb_ptrace.h".

- Add gdb_assert(step == 0) in nbsd_nat_target::resume() ifndef PT_STEP,
  before calling inf_ptrace_target::resume().


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c

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/dist/gdb/nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.21 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.22
--- src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.21	Mon Dec 14 02:01:03 2020
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.c	Mon Dec 14 02:05:07 2020
@@ -27,6 +27,9 @@
 #include "gdbarch.h"
 
 #include 
+/* Use  directly, instead of "nat/gdb_ptrace.h".  Otherwise,
+   PT_STEP will be defined unintentionally, which breaks platforms without
+   PT_STEP support.  */
 #include 
 #include 
 #include 
@@ -539,6 +542,7 @@ nbsd_nat_target::resume (ptid_t ptid, in
 	nbsd_resume (this, ptid_t (inf->pid, 0, 0), step, signal);
 }
 #else
+gdb_assert(step == 0);
 if (ptid.pid () == -1)
   ptid = inferior_ptid;
 inf_ptrace_target::resume (ptid, step, signal); 



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-12-13 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Dec 14 02:01:03 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: nbsd-nat.c

Log Message:
Revert previous as per request from kamil; now, arm/ptrace.h does not
expose unimplemented PT_STEP.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c

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/dist/gdb/nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.20 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.21
--- src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.20	Thu Dec 10 07:14:58 2020
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.c	Mon Dec 14 02:01:03 2020
@@ -458,7 +458,7 @@ nbsd_nat_target::info_proc (const char *
   return true;
 }
 
-#if defined(PT_STEP) && !defined(__arm__)
+#ifdef PT_STEP
 /* Resume execution of a specified PTID, that points to a process or a thread
within a process.  If one thread is specified, all other threads are
suspended.  If STEP is nonzero, single-step it.  If SIGNAL is nonzero,
@@ -530,7 +530,7 @@ nbsd_resume(nbsd_nat_target *target, pti
 void
 nbsd_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signal)
 {
-#if defined(PT_STEP) && !defined(__arm__)
+#ifdef PT_STEP
   if (minus_one_ptid != ptid)
 nbsd_resume (this, ptid, step, signal);
   else



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-12-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 13 16:50:47 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: c-exp.y

Log Message:
Improve previous: generated names end with .[[:digits:]] so look for that
instead.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/c-exp.y

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/dist/gdb/c-exp.y
diff -u src/external/gpl3/gdb/dist/gdb/c-exp.y:1.2 src/external/gpl3/gdb/dist/gdb/c-exp.y:1.3
--- src/external/gpl3/gdb/dist/gdb/c-exp.y:1.2	Fri Dec 11 13:25:45 2020
+++ src/external/gpl3/gdb/dist/gdb/c-exp.y	Sun Dec 13 11:50:47 2020
@@ -2608,7 +2608,63 @@ static bool last_was_structop;
 /* Depth of parentheses.  */
 static int paren_depth;
 
-static const char PART[] = ".part.";
+static int
+get_namelen (const char *tokstart, bool dot)
+{
+  int c;
+  int namelen;
+
+  for (c = tokstart[namelen];
+   (c == '_' || c == '$' || (dot && c == '.') || c_ident_is_alnum (c) || c == '<');)
+{
+  /* Template parameter lists are part of the name.
+	 FIXME: This mishandles `print $a<4&&$a>3'.  */
+
+  if (c == '<')
+	{
+	  if (! is_cast_operator (tokstart, namelen))
+	{
+	  /* Scan ahead to get rest of the template specification.  Note
+		 that we look ahead only when the '<' adjoins non-whitespace
+		 characters; for comparison expressions, e.g. "a < b > c",
+		 there must be spaces before the '<', etc. */
+	  const char *p = find_template_name_end (tokstart + namelen);
+
+	  if (p)
+		namelen = p - tokstart;
+	}
+	  break;
+	}
+  c = tokstart[++namelen];
+}
+  return namelen;
+}
+
+static bool is_generated_symbol (const char *symbol)
+{
+  /* generated symbol are of the form:
+
+ .
+ .isra.
+ .part.
+
+So we see if the symbol ends with .
+   */
+
+  int len = get_namelen (symbol, true);
+  int ndigits;
+
+  if (len-- == 0)
+return false;
+
+  for (ndigits = 0; ndigits <= len && ISDIGIT(symbol[len - ndigits]); ndigits++)
+continue;
+
+  if (ndigits == 0)
+return false;
+
+  return symbol[len - ndigits] == '.';
+}
 
 /* Read one token, getting characters through lexptr.  */
 
@@ -2725,13 +2781,6 @@ lex_one_token (struct parser_state *par_
   return c;
 
 case '.':
-  /* Gross! recognize .part.N */
-  if (strncmp(pstate->lexptr, PART, sizeof(PART) - 1) == 0 &&
-	ISDIGIT(pstate->lexptr[sizeof(PART) - 1]) &&
-	pstate->lexptr[sizeof(PART)] == '\0')
-	{
-	  break;
-	}
   /* Might be a floating point number.  */
   if (pstate->lexptr[1] < '0' || pstate->lexptr[1] > '9')
 	{
@@ -2895,30 +2944,7 @@ lex_one_token (struct parser_state *par_
 error (_("Invalid character '%c' in expression."), c);
 
   /* It's a name.  See how long it is.  */
-  namelen = 0;
-  for (c = tokstart[namelen];
-   (c == '_' || c == '$' || c == '.' || c_ident_is_alnum (c) || c == '<');)
-{
-  /* Template parameter lists are part of the name.
-	 FIXME: This mishandles `print $a<4&&$a>3'.  */
-
-  if (c == '<')
-	{
-	  if (! is_cast_operator (tokstart, namelen))
-	{
-	  /* Scan ahead to get rest of the template specification.  Note
-		 that we look ahead only when the '<' adjoins non-whitespace
-		 characters; for comparison expressions, e.g. "a < b > c",
-		 there must be spaces before the '<', etc. */
-	  const char *p = find_template_name_end (tokstart + namelen);
-
-	  if (p)
-		namelen = p - tokstart;
-	}
-	  break;
-	}
-  c = tokstart[++namelen];
-}
+  namelen = get_namelen (tokstart, is_generated_symbol (tokstart));
 
   /* The token "if" terminates the expression and is NOT removed from
  the input stream.  It doesn't count if it appears in the



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-12-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Dec 11 18:25:45 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: c-exp.y

Log Message:
PR/55851: Martin Husemann: recognize .part. names
This is gross; perhaps we should hide them completely (not print them
in stack traces etc.)


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.9 -r1.2 src/external/gpl3/gdb/dist/gdb/c-exp.y

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/dist/gdb/c-exp.y
diff -u src/external/gpl3/gdb/dist/gdb/c-exp.y:1.1.1.9 src/external/gpl3/gdb/dist/gdb/c-exp.y:1.2
--- src/external/gpl3/gdb/dist/gdb/c-exp.y:1.1.1.9	Mon Sep 14 21:43:28 2020
+++ src/external/gpl3/gdb/dist/gdb/c-exp.y	Fri Dec 11 13:25:45 2020
@@ -2608,6 +2608,8 @@ static bool last_was_structop;
 /* Depth of parentheses.  */
 static int paren_depth;
 
+static const char PART[] = ".part.";
+
 /* Read one token, getting characters through lexptr.  */
 
 static int
@@ -2723,6 +2725,13 @@ lex_one_token (struct parser_state *par_
   return c;
 
 case '.':
+  /* Gross! recognize .part.N */
+  if (strncmp(pstate->lexptr, PART, sizeof(PART) - 1) == 0 &&
+	ISDIGIT(pstate->lexptr[sizeof(PART) - 1]) &&
+	pstate->lexptr[sizeof(PART)] == '\0')
+	{
+	  break;
+	}
   /* Might be a floating point number.  */
   if (pstate->lexptr[1] < '0' || pstate->lexptr[1] > '9')
 	{
@@ -2888,7 +2897,7 @@ lex_one_token (struct parser_state *par_
   /* It's a name.  See how long it is.  */
   namelen = 0;
   for (c = tokstart[namelen];
-   (c == '_' || c == '$' || c_ident_is_alnum (c) || c == '<');)
+   (c == '_' || c == '$' || c == '.' || c_ident_is_alnum (c) || c == '<');)
 {
   /* Template parameter lists are part of the name.
 	 FIXME: This mishandles `print $a<4&&$a>3'.  */



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-12-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Dec 11 18:23:25 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: Makefile.in aarch64-nbsd-tdep.c

Log Message:
fix aarch64 crossgdb


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/Makefile.in
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c

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/dist/gdb/Makefile.in
diff -u src/external/gpl3/gdb/dist/gdb/Makefile.in:1.4 src/external/gpl3/gdb/dist/gdb/Makefile.in:1.5
--- src/external/gpl3/gdb/dist/gdb/Makefile.in:1.4	Mon Sep 14 22:05:18 2020
+++ src/external/gpl3/gdb/dist/gdb/Makefile.in	Fri Dec 11 13:23:25 2020
@@ -667,6 +667,7 @@ TARGET_OBS = @TARGET_OBS@
 ALL_64_TARGET_OBS = \
 	aarch64-fbsd-tdep.o \
 	aarch64-linux-tdep.o \
+	aarch64-nbsd-tdep.o \
 	aarch64-newlib-tdep.o \
 	aarch64-ravenscar-thread.o \
 	aarch64-tdep.o \

Index: src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.6 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.7
--- src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.6	Sat Jul 13 17:55:52 2019
+++ src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c	Fri Dec 11 13:23:25 2020
@@ -194,6 +194,7 @@ aarch64_nbsd_init_abi (struct gdbarch_in
 (gdbarch, aarch64_nbsd_iterate_over_regset_sections);
 }
 
+void _initialize_aarch64_nbsd_tdep (void);
 void
 _initialize_aarch64_nbsd_tdep (void)
 {



CVS commit: src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib

2020-12-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Dec 11 18:22:11 UTC 2020

Modified Files:
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import:
unistd.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import/unistd.h

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/lib/libgnulib/arch/aarch64/gnulib/config.h
diff -u src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/config.h:1.1 src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/config.h:1.2
--- src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/config.h:1.1	Sun Dec  6 00:23:05 2020
+++ src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/config.h	Fri Dec 11 13:22:11 2020
@@ -1,5 +1,5 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gdb,v 1.14 2020/09/24 14:53:17 christos Exp  */
+/* Generated from: NetBSD: mknative-gdb,v 1.15 2020/12/05 21:27: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.  */
@@ -796,7 +796,7 @@
 #define HAVE_SYS_PARAM_H 1
 
 /* Define to 1 if you have the  header file. */
-/* #undef HAVE_SYS_RANDOM_H */
+#define HAVE_SYS_RANDOM_H 1
 
 /* Define to 1 if you have the  header file. */
 #define HAVE_SYS_SOCKET_H 1

Index: src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import/unistd.h
diff -u src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import/unistd.h:1.1 src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import/unistd.h:1.2
--- src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import/unistd.h:1.1	Sun Dec  6 00:23:05 2020
+++ src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import/unistd.h	Fri Dec 11 13:22:11 2020
@@ -1,5 +1,5 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gdb,v 1.14 2020/09/24 14:53:17 christos Exp  */
+/* Generated from: NetBSD: mknative-gdb,v 1.15 2020/12/05 21:27:31 christos Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
@@ -129,7 +129,7 @@
 #if (0 || defined GNULIB_POSIXCHECK) \
 && ((defined __APPLE__ && defined __MACH__) || defined __sun \
 || defined __ANDROID__) \
-&& 0 \
+&& 1 \
 && !defined __GLIBC__
 # include 
 #endif



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-12-10 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Dec 10 16:07:26 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: sh-nbsd-tdep.c

Log Message:
Avoid an unused variable (breaking the build)


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gdb/dist/gdb/sh-nbsd-tdep.c

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/dist/gdb/sh-nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/sh-nbsd-tdep.c:1.10 src/external/gpl3/gdb/dist/gdb/sh-nbsd-tdep.c:1.11
--- src/external/gpl3/gdb/dist/gdb/sh-nbsd-tdep.c:1.10	Sun Dec  6 04:08:51 2020
+++ src/external/gpl3/gdb/dist/gdb/sh-nbsd-tdep.c	Thu Dec 10 16:07:26 2020
@@ -170,7 +170,7 @@ shnbsd_sigtramp_cache_init (const struct
 			CORE_ADDR func)
 {
   struct gdbarch *gdbarch = get_frame_arch (next_frame);
-  struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+  // struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
   int sp_regnum = gdbarch_sp_regnum (gdbarch);
   CORE_ADDR sp = get_frame_register_unsigned (next_frame, sp_regnum);
   CORE_ADDR base;



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-12-09 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Thu Dec 10 07:27:37 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: arm-nbsd-tdep.c

Log Message:
Fix armeb; CORE_ADDR is uint64_t but 2nd argument of raw_supply() is
expected to be the same size as PC. Therefore, PC was always read as
zero for big-endian.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c

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/dist/gdb/arm-nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c:1.7 src/external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c:1.8
--- src/external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c:1.7	Sat Dec  5 22:14:44 2020
+++ src/external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c	Thu Dec 10 07:27:37 2020
@@ -72,7 +72,7 @@ arm_nbsd_supply_gregset (const struct re
 
   if (regnum == -1 || regnum == ARM_PC_REGNUM)
 {
-  CORE_ADDR r_pc = gdbarch_addr_bits_remove (regcache->arch (), gregset->pc);
+  uint32_t r_pc = gdbarch_addr_bits_remove (regcache->arch (), gregset->pc);
   regcache->raw_supply (ARM_PC_REGNUM, (char *) _pc);
 }
 



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-12-09 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Thu Dec 10 07:14:58 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: nbsd-nat.c

Log Message:
Fix arm, for which PT_STEP is defined but unimplemented.

XXX
Stop exposing PT_STEP to userland for arm?


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c

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/dist/gdb/nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.19 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.20
--- src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.19	Sat Dec  5 22:14:44 2020
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.c	Thu Dec 10 07:14:58 2020
@@ -458,7 +458,7 @@ nbsd_nat_target::info_proc (const char *
   return true;
 }
 
-#ifdef PT_STEP
+#if defined(PT_STEP) && !defined(__arm__)
 /* Resume execution of a specified PTID, that points to a process or a thread
within a process.  If one thread is specified, all other threads are
suspended.  If STEP is nonzero, single-step it.  If SIGNAL is nonzero,
@@ -530,7 +530,7 @@ nbsd_resume(nbsd_nat_target *target, pti
 void
 nbsd_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signal)
 {
-#ifdef PT_STEP
+#if defined(PT_STEP) && !defined(__arm__)
   if (minus_one_ptid != ptid)
 nbsd_resume (this, ptid, step, signal);
   else



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-12-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Dec  8 13:56:38 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: sparc64-nbsd-nat.c

Log Message:
include gdbarch.h


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/gdb/sparc64-nbsd-nat.c

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/dist/gdb/sparc64-nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/sparc64-nbsd-nat.c:1.8 src/external/gpl3/gdb/dist/gdb/sparc64-nbsd-nat.c:1.9
--- src/external/gpl3/gdb/dist/gdb/sparc64-nbsd-nat.c:1.8	Mon Sep 14 22:05:19 2020
+++ src/external/gpl3/gdb/dist/gdb/sparc64-nbsd-nat.c	Tue Dec  8 08:56:38 2020
@@ -18,6 +18,7 @@
along with this program.  If not, see .  */
 
 #include "defs.h"
+#include "gdbarch.h"
 #include "gdbcore.h"
 #include "regcache.h"
 #include "inferior.h"



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-12-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Dec  7 20:28:53 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: sparc-nbsd-tdep.c

Log Message:
make function static (fixes crossgdb build, reported by martin@)


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/dist/gdb/sparc-nbsd-tdep.c

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/dist/gdb/sparc-nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/sparc-nbsd-tdep.c:1.6 src/external/gpl3/gdb/dist/gdb/sparc-nbsd-tdep.c:1.7
--- src/external/gpl3/gdb/dist/gdb/sparc-nbsd-tdep.c:1.6	Mon Sep 14 22:05:19 2020
+++ src/external/gpl3/gdb/dist/gdb/sparc-nbsd-tdep.c	Mon Dec  7 15:28:53 2020
@@ -315,7 +315,7 @@ sparc32nbsd_init_abi (struct gdbarch_inf
   frame_unwind_append_unwinder (gdbarch, _sigcontext_frame_unwind);
 }
 
-void
+static void
 sparc32nbsd_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 {
   sparc32nbsd_init_abi (info, gdbarch);



CVS commit: src/external/gpl3/gdb/lib

2020-12-07 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Dec  7 08:31:07 UTC 2020

Added Files:
src/external/gpl3/gdb/lib/libbfd/arch/aarch64eb: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libctf/arch/aarch64eb: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/aarch64eb: config.h defs.mk
gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/aarch64eb: config.h defs.mk
init.c jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdbsupport/arch/aarch64eb: defs.mk
src/external/gpl3/gdb/lib/libgdbsupport/arch/aarch64eb/gdbsupport:
config.h
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import:
alloca.h ctype.h dirent.h fcntl.h fnmatch.h glob.h inttypes.h
limits.h locale.h math.h signal.h stdint.h stdio.h stdlib.h
string.h time.h unistd.h wchar.h wctype.h
src/external/gpl3/gdb/lib/libiberty/arch/aarch64eb: config.h defs.mk
src/external/gpl3/gdb/lib/libopcodes/arch/aarch64eb: config.h defs.mk
src/external/gpl3/gdb/lib/libreadline/arch/aarch64eb: config.h defs.mk

Log Message:
mknative for aarch64eb.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libbfd/arch/aarch64eb/bfd-in3.h \
src/external/gpl3/gdb/lib/libbfd/arch/aarch64eb/bfd.h \
src/external/gpl3/gdb/lib/libbfd/arch/aarch64eb/bfd_stdint.h \
src/external/gpl3/gdb/lib/libbfd/arch/aarch64eb/bfdver.h \
src/external/gpl3/gdb/lib/libbfd/arch/aarch64eb/config.h \
src/external/gpl3/gdb/lib/libbfd/arch/aarch64eb/defs.mk \
src/external/gpl3/gdb/lib/libbfd/arch/aarch64eb/targmatch.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libctf/arch/aarch64eb/config.h \
src/external/gpl3/gdb/lib/libctf/arch/aarch64eb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libdecnumber/arch/aarch64eb/config.h \
src/external/gpl3/gdb/lib/libdecnumber/arch/aarch64eb/defs.mk \
src/external/gpl3/gdb/lib/libdecnumber/arch/aarch64eb/gstdint.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64eb/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64eb/defs.mk \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64eb/init.c \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64eb/jit-reader.h \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64eb/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64eb/xml-builtin.c
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgdbsupport/arch/aarch64eb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgdbsupport/arch/aarch64eb/gdbsupport/config.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/config.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/alloca.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/ctype.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/dirent.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/fcntl.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/fnmatch.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/glob.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/inttypes.h 
\
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/limits.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/locale.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/math.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/signal.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/stdint.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/stdio.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/stdlib.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/string.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/time.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/unistd.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/wchar.h \
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/wctype.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libiberty/arch/aarch64eb/config.h \
src/external/gpl3/gdb/lib/libiberty/arch/aarch64eb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libopcodes/arch/aarch64eb/config.h \
src/external/gpl3/gdb/lib/libopcodes/arch/aarch64eb/defs.mk
cvs rdiff -u -r0 -r1.1 \

CVS commit: src/external/gpl3/gdb/lib/libbfd

2020-12-07 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Dec  7 08:24:09 UTC 2020

Modified Files:
src/external/gpl3/gdb/lib/libbfd: Makefile

Log Message:
Add elf32-aarch64.c to DPSRCS and CLEANFILES.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb/lib/libbfd/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/lib/libbfd/Makefile
diff -u src/external/gpl3/gdb/lib/libbfd/Makefile:1.11 src/external/gpl3/gdb/lib/libbfd/Makefile:1.12
--- src/external/gpl3/gdb/lib/libbfd/Makefile:1.11	Sat Dec  5 21:27:06 2020
+++ src/external/gpl3/gdb/lib/libbfd/Makefile	Mon Dec  7 08:24:09 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.11 2020/12/05 21:27:06 christos Exp $
+#	$NetBSD: Makefile,v 1.12 2020/12/07 08:24:09 rin Exp $
 
 .include 
 .include "../Makefile.inc"
@@ -20,10 +20,10 @@ GSRCS=		${G_libbfd_la_OBJECTS:libbfd.lo=
 SRCS=		${GSRCS:.lo=.c}
 
 DPSRCS+=	elf32-target.h elf64-target.h targmatch.h \
-		elf32-ia64.c elf64-ia64.c elf64-aarch64.c \
+		elf32-ia64.c elf64-ia64.c elf64-aarch64.c elf32-aarch64.c \
 		peigen.c pex64igen.c
 CLEANFILES+=	elf32-target.h elf64-target.h targmatch.h \
-		elf32-ia64.c elf64-ia64.c elf64-aarch64.c \
+		elf32-ia64.c elf64-ia64.c elf64-aarch64.c elf32-aarch64.c \
 		peigen.c pex64igen.c
 
 .PATH: ${DIST}/bfd



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

2020-12-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec  6 15:00:25 UTC 2020

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

Log Message:
Don't descend to gdbserver for now


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/bin/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/Makefile
diff -u src/external/gpl3/gdb/bin/Makefile:1.3 src/external/gpl3/gdb/bin/Makefile:1.4
--- src/external/gpl3/gdb/bin/Makefile:1.3	Sat Dec  5 16:27:06 2020
+++ src/external/gpl3/gdb/bin/Makefile	Sun Dec  6 10:00:25 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2020/12/05 21:27:06 christos Exp $
+#	$NetBSD: Makefile,v 1.4 2020/12/06 15:00:25 christos Exp $
 
 .include "../Makefile.inc"
 
@@ -9,9 +9,9 @@ SUBDIR+=  gdb
 SUBDIR+= gdbtui
 .endif
 
-.if ${MACHINE} == "amd64"
-SUBDIR+= gdbserver
-.endif
+#.if ${MACHINE} == "amd64"
+#SUBDIR+= gdbserver
+#.endif
 
 .if ${MACHINE_ARCH} == powerpc || ${MACHINE_ARCH} == powerpcle || \
 ${MACHINE_ARCH} == powerpc64



CVS commit: src/external/gpl3/gdb

2020-12-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec  6 14:26:41 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: ppc-nbsd-tdep.c
src/external/gpl3/gdb/lib/libbfd/arch/powerpc: bfd_stdint.h targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc: gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/powerpc: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdbsupport/arch/powerpc: defs.mk
src/external/gpl3/gdb/lib/libgdbsupport/arch/powerpc/gdbsupport:
config.h
src/external/gpl3/gdb/lib/libgnulib/arch/powerpc: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/powerpc/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/powerpc/gnulib/import:
unistd.h

Log Message:
fix powerpc


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc/bfd_stdint.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc/targmatch.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc/gstdint.h
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc/defs.mk
cvs rdiff -u -r1.15 -r1.16 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc/init.c
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc/jit-reader.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc/xml-builtin.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libgdbsupport/arch/powerpc/defs.mk
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgdbsupport/arch/powerpc/gdbsupport/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/powerpc/defs.mk
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/powerpc/gnulib/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/powerpc/gnulib/import/unistd.h

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/dist/gdb/ppc-nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c:1.6 src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c:1.7
--- src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c:1.6	Tue Oct  6 18:14:41 2020
+++ src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c	Sun Dec  6 09:26:40 2020
@@ -29,6 +29,7 @@
 
 #include "ppc-tdep.h"
 #include "nbsd-tdep.h"
+#include "ppc-nbsd-tdep.h"
 #include "ppc-tdep.h"
 #include "solib-svr4.h"
 

Index: src/external/gpl3/gdb/lib/libbfd/arch/powerpc/bfd_stdint.h
diff -u src/external/gpl3/gdb/lib/libbfd/arch/powerpc/bfd_stdint.h:1.9 src/external/gpl3/gdb/lib/libbfd/arch/powerpc/bfd_stdint.h:1.10
--- src/external/gpl3/gdb/lib/libbfd/arch/powerpc/bfd_stdint.h:1.9	Sun Sep 20 12:54:17 2020
+++ src/external/gpl3/gdb/lib/libbfd/arch/powerpc/bfd_stdint.h	Sun Dec  6 09:26:40 2020
@@ -1,8 +1,8 @@
 /* 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-gdb,v 1.15 2020/12/05 21:27:31 christos Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
-/* generated for  powerpc--netbsd-gcc (NetBSD nb1 20200311) 8.4.0 */
+/* generated for  powerpc--netbsd-gcc (NetBSD nb1 20200907) 9.3.0 */
 
 #ifndef GCC_GENERATED_STDINT_H
 #define GCC_GENERATED_STDINT_H 1

Index: src/external/gpl3/gdb/lib/libbfd/arch/powerpc/targmatch.h
diff -u src/external/gpl3/gdb/lib/libbfd/arch/powerpc/targmatch.h:1.11 src/external/gpl3/gdb/lib/libbfd/arch/powerpc/targmatch.h:1.12
--- src/external/gpl3/gdb/lib/libbfd/arch/powerpc/targmatch.h:1.11	Sun Sep 20 12:54:17 2020
+++ src/external/gpl3/gdb/lib/libbfd/arch/powerpc/targmatch.h	Sun Dec  6 09:26:40 2020
@@ -1,5 +1,5 @@
 /* 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-gdb,v 1.15 2020/12/05 21:27:31 christos Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
 #ifdef BFD64
@@ -42,15 +42,6 @@
 
 #if !defined (SELECT_VECS) || defined (HAVE_aarch64_elf64_le_vec)
 
-{ "aarch64-*-netbsd*",
-_elf64_le_vec },
-#endif
-
-
-
-
-#if !defined (SELECT_VECS) || defined (HAVE_aarch64_elf64_le_vec)
-
 { "aarch64-*-fuchsia*",
 _elf64_le_vec },
 #endif
@@ -69,25 +60,7 @@
 
 #if !defined (SELECT_VECS) || defined (HAVE_aarch64_elf64_le_vec)
 
-{ "aarch64-*-linux*",
-_elf64_le_vec },
-#endif
-
-
-
-
-#if !defined (SELECT_VECS) || defined (HAVE_aarch64_elf64_be_vec)
-
-{ "aarch64_be-*-linux*",

CVS commit: src/external/gpl3/gdb

2020-12-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec  6 05:23:07 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: mips-nbsd-nat.c
src/external/gpl3/gdb/lib/libbfd/arch/mips64el: bfd_stdint.h
src/external/gpl3/gdb/lib/libbfd/arch/mipseb: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/mips64el: gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/mipseb: config.h gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/mips64el: config.h defs.mk init.c
src/external/gpl3/gdb/lib/libgdb/arch/mipseb: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/powerpc: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdbsupport/arch/mips64el/gdbsupport:
config.h
src/external/gpl3/gdb/lib/libgdbsupport/arch/powerpc: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/mips64el: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/mips64el/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/mips64el/gnulib/import:
unistd.h
src/external/gpl3/gdb/lib/libiberty/arch/mipseb: defs.mk
src/external/gpl3/gdb/lib/libopcodes/arch/mipseb: config.h
src/external/gpl3/gdb/lib/libreadline/arch/mipseb: config.h defs.mk
Added Files:
src/external/gpl3/gdb/lib/libctf/arch/aarch64: config.h defs.mk
src/external/gpl3/gdb/lib/libctf/arch/mipseb: config.h defs.mk
src/external/gpl3/gdb/lib/libgdbsupport/arch/aarch64: defs.mk
src/external/gpl3/gdb/lib/libgdbsupport/arch/aarch64/gdbsupport:
config.h
src/external/gpl3/gdb/lib/libgdbsupport/arch/mipseb: defs.mk
src/external/gpl3/gdb/lib/libgdbsupport/arch/mipseb/gdbsupport:
config.h
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import:
alloca.h ctype.h dirent.h fcntl.h fnmatch.h glob.h inttypes.h
limits.h locale.h math.h signal.h stdint.h stdio.h stdlib.h
string.h time.h unistd.h wchar.h wctype.h
src/external/gpl3/gdb/lib/libgnulib/arch/mipseb: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/mipseb/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/mipseb/gnulib/import: alloca.h
ctype.h dirent.h fcntl.h fnmatch.h glob.h inttypes.h limits.h
locale.h math.h signal.h stdint.h stdio.h stdlib.h string.h time.h
unistd.h wchar.h wctype.h

Log Message:
regen more mips and aarch64


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gdb/dist/gdb/mips-nbsd-nat.c
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gdb/lib/libbfd/arch/mips64el/bfd_stdint.h
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libbfd/arch/mipseb/bfd-in3.h \
src/external/gpl3/gdb/lib/libbfd/arch/mipseb/bfd.h \
src/external/gpl3/gdb/lib/libbfd/arch/mipseb/bfdver.h \
src/external/gpl3/gdb/lib/libbfd/arch/mipseb/defs.mk
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gdb/lib/libbfd/arch/mipseb/bfd_stdint.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libbfd/arch/mipseb/config.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gdb/lib/libbfd/arch/mipseb/targmatch.h
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/lib/libctf/arch/aarch64/config.h \
src/external/gpl3/gdb/lib/libctf/arch/aarch64/defs.mk
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/lib/libctf/arch/mipseb/config.h \
src/external/gpl3/gdb/lib/libctf/arch/mipseb/defs.mk
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gdb/lib/libdecnumber/arch/mips64el/gstdint.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gdb/lib/libdecnumber/arch/mipseb/config.h
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gdb/lib/libdecnumber/arch/mipseb/gstdint.h
cvs rdiff -u -r1.17 -r1.18 \
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/config.h
cvs rdiff -u -r1.15 -r1.16 \
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/defs.mk \
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/init.c
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/defs.mk
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/init.c
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/jit-reader.h
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/xml-builtin.c
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc/defs.mk
cvs rdiff -u -r1.14 -r1.15 \

CVS commit: src/external/gpl3/gdb

2020-12-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec  6 04:08:55 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: sh-nbsd-nat.c sh-nbsd-tdep.c
src/external/gpl3/gdb/lib/libbfd/arch/m68000: targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/m68k: targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mips64eb: bfd_stdint.h
targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mips64el: targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mipsel: targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/sh3eb: targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/sparc: targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/sparc64: bfd_stdint.h targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/vax: targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/mips64eb: gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/sparc64: gstdint.h
src/external/gpl3/gdb/lib/libgdb: Makefile
src/external/gpl3/gdb/lib/libgdb/arch/m68000: config.h
src/external/gpl3/gdb/lib/libgdb/arch/m68k: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mips64eb: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mipsel: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sparc: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sparc64: config.h defs.mk init.c
src/external/gpl3/gdb/lib/libgdbsupport/arch/sparc64/gdbsupport:
config.h
src/external/gpl3/gdb/lib/libgnulib/arch/m68000/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/m68000/gnulib/import: unistd.h
src/external/gpl3/gdb/lib/libgnulib/arch/m68k/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/m68k/gnulib/import: unistd.h
src/external/gpl3/gdb/lib/libgnulib/arch/mips64eb/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/mips64eb/gnulib/import:
unistd.h
src/external/gpl3/gdb/lib/libgnulib/arch/mipsel/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/mipsel/gnulib/import: unistd.h
src/external/gpl3/gdb/lib/libgnulib/arch/sparc/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/sparc/gnulib/import: unistd.h
src/external/gpl3/gdb/lib/libgnulib/arch/sparc64: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/sparc64/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/sparc64/gnulib/import:
unistd.h

Log Message:
fix sh3, regen some more


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gdb/dist/gdb/sh-nbsd-nat.c \
src/external/gpl3/gdb/dist/gdb/sh-nbsd-tdep.c
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gdb/lib/libbfd/arch/m68000/targmatch.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gdb/lib/libbfd/arch/m68k/targmatch.h
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libbfd/arch/mips64eb/bfd_stdint.h
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gdb/lib/libbfd/arch/mips64eb/targmatch.h
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/gdb/lib/libbfd/arch/mips64el/targmatch.h
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/gdb/lib/libbfd/arch/mipsel/targmatch.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gdb/lib/libbfd/arch/sh3eb/targmatch.h
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libbfd/arch/sparc/targmatch.h
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libbfd/arch/sparc64/bfd_stdint.h
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libbfd/arch/sparc64/targmatch.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gdb/lib/libbfd/arch/vax/targmatch.h
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libdecnumber/arch/mips64eb/gstdint.h
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libdecnumber/arch/sparc64/gstdint.h
cvs rdiff -u -r1.28 -r1.29 src/external/gpl3/gdb/lib/libgdb/Makefile
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libgdb/arch/m68000/config.h
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/gdb/lib/libgdb/arch/m68k/config.h
cvs rdiff -u -r1.18 -r1.19 \
src/external/gpl3/gdb/lib/libgdb/arch/mips64eb/config.h
cvs rdiff -u -r1.15 -r1.16 \
src/external/gpl3/gdb/lib/libgdb/arch/mipsel/config.h
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/gdb/lib/libgdb/arch/sparc/config.h
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/gdb/lib/libgdb/arch/sparc64/config.h
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libgdb/arch/sparc64/defs.mk
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gdb/lib/libgdb/arch/sparc64/init.c
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgdbsupport/arch/sparc64/gdbsupport/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/m68000/gnulib/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/m68000/gnulib/import/unistd.h
cvs rdiff -u -r1.1 -r1.2 \

CVS commit: src/external/gpl3/gdb/dist/gdb

2020-12-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec  6 03:29:03 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: m68k-bsd-nat.c ppc-nbsd-nat.c
sparc-tdep.h vax-bsd-nat.c

Log Message:
fix m68k, ppc, sparc, vax


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/gdb/m68k-bsd-nat.c \
src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gdb/dist/gdb/ppc-nbsd-nat.c
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/sparc-tdep.h

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/dist/gdb/m68k-bsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/m68k-bsd-nat.c:1.8 src/external/gpl3/gdb/dist/gdb/m68k-bsd-nat.c:1.9
--- src/external/gpl3/gdb/dist/gdb/m68k-bsd-nat.c:1.8	Mon Sep 14 22:05:18 2020
+++ src/external/gpl3/gdb/dist/gdb/m68k-bsd-nat.c	Sat Dec  5 22:29:03 2020
@@ -18,7 +18,6 @@
along with this program.  If not, see .  */
 
 /* We define this to get types like register_t.  */
-#define _KERNTYPES
 #include "defs.h"
 #include "gdbcore.h"
 #include "inferior.h"
Index: src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c:1.8 src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c:1.9
--- src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c:1.8	Mon Sep 14 22:05:19 2020
+++ src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c	Sat Dec  5 22:29:03 2020
@@ -18,7 +18,6 @@
along with this program.  If not, see .  */
 
 /* We define this to get types like register_t.  */
-#define _KERNTYPES
 #include "defs.h"
 #include "inferior.h"
 #include "regcache.h"
@@ -59,7 +58,7 @@ static void
 vaxbsd_collect_gregset (const struct regcache *regcache,
 			void *gregs, int regnum)
 {
-  gdb_byte *regs = (void *)gregs;
+  gdb_byte *regs = (gdb_byte *)gregs;
   int i;
 
   for (i = 0; i <= VAX_NUM_REGS; i++)

Index: src/external/gpl3/gdb/dist/gdb/ppc-nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/ppc-nbsd-nat.c:1.10 src/external/gpl3/gdb/dist/gdb/ppc-nbsd-nat.c:1.11
--- src/external/gpl3/gdb/dist/gdb/ppc-nbsd-nat.c:1.10	Mon Sep 14 22:05:18 2020
+++ src/external/gpl3/gdb/dist/gdb/ppc-nbsd-nat.c	Sat Dec  5 22:29:03 2020
@@ -20,7 +20,6 @@
along with this program.  If not, see .  */
 
 /* We define this to get types like register_t.  */
-#define _KERNTYPES
 #include "defs.h"
 
 #include 
@@ -33,8 +32,6 @@
 #include "inferior.h"
 #include "regcache.h"
 
-#include "common/gdb_assert.h"
-
 #include "nbsd-nat.h"
 #include "ppc-tdep.h"
 #include "ppc-nbsd-tdep.h"

Index: src/external/gpl3/gdb/dist/gdb/sparc-tdep.h
diff -u src/external/gpl3/gdb/dist/gdb/sparc-tdep.h:1.4 src/external/gpl3/gdb/dist/gdb/sparc-tdep.h:1.5
--- src/external/gpl3/gdb/dist/gdb/sparc-tdep.h:1.4	Mon Sep 14 22:05:19 2020
+++ src/external/gpl3/gdb/dist/gdb/sparc-tdep.h	Sat Dec  5 22:29:03 2020
@@ -255,9 +255,6 @@ extern const struct sparc_gregmap sparc3
 extern CORE_ADDR sparcnbsd_step_trap (struct frame_info *frame,
   unsigned long insn);
 
-extern void sparc32nbsd_init_abi (struct gdbarch_info info,
-  struct gdbarch *gdbarch);
-
 extern struct trad_frame_saved_reg *
   sparc32nbsd_sigcontext_saved_regs (struct frame_info *next_frame);
 



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

2020-12-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec  6 03:28:26 UTC 2020

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

Log Message:
need -lpthread for sun2


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gdb/bin/gdb/Makefile
cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gdb/bin/gdbtui/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/gdb/Makefile
diff -u src/external/gpl3/gdb/bin/gdb/Makefile:1.19 src/external/gpl3/gdb/bin/gdb/Makefile:1.20
--- src/external/gpl3/gdb/bin/gdb/Makefile:1.19	Sat Oct 24 01:01:57 2020
+++ src/external/gpl3/gdb/bin/gdb/Makefile	Sat Dec  5 22:28:25 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.19 2020/10/24 05:01:57 kamil Exp $
+#	$NetBSD: Makefile,v 1.20 2020/12/06 03:28:25 christos Exp $
 
 NOCTF=
 .include 
@@ -100,8 +100,8 @@ DPADD+=	${LIBOPCODESDIR}/libopcodes.a \
 	${LIBTERMINFO} \
 	${LIBIBERTYDIR}/libiberty.a
 
-LDADD+=		-lexpat -llzma -lz -lcurses -lintl -lm -lkvm -lutil
-DPADD+=		${LIBEXPAT} ${LIBLZMA} ${LIBZ} ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM} ${LIBUTIL}
+LDADD+=		-lexpat -llzma -lz -lcurses -lintl -lm -lkvm -lutil -lpthread
+DPADD+=		${LIBEXPAT} ${LIBLZMA} ${LIBZ} ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM} ${LIBUTIL} ${LIBPTHREAD}
 
 .include 
 

Index: src/external/gpl3/gdb/bin/gdbtui/Makefile
diff -u src/external/gpl3/gdb/bin/gdbtui/Makefile:1.13 src/external/gpl3/gdb/bin/gdbtui/Makefile:1.14
--- src/external/gpl3/gdb/bin/gdbtui/Makefile:1.13	Thu Sep 17 16:26:22 2020
+++ src/external/gpl3/gdb/bin/gdbtui/Makefile	Sat Dec  5 22:28:26 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2020/09/17 20:26:22 christos Exp $
+#	$NetBSD: Makefile,v 1.14 2020/12/06 03:28:26 christos Exp $
 NOCTF=
 .include "../Makefile.inc"
 
@@ -84,8 +84,8 @@ DPADD+=	${LIBOPCODESDIR}/libopcodes.a \
 	${LIBTERMINFO} \
 	${LIBIBERTYDIR}/libiberty.a
 
-LDADD+=		-lexpat -llzma -lz -lcurses -lintl -lm -lkvm -lutil
-DPADD+=		${LIBEXPAT} ${LIBLZMA} ${LIBZ} ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM} ${LIBUTIL}
+LDADD+=		-lexpat -llzma -lz -lcurses -lintl -lm -lkvm -lutil -lpthread
+DPADD+=		${LIBEXPAT} ${LIBLZMA} ${LIBZ} ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM} ${LIBUTIL} ${LIBPTHREAD}
 
 .PATH: ${DIST}/gdb ${DIST}/gdb/mi ${DIST}/gdb/cli ${DIST}/gdb/tui \
 ${DIST}/gdb/signals ${DIST}/gdb/doc ${.CURDIR}/../arch/${GDB_MACHINE_ARCH}



CVS commit: src/external/gpl3/gdb/lib

2020-12-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Dec  5 23:02:26 UTC 2020

Modified Files:
src/external/gpl3/gdb/lib/libbfd/arch/hppa: targmatch.h
src/external/gpl3/gdb/lib/libgdb/arch/hppa: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/import: unistd.h

Log Message:
fix hppa


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gdb/lib/libbfd/arch/hppa/targmatch.h
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libgdb/arch/hppa/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/import/unistd.h

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/lib/libbfd/arch/hppa/targmatch.h
diff -u src/external/gpl3/gdb/lib/libbfd/arch/hppa/targmatch.h:1.11 src/external/gpl3/gdb/lib/libbfd/arch/hppa/targmatch.h:1.12
--- src/external/gpl3/gdb/lib/libbfd/arch/hppa/targmatch.h:1.11	Sun Sep 20 12:54:16 2020
+++ src/external/gpl3/gdb/lib/libbfd/arch/hppa/targmatch.h	Sat Dec  5 18:02:25 2020
@@ -1,5 +1,5 @@
 /* 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-gdb,v 1.15 2020/12/05 21:27:31 christos Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
 #ifdef BFD64
@@ -42,15 +42,6 @@
 
 #if !defined (SELECT_VECS) || defined (HAVE_aarch64_elf64_le_vec)
 
-{ "aarch64-*-netbsd*",
-_elf64_le_vec },
-#endif
-
-
-
-
-#if !defined (SELECT_VECS) || defined (HAVE_aarch64_elf64_le_vec)
-
 { "aarch64-*-fuchsia*",
 _elf64_le_vec },
 #endif
@@ -69,25 +60,7 @@
 
 #if !defined (SELECT_VECS) || defined (HAVE_aarch64_elf64_le_vec)
 
-{ "aarch64-*-linux*",
-_elf64_le_vec },
-#endif
-
-
-
-
-#if !defined (SELECT_VECS) || defined (HAVE_aarch64_elf64_be_vec)
-
-{ "aarch64_be-*-linux*",
-_elf64_be_vec },
-#endif
-
-
-
-
-#if !defined (SELECT_VECS) || defined (HAVE_aarch64_elf64_le_vec)
-
-{ "aarch64-*-netbsd*",
+{ "aarch64-*-linux*", NULL },{ "aarch64-*-netbsd*",
 _elf64_le_vec },
 #endif
 
@@ -96,7 +69,7 @@
 
 #if !defined (SELECT_VECS) || defined (HAVE_aarch64_elf64_be_vec)
 
-{ "aarch64_be-*-netbsd*",
+{ "aarch64_be-*-linux*", NULL },{ "aarch64_be-*-netbsd*",
 _elf64_be_vec },
 #endif
 

Index: src/external/gpl3/gdb/lib/libgdb/arch/hppa/config.h
diff -u src/external/gpl3/gdb/lib/libgdb/arch/hppa/config.h:1.12 src/external/gpl3/gdb/lib/libgdb/arch/hppa/config.h:1.13
--- src/external/gpl3/gdb/lib/libgdb/arch/hppa/config.h:1.12	Sun Sep 20 12:54:21 2020
+++ src/external/gpl3/gdb/lib/libgdb/arch/hppa/config.h	Sat Dec  5 18:02:25 2020
@@ -1,5 +1,5 @@
 /* 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-gdb,v 1.15 2020/12/05 21:27: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.  */
@@ -445,7 +445,7 @@
 #define HAVE_STRING_H 1
 
 /* Define to 1 if your system has struct lwp. */
-/* #undef HAVE_STRUCT_LWP */
+#define HAVE_STRUCT_LWP 1
 
 /* Define to 1 if `pl_syscall_code' is a member of `struct ptrace_lwpinfo'. */
 /* #undef HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE */

Index: src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/config.h
diff -u src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/config.h:1.1 src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/config.h:1.2
--- src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/config.h:1.1	Sun Sep 20 12:54:25 2020
+++ src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/config.h	Sat Dec  5 18:02:25 2020
@@ -1,5 +1,5 @@
 /* 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-gdb,v 1.15 2020/12/05 21:27: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.  */
@@ -796,7 +796,7 @@
 #define HAVE_SYS_PARAM_H 1
 
 /* Define to 1 if you have the  header file. */
-/* #undef HAVE_SYS_RANDOM_H */
+#define HAVE_SYS_RANDOM_H 1
 
 /* Define to 1 if you have the  header file. */
 #define HAVE_SYS_SOCKET_H 1

Index: src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/import/unistd.h
diff -u src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/import/unistd.h:1.1 src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/import/unistd.h:1.2
--- src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/import/unistd.h:1.1	Sun Sep 20 12:54:26 2020
+++ 

CVS commit: src/external/gpl3/gdb/dist/gdb

2020-12-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Dec  5 22:24:26 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: arm-nbsd-nat.c

Log Message:
fix arm build


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c

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/dist/gdb/arm-nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c:1.14 src/external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c:1.15
--- src/external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c:1.14	Mon Sep 14 22:05:18 2020
+++ src/external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c	Sat Dec  5 17:24:26 2020
@@ -18,7 +18,6 @@
along with this program.  If not, see .  */
 
 /* We define this to get types like register_t.  */
-#define _KERNTYPES
 #include "defs.h"
 #include "gdbcore.h"
 #include "inferior.h"
@@ -52,7 +51,7 @@ public:
   const struct target_desc *read_description () override;
 };
 
-static arm_nbsd_nat_target the_arm_nbsd_nat_target;
+static arm_netbsd_nat_target the_arm_netbsd_nat_target;
 
 /* Determine if PT_GETREGS fetches REGNUM.  */
 
@@ -72,8 +71,6 @@ getfpregs_supplies (int regnum)
 	  || regnum == ARM_FPSCR_REGNUM);
 }
 
-extern int arm_apcs_32;
-
 static int
 armnbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
 {
@@ -142,18 +139,16 @@ fetch_register (struct regcache *regcach
   pid_t pid = ptid.pid ();
   int lwp = ptid.lwp ();
   int ret;
-  int lwp = regcache->ptid ().lwp ();
 
   ret = ptrace (PT_GETREGS, regcache->ptid ().pid (),
-		(PTRACE_TYPE_ARG3) _registers, lwp);
+		(PTRACE_TYPE_ARG3) , lwp);
 
   if (ret < 0)
 {
   warning (_("unable to fetch general register"));
   return;
 }
-  arm_nbsd_supply_gregset (nullptr, regcache, regno, _registers,
-			   sizeof (inferior_registers));
+  arm_nbsd_supply_gregset (nullptr, regcache, regno, , sizeof (regs));
 }
 
 static void
@@ -229,15 +224,14 @@ static void
 store_register (const struct regcache *regcache, int regno)
 {
   struct gdbarch *gdbarch = regcache->arch ();
-  struct reg inferior_registers;
-  int lwp = regcache->ptid ().lwp ();
+  struct reg regs;
   int ret;
   ptid_t ptid = regcache->ptid ();
   pid_t pid = ptid.pid ();
   int lwp = ptid.lwp ();
 
   ret = ptrace (PT_GETREGS, regcache->ptid ().pid (),
-		(PTRACE_TYPE_ARG3) _registers, lwp);
+		(PTRACE_TYPE_ARG3) , lwp);
 
   if (ret < 0)
 {
@@ -291,7 +285,7 @@ store_register (const struct regcache *r
 }
 
   ret = ptrace (PT_SETREGS, regcache->ptid ().pid (),
-		(PTRACE_TYPE_ARG3) _registers, lwp);
+		(PTRACE_TYPE_ARG3) , lwp);
 
   if (ret < 0)
 warning (_("unable to write register %d to inferior"), regno);
@@ -301,7 +295,7 @@ static void
 store_regs (const struct regcache *regcache)
 {
   struct gdbarch *gdbarch = regcache->arch ();
-  struct reg inferior_registers;
+  struct reg regs;
   int lwp = regcache->ptid ().lwp ();
   int ret;
   int regno;
@@ -333,7 +327,7 @@ store_regs (const struct regcache *regca
 }
 
   ret = ptrace (PT_SETREGS, regcache->ptid ().pid (),
-		(PTRACE_TYPE_ARG3) _registers, lwp);
+		(PTRACE_TYPE_ARG3) , lwp);
 
   if (ret < 0)
 warning (_("unable to store general registers"));
@@ -438,5 +432,6 @@ _initialize_arm_netbsd_nat ()
   /* Support debugging kernel virtual memory images.  */
   bsd_kvm_add_target (armnbsd_supply_pcb);
 
+/*###436 [cc] note: suggested alternative: 'the_arm_nbsd_nat_target'%%%*/
   add_inf_child_target (_arm_netbsd_nat_target);
 }



CVS commit: src/external/gpl3/gdb

2020-12-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Dec  5 22:14:45 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: alpha-bsd-nat.c alpha-nbsd-tdep.c
arm-nbsd-tdep.c nbsd-nat.c
src/external/gpl3/gdb/lib/libbfd/arch/alpha: bfd_stdint.h targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/armeb: bfd_stdint.h targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/alpha: gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb: gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/alpha: defs.mk
src/external/gpl3/gdb/lib/libgdb/arch/armeb: defs.mk version.c
src/external/gpl3/gdb/lib/libgnulib/arch/alpha: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/alpha/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/alpha/gnulib/import: unistd.h
src/external/gpl3/gdb/lib/libgnulib/arch/armeb: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/armeb/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/armeb/gnulib/import: unistd.h

Log Message:
fix alpha build.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/gdb/alpha-nbsd-tdep.c
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c
cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libbfd/arch/alpha/bfd_stdint.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gdb/lib/libbfd/arch/alpha/targmatch.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd_stdint.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/targmatch.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libdecnumber/arch/alpha/gstdint.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb/gstdint.h
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gdb/lib/libgdb/arch/alpha/defs.mk
cvs rdiff -u -r1.15 -r1.16 \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/defs.mk
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/version.c
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/alpha/defs.mk
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/alpha/gnulib/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/alpha/gnulib/import/unistd.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/armeb/defs.mk
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/armeb/gnulib/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgnulib/arch/armeb/gnulib/import/unistd.h

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/dist/gdb/alpha-bsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c:1.10 src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c:1.11
--- src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c:1.10	Mon Sep 14 22:05:18 2020
+++ src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c	Sat Dec  5 17:14:44 2020
@@ -18,7 +18,6 @@
along with this program.  If not, see .  */
 
 /* We define this to get types like register_t.  */
-#define _KERNTYPES
 #include "defs.h"
 #include "inferior.h"
 #include "regcache.h"

Index: src/external/gpl3/gdb/dist/gdb/alpha-nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/alpha-nbsd-tdep.c:1.8 src/external/gpl3/gdb/dist/gdb/alpha-nbsd-tdep.c:1.9
--- src/external/gpl3/gdb/dist/gdb/alpha-nbsd-tdep.c:1.8	Mon Sep 14 22:05:18 2020
+++ src/external/gpl3/gdb/dist/gdb/alpha-nbsd-tdep.c	Sat Dec  5 17:14:44 2020
@@ -22,6 +22,7 @@
 #include "defs.h"
 #include "frame.h"
 #include "gdbcore.h"
+#include "gdbarch.h"
 #include "osabi.h"
 #include "regcache.h"
 #include "regset.h"
@@ -336,7 +337,6 @@ alphanbsd_init_abi (struct gdbarch_info 
   /* NetBSD/alpha has SVR4-style shared libraries.  */
   set_solib_svr4_fetch_link_map_offsets
 (gdbarch, svr4_lp64_fetch_link_map_offsets);
-  set_gdbarch_skip_solib_resolver (gdbarch, nbsd_skip_solib_resolver);
 
 #ifdef notyet
   tdep->dynamic_sigtramp_offset = alphanbsd_sigtramp_offset;

Index: src/external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c:1.6 src/external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c:1.7
--- src/external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c:1.6	Mon Sep 14 22:05:18 2020
+++ src/external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c	Sat Dec  5 17:14:44 2020
@@ -166,9 +166,6 @@ arm_netbsd_elf_init_abi (struct gdbarch_
   /* NetBSD ELF uses SVR4-style shared libraries.  */
   set_solib_svr4_fetch_link_map_offsets
 (gdbarch, svr4_ilp32_fetch_link_map_offsets);
-
-  /* for single stepping; see PR/50773 */
-  set_gdbarch_skip_solib_resolver (gdbarch, nbsd_skip_solib_resolver);
 }
 
 void _initialize_arm_netbsd_tdep 

CVS commit: src/external/gpl3/gdb/dist

2020-12-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Dec  5 21:26:43 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gas: configure.tgt
src/external/gpl3/gdb/dist/ld: configure.tgt
Added Files:
src/external/gpl3/gdb/dist/ld/emulparams: aarch64nbsd.sh
aarch64nbsdb.sh armelf_nbsd_eabi.sh armelf_nbsd_eabihf.sh
armelfb_nbsd_eabi.sh armelfb_nbsd_eabihf.sh elf32_x86_64_nacl.sh
elf32or1k_nbsd.sh elf32ppc_nbsd.sh elf_i386_nacl.sh
elf_x86_64_nacl.sh ppclynx.sh ppcpe.sh tic30aout.sh

Log Message:
add aarch64 bits


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/gas/configure.tgt
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/ld/configure.tgt
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/dist/ld/emulparams/aarch64nbsd.sh \
src/external/gpl3/gdb/dist/ld/emulparams/aarch64nbsdb.sh \
src/external/gpl3/gdb/dist/ld/emulparams/armelf_nbsd_eabi.sh \
src/external/gpl3/gdb/dist/ld/emulparams/armelf_nbsd_eabihf.sh \
src/external/gpl3/gdb/dist/ld/emulparams/armelfb_nbsd_eabi.sh \
src/external/gpl3/gdb/dist/ld/emulparams/armelfb_nbsd_eabihf.sh \
src/external/gpl3/gdb/dist/ld/emulparams/elf32_x86_64_nacl.sh \
src/external/gpl3/gdb/dist/ld/emulparams/elf32or1k_nbsd.sh \
src/external/gpl3/gdb/dist/ld/emulparams/elf32ppc_nbsd.sh \
src/external/gpl3/gdb/dist/ld/emulparams/elf_i386_nacl.sh \
src/external/gpl3/gdb/dist/ld/emulparams/elf_x86_64_nacl.sh \
src/external/gpl3/gdb/dist/ld/emulparams/ppclynx.sh \
src/external/gpl3/gdb/dist/ld/emulparams/ppcpe.sh \
src/external/gpl3/gdb/dist/ld/emulparams/tic30aout.sh

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/dist/gas/configure.tgt
diff -u src/external/gpl3/gdb/dist/gas/configure.tgt:1.1.1.1 src/external/gpl3/gdb/dist/gas/configure.tgt:1.2
--- src/external/gpl3/gdb/dist/gas/configure.tgt:1.1.1.1	Mon Sep 14 21:42:20 2020
+++ src/external/gpl3/gdb/dist/gas/configure.tgt	Sat Dec  5 16:26:43 2020
@@ -123,6 +123,7 @@ generic_target=${cpu_type}-$vendor-$os
 case ${generic_target} in
   aarch64*-*-elf*)			fmt=elf;;
   aarch64*-*-fuchsia*)			fmt=elf;;
+  aarch64*-*-netbsd*)   fmt=elf em=nbsd ;;
   aarch64*-*-linux*)			fmt=elf em=linux
 case ${cpu}-${os} in
   aarch64*-linux-gnu_ilp32)		arch=aarch64:32 ;;

Index: src/external/gpl3/gdb/dist/ld/configure.tgt
diff -u src/external/gpl3/gdb/dist/ld/configure.tgt:1.1.1.1 src/external/gpl3/gdb/dist/ld/configure.tgt:1.2
--- src/external/gpl3/gdb/dist/ld/configure.tgt:1.1.1.1	Mon Sep 14 21:43:59 2020
+++ src/external/gpl3/gdb/dist/ld/configure.tgt	Sat Dec  5 16:26:43 2020
@@ -77,6 +77,12 @@ aarch64-*-linux*)	targ_emul=aarch64linux
 			targ_extra_libpath="aarch64linuxb aarch64linux32 aarch64linux32b armelfb_linux_eabi armelf_linux_eabi"
 			targ_extra_emuls="aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb $targ_extra_libpath"
 			;;
+aarch64_be-*-netbsd*)	targ_emul=aarch64nbsdb
+			targ_extra_emuls="aarch64nbsd aarch64elfb aarch64elf armelfb_nbsd_eabihf armelf_nbsd_eabihf armelfb_nbsd_eabi armelf_nbsd_eabi armelfb_nbsd armelf_nbsd armelf armelfb"
+			;;
+aarch64-*-netbsd*)	targ_emul=aarch64nbsd
+			targ_extra_emuls="aarch64nbsdb aarch64elf aarch64elfb armelf_nbsd_eabihf armelfb_nbsd_eabihf armelf_nbsd_eabi armelfb_nbsd_eabi armelf_nbsd armelfb_nbsd armelf armelfb"
+			;;
 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
 			targ_emul=elf64alpha_fbsd
 			targ_extra_emuls="elf64alpha alpha"

Added files:

Index: src/external/gpl3/gdb/dist/ld/emulparams/aarch64nbsd.sh
diff -u /dev/null src/external/gpl3/gdb/dist/ld/emulparams/aarch64nbsd.sh:1.1
--- /dev/null	Sat Dec  5 16:26:43 2020
+++ src/external/gpl3/gdb/dist/ld/emulparams/aarch64nbsd.sh	Sat Dec  5 16:26:43 2020
@@ -0,0 +1,37 @@
+ARCH=aarch64
+MACHINE=
+NOP=0
+
+SCRIPT_NAME=elf
+ELFSIZE=64
+OUTPUT_FORMAT="elf64-littleaarch64"
+BIG_OUTPUT_FORMAT="elf64-bigaarch64"
+LITTLE_OUTPUT_FORMAT="elf64-littleaarch64"
+NO_REL_RELOCS=yes
+
+TEMPLATE_NAME=elf
+EXTRA_EM_FILE=aarch64elf
+
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
+
+MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
+SEPARATE_GOTPLT=24
+IREL_IN_PLT=
+
+TEXT_START_ADDR=0x20010
+
+DATA_START_SYMBOLS='PROVIDE (__data_start = .);';
+
+# AArch64 does not support .s* sections.
+NO_SMALL_DATA=yes
+
+OTHER_BSS_SYMBOLS='__bss_start__ = .;'
+OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ;'
+OTHER_END_SYMBOLS='__end__ = . ;'
+
+OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }'
+ATTRS_SECTIONS='.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }'
+# Ensure each PLT entry is aligned to a cache line.
+PLT=".plt  ${RELOCATING-0} : ALIGN(16) { *(.plt)${IREL_IN_PLT+ *(.iplt)} }"
Index: 

CVS commit: src/external/gpl3/gdb/dist/gdb

2020-10-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 24 23:06:15 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: bsd-kvm.c

Log Message:
Now that we are adding the thread in the bsd_kvm_ops target namespace,
make sure that the inferior's top namespace is that too.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/gdb/dist/gdb/bsd-kvm.c

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/dist/gdb/bsd-kvm.c
diff -u src/external/gpl3/gdb/dist/gdb/bsd-kvm.c:1.18 src/external/gpl3/gdb/dist/gdb/bsd-kvm.c:1.19
--- src/external/gpl3/gdb/dist/gdb/bsd-kvm.c:1.18	Mon Sep 14 22:05:18 2020
+++ src/external/gpl3/gdb/dist/gdb/bsd-kvm.c	Sat Oct 24 19:06:15 2020
@@ -140,6 +140,7 @@ bsd_kvm_target_open (const char *arg, in
   push_target (_kvm_ops);
 
   inf = add_inferior_silent (bsd_kvm_ptid.pid ());
+  inf->push_target (_kvm_ops);
   inf->aspace = maybe_new_address_space ();
   inf->pspace = new program_space (inf->aspace);
 



CVS commit: src/external/gpl3/gdb/dist/gdb/nat

2020-10-14 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Oct 14 14:02:43 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb/nat: fork-inferior.c

Log Message:
Limit the switch_to_thread() calls in startup_inferior()

Do not jump over the threads during the startup unless we encounter
TARGET_WAITKIND_STOPPED with SIGTRAP or TARGET_WAITKIND_EXECD.

Otherwise whenever a startup-with-shell processes signals on the
startup stage, it might indicate to switch to a non-existing
thread or a special-thread number (target lwp=0 on NetBSD means
that a signal was directed to all threads within a process).

This caused a crash with tcsh on NetBSD, where the tcsh shell
runs startup detection of the hostname. This action involves
spwaning a new process through fork.

GDB crashes this way:
$ SHELL=tcsh /usr/bin/gdb echo
(gdb) r
Starting program: /bin/echo
/usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/thread.c:1309:
internal-error: void switch_to_thread(thread_info*):
Assertion `thr != NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.

This patch has been submitted upstream for review:

https://sourceware.org/pipermail/gdb-patches/2020-October/172558.html


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/gpl3/gdb/dist/gdb/nat/fork-inferior.c

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/dist/gdb/nat/fork-inferior.c
diff -u src/external/gpl3/gdb/dist/gdb/nat/fork-inferior.c:1.1.1.2 src/external/gpl3/gdb/dist/gdb/nat/fork-inferior.c:1.2
--- src/external/gpl3/gdb/dist/gdb/nat/fork-inferior.c:1.1.1.2	Tue Sep 15 01:43:40 2020
+++ src/external/gpl3/gdb/dist/gdb/nat/fork-inferior.c	Wed Oct 14 14:02:43 2020
@@ -503,7 +503,6 @@ startup_inferior (process_stratum_target
 	  case TARGET_WAITKIND_SYSCALL_ENTRY:
 	  case TARGET_WAITKIND_SYSCALL_RETURN:
 	/* Ignore gracefully during startup of the inferior.  */
-	switch_to_thread (proc_target, event_ptid);
 	break;
 
 	  case TARGET_WAITKIND_SIGNALLED:
@@ -536,7 +535,9 @@ startup_inferior (process_stratum_target
 
 	  case TARGET_WAITKIND_STOPPED:
 	resume_signal = ws.value.sig;
-	switch_to_thread (proc_target, event_ptid);
+	/* Ignore gracefully the !TRAP signals intercepted from the shell.  */
+	if (resume_signal == GDB_SIGNAL_TRAP)
+	  switch_to_thread (proc_target, event_ptid);
 	break;
 	}
 



CVS commit: src/external/gpl3/gdb/lib/libgdb

2020-10-08 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Thu Oct  8 08:32:57 UTC 2020

Modified Files:
src/external/gpl3/gdb/lib/libgdb: Makefile

Log Message:
Apply hack for GDB 8.3 on arm to GDB 11.

XXX
Not tested as GDB 11 does not build for arm at the moment.

Note that dist/gdb/dwarf2foo.c was renamed to dist/gdb/dwarf2/foo.c.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/external/gpl3/gdb/lib/libgdb/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/lib/libgdb/Makefile
diff -u src/external/gpl3/gdb/lib/libgdb/Makefile:1.27 src/external/gpl3/gdb/lib/libgdb/Makefile:1.28
--- src/external/gpl3/gdb/lib/libgdb/Makefile:1.27	Thu Sep 17 16:36:38 2020
+++ src/external/gpl3/gdb/lib/libgdb/Makefile	Thu Oct  8 08:32:57 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.27 2020/09/17 16:36:38 christos Exp $
+#	$NetBSD: Makefile,v 1.28 2020/10/08 08:32:57 rin Exp $
 
 NOCTF=
 HOSTPROG_CXX=   1
@@ -59,12 +59,15 @@ CFLAGS:=		${CXXFLAGS} -std=gnu++11 -Wno-
 
 ada-exp.c: ada-lex.c
 
-.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
-.if !empty(MACHINE_ARCH:Mearmv7hf*)
-# GCC 8.4 miscompiles this with -O2 or -O1 for earmv7hf{,eb}.
-# Neither earmv6hf{,eb} nor earmv7{,eb} are affected.
-COPTS.dwarf2expr.c+=-O0
-.endif
+.if ${MACHINE_CPU} == "arm"
+. if ${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8
+# XXX taken from GDB 8.3; not tested for GDB 11:
+# GCC 8.4/9.3 miscompile this with -O[21] for earmv7hf{,eb}.
+# GCC 9.3 miscompile this with -O2 for earmv5hf{,eb}.
+COPTS.expr.c+=	-O0
+# GCC 9.3 miscompile this with -O2 for earmv5hf{,eb}.
+COPTS.loc.c+=	-O0
+. endif
 .endif
 
 # These are generated by implicit rules and are not easy to generate



CVS commit: src/external/gpl3/gdb/dist/bfd

2020-10-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Oct  6 23:28:13 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/bfd: config.bfd

Log Message:
Replace local patches adding NetBSD/aarch64 support with the upstream one

Cherry-pick:

>From c0b313441717b65569edb01bf9984d2066d899de Mon Sep 17 00:00:00 2001
From: Nick Clifton 
Date: Mon, 5 Oct 2020 14:56:42 +0100
Subject: [PATCH] Add NetBSD AArch64 Little Endian and Big Endian BFD support.

bfd  * config.bfd (aarch64-*-netbsd*, aarch64_be-*-netbsd*): Add target.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/external/gpl3/gdb/dist/bfd/config.bfd

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/dist/bfd/config.bfd
diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.22 src/external/gpl3/gdb/dist/bfd/config.bfd:1.23
--- src/external/gpl3/gdb/dist/bfd/config.bfd:1.22	Tue Sep 15 02:05:16 2020
+++ src/external/gpl3/gdb/dist/bfd/config.bfd	Tue Oct  6 23:28:13 2020
@@ -247,11 +247,6 @@ case "${targ}" in
 targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
 want64=true
 ;;
-  aarch64-*-netbsd*)
-targ_defvec=aarch64_elf64_le_vec
-targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
-want64=true
-;;
   aarch64-*-fuchsia*)
 targ_defvec=aarch64_elf64_le_vec
 targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
@@ -262,22 +257,12 @@ case "${targ}" in
 targ_selvecs=aarch64_elf64_be_cloudabi_vec
 want64=true
 ;;
-  aarch64-*-linux*)
-targ_defvec=aarch64_elf64_le_vec
-targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
-want64=true
-;;
-  aarch64_be-*-linux*)
-targ_defvec=aarch64_elf64_be_vec
-targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
-want64=true
-;;
-  aarch64-*-netbsd*)
+  aarch64-*-linux* | aarch64-*-netbsd*)
 targ_defvec=aarch64_elf64_le_vec
 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
 want64=true
 ;;
-  aarch64_be-*-netbsd*)
+  aarch64_be-*-linux* | aarch64_be-*-netbsd*)
 targ_defvec=aarch64_elf64_be_vec
 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
 want64=true



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-10-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Oct  6 23:14:47 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: inf-ptrace.c nbsd-nat.c

Log Message:
Undo local patches

They are no longer needed (and are wrong).


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/external/gpl3/gdb/dist/gdb/inf-ptrace.c
cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c

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/dist/gdb/inf-ptrace.c
diff -u src/external/gpl3/gdb/dist/gdb/inf-ptrace.c:1.21 src/external/gpl3/gdb/dist/gdb/inf-ptrace.c:1.22
--- src/external/gpl3/gdb/dist/gdb/inf-ptrace.c:1.21	Tue Sep 15 02:05:18 2020
+++ src/external/gpl3/gdb/dist/gdb/inf-ptrace.c	Tue Oct  6 23:14:47 2020
@@ -263,12 +263,10 @@ get_ptrace_pid (ptid_t ptid)
 {
   pid_t pid;
 
-#ifndef __NetBSD__
   /* If we have an LWPID to work with, use it.  Otherwise, we're
  dealing with a non-threaded program/target.  */
   pid = ptid.lwp ();
   if (pid == 0)
-#endif
 pid = ptid.pid ();
   return pid;
 }
@@ -293,7 +291,6 @@ inf_ptrace_target::resume (ptid_t ptid, 
   else
 request = PT_CONTINUE;
 
-  int sig;
   if (step)
 {
   /* If this system does not support PT_STEP, a higher level
@@ -302,23 +299,13 @@ inf_ptrace_target::resume (ptid_t ptid, 
 	 all possible successor instructions), so we don't have to
 	 worry about that here.  */
   request = PT_STEP;
-#if __NetBSD__
-  /*
-   * On NetBSD the data field of PT_STEP contains the thread
-   * to be stepped; all other threads are continued if this value is > 0
-   */
-  sig = ptid.lwp ();
-#else
-  sig = 0;
-#endif
-} else
-  sig = gdb_signal_to_host (signal);
+}
 
   /* An address of (PTRACE_TYPE_ARG3)1 tells ptrace to continue from
  where it was.  If GDB wanted it to start some other way, we have
  already written a new program counter value to the child.  */
   errno = 0;
-  gdb_ptrace (request, ptid, (PTRACE_TYPE_ARG3)1, sig);
+  gdb_ptrace (request, ptid, (PTRACE_TYPE_ARG3)1, gdb_signal_to_host (signal));
   if (errno != 0)
 perror_with_name (("ptrace"));
 }
@@ -476,15 +463,6 @@ inf_ptrace_target::xfer_partial (enum ta
 	/* If the PT_IO request is somehow not supported, fallback on
 	   using PT_WRITE_D/PT_READ_D.  Otherwise we will return zero
 	   to indicate failure.  */
-	if (errno == EACCES)
-	  {
-	fprintf_unfiltered (gdb_stderr, "Cannot %s process at %p (%s). "
-"Is PaX MPROTECT active? See security(7), "
-"sysctl(7), paxctl(8)\n", writebuf ? "write to" :
-"read from", piod.piod_offs,
-strerror(errno));
-	return TARGET_XFER_E_IO;	/* Some other error perhaps? */
-	  }
 	if (errno != EINVAL)
 	  return TARGET_XFER_EOF;
   }

Index: src/external/gpl3/gdb/dist/gdb/nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.17 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.18
--- src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.17	Sat Sep 19 21:45:45 2020
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.c	Tue Oct  6 23:14:47 2020
@@ -587,9 +587,6 @@ nbsd_nat_target::wait (ptid_t ptid, stru
   siginfo_t *si = _siginfo;
 
   int lwp = psi.psi_lwpid;
-  // XXX: should the kernel return this?
-  if (lwp == 0)
-lwp = pid;
 
   int signo = si->si_signo;
   const int code = si->si_code;



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-10-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Oct  6 22:17:42 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: nbsd-tdep.c

Log Message:
Remove NFC local delta


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gdb/dist/gdb/nbsd-tdep.c

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/dist/gdb/nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-tdep.c:1.5 src/external/gpl3/gdb/dist/gdb/nbsd-tdep.c:1.6
--- src/external/gpl3/gdb/dist/gdb/nbsd-tdep.c:1.5	Tue Sep 15 02:05:18 2020
+++ src/external/gpl3/gdb/dist/gdb/nbsd-tdep.c	Tue Oct  6 22:17:42 2020
@@ -3,9 +3,9 @@
Copyright (C) 2002-2020 Free Software Foundation, Inc.
 
Contributed by Wasabi Systems, Inc.
-
+  
This file is part of GDB.
-
+  
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-10-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Oct  6 22:14:41 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: ppc-nbsd-tdep.c

Log Message:
Fix typo

Remove delta with upstream.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c

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/dist/gdb/ppc-nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c:1.5 src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c:1.6
--- src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c:1.5	Tue Sep 15 02:05:18 2020
+++ src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c	Tue Oct  6 22:14:41 2020
@@ -199,7 +199,7 @@ _initialize_ppcnbsd_tdep ()
 			  ppcnbsd_init_abi);
 
   /* Avoid initializing the register offsets again if they were
- already initailized by ppcnbsd-nat.c.  */
+ already initialized by ppcnbsd-nat.c.  */
   if (ppcnbsd_reg_offsets.pc_offset == 0)
 {
   /* General-purpose registers.  */



CVS commit: src/external/gpl3/gdb/dist/gdbsupport

2020-10-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Oct  6 22:04:09 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdbsupport: agent.cc

Log Message:
Replace local patch with fix from upstream

Cherry-pick:

>From e2a2a24a8e78427ff8667d625f5befbe88c328bb Mon Sep 17 00:00:00 2001
From: Kamil Rytarowski 
Date: Wed, 23 Sep 2020 04:20:05 +0200
Subject: [PATCH] Preinitialize the sockaddr_un variable to zero

Don't pass random sun_len for the BSD's,
zero the whole structure as recommended for portability.

Reported by Coverity.

gdbsupport/ChangeLog:

* agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdbsupport/agent.cc

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/dist/gdbsupport/agent.cc
diff -u src/external/gpl3/gdb/dist/gdbsupport/agent.cc:1.2 src/external/gpl3/gdb/dist/gdbsupport/agent.cc:1.3
--- src/external/gpl3/gdb/dist/gdbsupport/agent.cc:1.2	Sun Sep 20 21:18:45 2020
+++ src/external/gpl3/gdb/dist/gdbsupport/agent.cc	Tue Oct  6 22:04:09 2020
@@ -138,7 +138,7 @@ static int
 gdb_connect_sync_socket (int pid)
 {
 #ifdef HAVE_SYS_UN_H
-  struct sockaddr_un addr;
+  struct sockaddr_un addr = {};
   int res, fd;
   char path[UNIX_PATH_MAX];
 
@@ -153,7 +153,6 @@ gdb_connect_sync_socket (int pid)
   return -1;
 }
 
-  memset(, 0, sizeof(addr));
   addr.sun_family = AF_UNIX;
 
   res = xsnprintf (addr.sun_path, UNIX_PATH_MAX, "%s", path);



CVS commit: src/external/gpl3/gdb/dist/gnulib/import/m4

2020-10-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Oct  6 21:54:01 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gnulib/import/m4: mbrtowc.m4

Log Message:
Undo local NFC patch


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gdb/dist/gnulib/import/m4/mbrtowc.m4

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/dist/gnulib/import/m4/mbrtowc.m4
diff -u src/external/gpl3/gdb/dist/gnulib/import/m4/mbrtowc.m4:1.3 src/external/gpl3/gdb/dist/gnulib/import/m4/mbrtowc.m4:1.4
--- src/external/gpl3/gdb/dist/gnulib/import/m4/mbrtowc.m4:1.3	Sun Sep 20 16:00:56 2020
+++ src/external/gpl3/gdb/dist/gnulib/import/m4/mbrtowc.m4	Tue Oct  6 21:54:01 2020
@@ -754,6 +754,7 @@ changequote(,)dnl
   case "$host_os" in
   # Guess no on AIX and glibc systems.
 aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;;
+  # Guess yes on native Windows.
 mingw*)   gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
 *)gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
   esac



CVS commit: src/external/gpl3/gdb/dist/libiberty

2020-10-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Oct  6 21:49:22 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/libiberty: make-temp-file.c

Log Message:
Undo local patch having no impact

/tmp is picked from P_tmpdir earlier.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gdb/dist/libiberty/make-temp-file.c

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/dist/libiberty/make-temp-file.c
diff -u src/external/gpl3/gdb/dist/libiberty/make-temp-file.c:1.6 src/external/gpl3/gdb/dist/libiberty/make-temp-file.c:1.7
--- src/external/gpl3/gdb/dist/libiberty/make-temp-file.c:1.6	Tue Sep 15 02:05:28 2020
+++ src/external/gpl3/gdb/dist/libiberty/make-temp-file.c	Tue Oct  6 21:49:22 2020
@@ -129,10 +129,10 @@ choose_tmpdir (void)
 	base = try_dir (P_tmpdir, base);
 #endif
 
-  /* Try /tmp, /var/tmp, then /usr/tmp.  */
-  base = try_dir (tmp, base);
+  /* Try /var/tmp, /usr/tmp, then /tmp.  */
   base = try_dir (vartmp, base);
   base = try_dir (usrtmp, base);
+  base = try_dir (tmp, base);
   
   /* If all else fails, use the current directory!  */
   if (base == 0)



CVS commit: src/external/gpl3/gdb/dist/bfd

2020-10-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Oct  6 21:39:53 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/bfd: netbsd-core.c

Log Message:
Undo local NFC patch


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/bfd/netbsd-core.c

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/dist/bfd/netbsd-core.c
diff -u src/external/gpl3/gdb/dist/bfd/netbsd-core.c:1.8 src/external/gpl3/gdb/dist/bfd/netbsd-core.c:1.9
--- src/external/gpl3/gdb/dist/bfd/netbsd-core.c:1.8	Tue Sep 15 02:05:16 2020
+++ src/external/gpl3/gdb/dist/bfd/netbsd-core.c	Tue Oct  6 21:39:53 2020
@@ -275,7 +275,7 @@ const bfd_target core_netbsd_vec =
 0,/* Symbol prefix.  */
 ' ',			/* ar_pad_char.  */
 16,/* ar_max_namelen.  */
-0,/* match priority.  */
+0,/* Match priority.  */
 NO_GET64, NO_GETS64, NO_PUT64,	/* 64 bit data.  */
 NO_GET, NO_GETS, NO_PUT,		/* 32 bit data.  */
 NO_GET, NO_GETS, NO_PUT,		/* 16 bit data.  */



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 

CVS commit: src/external/gpl3/gdb/lib/libctf

2020-09-21 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Sep 21 06:48:48 UTC 2020

Modified Files:
src/external/gpl3/gdb/lib/libctf: Makefile

Log Message:
make depend files also depend on the generated headers.

fixes build issues.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/lib/libctf/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/lib/libctf/Makefile
diff -u src/external/gpl3/gdb/lib/libctf/Makefile:1.2 src/external/gpl3/gdb/lib/libctf/Makefile:1.3
--- src/external/gpl3/gdb/lib/libctf/Makefile:1.2	Thu Sep 17 16:45:35 2020
+++ src/external/gpl3/gdb/lib/libctf/Makefile	Mon Sep 21 06:48:48 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.2 2020/09/17 16:45:35 christos Exp $
+#	$NetBSD: Makefile,v 1.3 2020/09/21 06:48:48 mrg Exp $
 
 NOCTF=
 #HOSTPROG_CXX=   1
@@ -37,7 +37,7 @@ CWARNFLAGS.clang+=	-Wno-switch
 
 CLEANDIRFILES+= ctf-error.h
 
-${G_OBJECTS}: ctf-error.h
+${G_OBJECTS} ${G_OBJECTS:.o=.d}: ctf-error.h
 
 ctf-error.h: ${DIST}/libctf/mkerrors.sed ${DIST}/include/ctf-api.h
 	${TOOL_SED} -nf ${DIST}/libctf/mkerrors.sed < ${DIST}/include/ctf-api.h > $@



CVS commit: src/external/gpl3/gdb/dist/gdbsupport

2020-09-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 20 21:18:45 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdbsupport: agent.cc

Log Message:
zero out the sockaddr, so that the length it guaranteed to be 0.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/gdbsupport/agent.cc

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/dist/gdbsupport/agent.cc
diff -u src/external/gpl3/gdb/dist/gdbsupport/agent.cc:1.1.1.1 src/external/gpl3/gdb/dist/gdbsupport/agent.cc:1.2
--- src/external/gpl3/gdb/dist/gdbsupport/agent.cc:1.1.1.1	Mon Sep 14 21:43:49 2020
+++ src/external/gpl3/gdb/dist/gdbsupport/agent.cc	Sun Sep 20 17:18:45 2020
@@ -153,6 +153,7 @@ gdb_connect_sync_socket (int pid)
   return -1;
 }
 
+  memset(, 0, sizeof(addr));
   addr.sun_family = AF_UNIX;
 
   res = xsnprintf (addr.sun_path, UNIX_PATH_MAX, "%s", path);



CVS commit: src/external/gpl3/gdb/lib

2020-09-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 20 20:34:49 UTC 2020

Modified Files:
src/external/gpl3/gdb/lib/libbfd/arch/arm: bfd-in3.h bfd.h bfd_stdint.h
bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/armeb: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/i386: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/sh3el: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/arm: config.h gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb: config.h gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/i386: config.h gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc64: config.h
gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/sh3el: config.h gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/arm: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/armeb: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/i386: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64: config.h defs.mk
init.c jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/sh3el: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libiberty/arch/arm: defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/armeb: defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/i386: defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/powerpc64: defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/sh3el: defs.mk
src/external/gpl3/gdb/lib/libopcodes/arch/arm: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/armeb: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/i386: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/powerpc64: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/sh3el: config.h
src/external/gpl3/gdb/lib/libreadline/arch/arm: config.h defs.mk
src/external/gpl3/gdb/lib/libreadline/arch/armeb: config.h defs.mk
src/external/gpl3/gdb/lib/libreadline/arch/i386: config.h defs.mk
src/external/gpl3/gdb/lib/libreadline/arch/powerpc64: config.h defs.mk
src/external/gpl3/gdb/lib/libreadline/arch/sh3el: config.h defs.mk
src/external/gpl3/gdb/lib/libsim/arch/powerpc64: config.h
Added Files:
src/external/gpl3/gdb/lib/libctf/arch/arm: config.h defs.mk
src/external/gpl3/gdb/lib/libctf/arch/armeb: config.h defs.mk
src/external/gpl3/gdb/lib/libctf/arch/i386: config.h defs.mk
src/external/gpl3/gdb/lib/libctf/arch/powerpc64: config.h defs.mk
src/external/gpl3/gdb/lib/libctf/arch/sh3el: config.h defs.mk
src/external/gpl3/gdb/lib/libgdbsupport/arch/arm: defs.mk
src/external/gpl3/gdb/lib/libgdbsupport/arch/arm/gdbsupport: config.h
src/external/gpl3/gdb/lib/libgdbsupport/arch/armeb: defs.mk
src/external/gpl3/gdb/lib/libgdbsupport/arch/armeb/gdbsupport: config.h
src/external/gpl3/gdb/lib/libgdbsupport/arch/i386: defs.mk
src/external/gpl3/gdb/lib/libgdbsupport/arch/i386/gdbsupport: config.h
src/external/gpl3/gdb/lib/libgdbsupport/arch/powerpc64: defs.mk
src/external/gpl3/gdb/lib/libgdbsupport/arch/powerpc64/gdbsupport:
config.h
src/external/gpl3/gdb/lib/libgdbsupport/arch/sh3el: defs.mk
src/external/gpl3/gdb/lib/libgdbsupport/arch/sh3el/gdbsupport: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/arm: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/arm/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/arm/gnulib/import: alloca.h
ctype.h dirent.h fcntl.h fnmatch.h glob.h inttypes.h limits.h
locale.h math.h signal.h stdint.h stdio.h stdlib.h string.h time.h
unistd.h wchar.h wctype.h
src/external/gpl3/gdb/lib/libgnulib/arch/armeb: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/armeb/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/armeb/gnulib/import: alloca.h
ctype.h dirent.h fcntl.h fnmatch.h glob.h inttypes.h limits.h
locale.h math.h signal.h stdint.h stdio.h stdlib.h string.h time.h
unistd.h wchar.h wctype.h
src/external/gpl3/gdb/lib/libgnulib/arch/i386: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/i386/gnulib: config.h

CVS commit: src/external/gpl3/gdb/lib

2020-09-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 20 16:54:34 UTC 2020

Modified Files:
src/external/gpl3/gdb/lib/libbfd/arch/alpha: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/hppa: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/m68000: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/m68k: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mips64eb: bfd-in3.h bfd.h
bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mips64el: bfd-in3.h bfd.h
bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mipsel: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/powerpc: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/sh3eb: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/sparc: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/sparc64: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/vax: bfd-in3.h bfd.h bfd_stdint.h
bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/alpha: config.h
src/external/gpl3/gdb/lib/libdecnumber/arch/hppa: config.h gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/m68000: config.h
src/external/gpl3/gdb/lib/libdecnumber/arch/m68k: config.h gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/mips64eb: config.h
src/external/gpl3/gdb/lib/libdecnumber/arch/mips64el: config.h
src/external/gpl3/gdb/lib/libdecnumber/arch/mipsel: config.h gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc: config.h gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/sh3eb: config.h gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/sparc: config.h gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/sparc64: config.h gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/vax: config.h gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/alpha: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/hppa: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/m68000: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/m68k: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/mips64eb: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/mips64el: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/mipsel: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/powerpc: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/sparc: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/sparc64: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/vax: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgnulib/arch/x86_64: defs.mk
src/external/gpl3/gdb/lib/libgnulib/arch/x86_64/gnulib: config.h
src/external/gpl3/gdb/lib/libgnulib/arch/x86_64/gnulib/import: dirent.h
fcntl.h math.h stdio.h stdlib.h string.h time.h unistd.h wchar.h
src/external/gpl3/gdb/lib/libiberty/arch/alpha: defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/hppa: defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/m68000: defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/m68k: defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/mips64eb: defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/mips64el: defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/mipsel: defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/powerpc: defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/sh3eb: defs.mk

CVS commit: src/external/gpl3/gdb/dist

2020-09-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 20 16:41:26 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/bfd: configure
src/external/gpl3/gdb/dist/binutils: configure
src/external/gpl3/gdb/dist/gas: configure
src/external/gpl3/gdb/dist/gold: configure
src/external/gpl3/gdb/dist/gprof: configure
src/external/gpl3/gdb/dist/ld: configure
src/external/gpl3/gdb/dist/opcodes: configure

Log Message:
disable -Wstack-usage since some targets like vax don't support it


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/dist/bfd/configure
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/binutils/configure
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/gas/configure
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/gold/configure
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/gprof/configure
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/ld/configure
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb/dist/opcodes/configure

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/dist/bfd/configure
diff -u src/external/gpl3/gdb/dist/bfd/configure:1.12 src/external/gpl3/gdb/dist/bfd/configure:1.13
--- src/external/gpl3/gdb/dist/bfd/configure:1.12	Mon Sep 14 22:05:16 2020
+++ src/external/gpl3/gdb/dist/bfd/configure	Sun Sep 20 12:41:25 2020
@@ -12663,7 +12663,8 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&
   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
 
 else
-  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
+ :
+#  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
 fi
 rm -f conftest*
 
@@ -12708,7 +12709,8 @@ if (eval "$ac_cpp_for_build conftest.$ac
   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
 
 else
-  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
+ :
+#  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
 fi
 rm -f conftest*
 

Index: src/external/gpl3/gdb/dist/binutils/configure
diff -u src/external/gpl3/gdb/dist/binutils/configure:1.1.1.1 src/external/gpl3/gdb/dist/binutils/configure:1.2
--- src/external/gpl3/gdb/dist/binutils/configure:1.1.1.1	Mon Sep 14 21:42:08 2020
+++ src/external/gpl3/gdb/dist/binutils/configure	Sun Sep 20 12:41:25 2020
@@ -12621,7 +12621,8 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&
   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
 
 else
-  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
+ :
+#  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
 fi
 rm -f conftest*
 
@@ -12666,7 +12667,8 @@ if (eval "$ac_cpp_for_build conftest.$ac
   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
 
 else
-  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
+ :
+#  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
 fi
 rm -f conftest*
 

Index: src/external/gpl3/gdb/dist/gas/configure
diff -u src/external/gpl3/gdb/dist/gas/configure:1.1.1.1 src/external/gpl3/gdb/dist/gas/configure:1.2
--- src/external/gpl3/gdb/dist/gas/configure:1.1.1.1	Mon Sep 14 21:42:19 2020
+++ src/external/gpl3/gdb/dist/gas/configure	Sun Sep 20 12:41:25 2020
@@ -12230,7 +12230,8 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&
   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
 
 else
-  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
+ :
+#  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
 fi
 rm -f conftest*
 
@@ -12275,7 +12276,8 @@ if (eval "$ac_cpp_for_build conftest.$ac
   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
 
 else
-  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
+ :
+#  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
 fi
 rm -f conftest*
 

Index: src/external/gpl3/gdb/dist/gold/configure
diff -u src/external/gpl3/gdb/dist/gold/configure:1.1.1.1 src/external/gpl3/gdb/dist/gold/configure:1.2
--- src/external/gpl3/gdb/dist/gold/configure:1.1.1.1	Mon Sep 14 21:43:52 2020
+++ src/external/gpl3/gdb/dist/gold/configure	Sun Sep 20 12:41:25 2020
@@ -7812,7 +7812,8 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&
   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
 
 else
-  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
+ :
+#  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
 fi
 rm -f conftest*
 
@@ -7857,7 +7858,8 @@ if (eval "$ac_cpp_for_build conftest.$ac
   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
 
 else
-  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
+ :
+#  GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
 fi
 rm -f conftest*
 

Index: src/external/gpl3/gdb/dist/gprof/configure
diff -u src/external/gpl3/gdb/dist/gprof/configure:1.1.1.1 src/external/gpl3/gdb/dist/gprof/configure:1.2
--- 

CVS commit: src/external/gpl3/gdb/dist/gnulib/import/m4

2020-09-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 20 16:00:56 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gnulib/import/m4: mbrtowc.m4

Log Message:
undo previous, it was correct


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/dist/gnulib/import/m4/mbrtowc.m4

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/dist/gnulib/import/m4/mbrtowc.m4
diff -u src/external/gpl3/gdb/dist/gnulib/import/m4/mbrtowc.m4:1.2 src/external/gpl3/gdb/dist/gnulib/import/m4/mbrtowc.m4:1.3
--- src/external/gpl3/gdb/dist/gnulib/import/m4/mbrtowc.m4:1.2	Fri Sep 18 13:46:47 2020
+++ src/external/gpl3/gdb/dist/gnulib/import/m4/mbrtowc.m4	Sun Sep 20 12:00:56 2020
@@ -172,8 +172,6 @@ changequote(,)dnl
   case "$host_os" in
  # Guess no on AIX and OSF/1.
 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
- # Guess no on bsd.
-*bsd*)	 gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
  # Guess yes otherwise.
 *)   gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
   esac
@@ -756,8 +754,6 @@ changequote(,)dnl
   case "$host_os" in
   # Guess no on AIX and glibc systems.
 aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;;
-*bsd*)		  gl_cv_func_mbrtowc_empty_input="guessing no" ;;
-  # Guess yes on native Windows.
 mingw*)   gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
 *)gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
   esac



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-09-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 20 14:39:26 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: corelow.c

Log Message:
Don't read data from sections without contents on NetBSD. We end up reading
0's and svr4_exec_displacement read phdrs_target successfully, and we
end up in the rabbit-hole of 0 displacement for pie binaries and then we
can't load our shared libaries from the core file.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.9 -r1.2 src/external/gpl3/gdb/dist/gdb/corelow.c

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/dist/gdb/corelow.c
diff -u src/external/gpl3/gdb/dist/gdb/corelow.c:1.1.1.9 src/external/gpl3/gdb/dist/gdb/corelow.c:1.2
--- src/external/gpl3/gdb/dist/gdb/corelow.c:1.1.1.9	Mon Sep 14 21:43:29 2020
+++ src/external/gpl3/gdb/dist/gdb/corelow.c	Sun Sep 20 10:39:26 2020
@@ -841,6 +841,7 @@ core_target::xfer_partial (enum target_o
 	if (xfer_status == TARGET_XFER_OK)
 	  return TARGET_XFER_OK;
 
+#ifndef __NetBSD__
 	/* Finally, attempt to access data in core file sections with
 	   no contents.  These will typically read as all zero.  */
 	auto no_contents_cb = [&] (const struct target_section *s)
@@ -853,7 +854,7 @@ core_target::xfer_partial (enum target_o
 			 m_core_section_table.sections,
 			 m_core_section_table.sections_end,
 			 no_contents_cb);
-
+#endif
 	return xfer_status;
   }
 case TARGET_OBJECT_AUXV:



CVS commit: src/external/gpl3/gdb/dist/bfd

2020-09-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Sep 19 21:47:03 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/bfd: elf.c

Log Message:
remove mis-merged code and make the auxv core offset 0. Now loading auxv
from core files works.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/dist/bfd/elf.c

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/dist/bfd/elf.c
diff -u src/external/gpl3/gdb/dist/bfd/elf.c:1.12 src/external/gpl3/gdb/dist/bfd/elf.c:1.13
--- src/external/gpl3/gdb/dist/bfd/elf.c:1.12	Mon Sep 14 22:05:16 2020
+++ src/external/gpl3/gdb/dist/bfd/elf.c	Sat Sep 19 17:47:03 2020
@@ -10893,7 +10893,7 @@ elfcore_grok_netbsd_note (bfd *abfd, Elf
 #ifdef NT_NETBSDCORE_AUXV
 case NT_NETBSDCORE_AUXV:
   /* NetBSD-specific Elf Auxiliary Vector data. */
-  return elfcore_make_auxv_note_section (abfd, note, 4);
+  return elfcore_make_auxv_note_section (abfd, note, 0);
 #endif
 #ifdef NT_NETBSDCORE_LWPSTATUS
 case NT_NETBSDCORE_LWPSTATUS:
@@ -11023,20 +11023,6 @@ elfcore_grok_openbsd_note (bfd *abfd, El
   if (note->type == NT_OPENBSD_AUXV)
 return elfcore_make_auxv_note_section (abfd, note, 0);
 
-  if (note->type == NT_OPENBSD_WCOOKIE)
-{
-  asection *sect = bfd_make_section_anyway_with_flags (abfd, ".wcookie",
-			   SEC_HAS_CONTENTS);
-
-  if (sect == NULL)
-	return FALSE;
-  sect->size = note->descsz;
-  sect->filepos = note->descpos;
-  sect->alignment_power = 1 + bfd_get_arch_size (abfd) / 32;
-
-  return TRUE;
-}
-
   return TRUE;
 }
 



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-09-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Sep 19 21:45:45 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: nbsd-nat.c

Log Message:
The lid of the main thread == pid now. Should we fix the kernel to return
this? Now debugging live programs work.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c

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/dist/gdb/nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.16 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.17
--- src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.16	Wed Sep 16 22:12:31 2020
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.c	Sat Sep 19 17:45:45 2020
@@ -587,6 +587,9 @@ nbsd_nat_target::wait (ptid_t ptid, stru
   siginfo_t *si = _siginfo;
 
   int lwp = psi.psi_lwpid;
+  // XXX: should the kernel return this?
+  if (lwp == 0)
+lwp = pid;
 
   int signo = si->si_signo;
   const int code = si->si_code;



CVS commit: src/external/gpl3/gdb/dist/gnulib

2020-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Sep 18 17:46:47 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gnulib: Makefile.in aclocal.m4 configure
src/external/gpl3/gdb/dist/gnulib/import: Makefile.in
src/external/gpl3/gdb/dist/gnulib/import/m4: fdopendir.m4 frexp.m4
gettimeofday.m4 lstat.m4 mbrtowc.m4 memchr.m4 mkdir.m4 readlink.m4
rename.m4 rmdir.m4 setenv.m4 stat.m4

Log Message:
Provide better guesses for bsd systems, otherwise we end up calling
recursively opendir and gettimeofday until we run out of stack...


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/gnulib/Makefile.in \
src/external/gpl3/gdb/dist/gnulib/aclocal.m4 \
src/external/gpl3/gdb/dist/gnulib/configure
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/gdb/dist/gnulib/import/Makefile.in
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/gdb/dist/gnulib/import/m4/fdopendir.m4 \
src/external/gpl3/gdb/dist/gnulib/import/m4/frexp.m4 \
src/external/gpl3/gdb/dist/gnulib/import/m4/gettimeofday.m4 \
src/external/gpl3/gdb/dist/gnulib/import/m4/lstat.m4 \
src/external/gpl3/gdb/dist/gnulib/import/m4/mbrtowc.m4 \
src/external/gpl3/gdb/dist/gnulib/import/m4/memchr.m4 \
src/external/gpl3/gdb/dist/gnulib/import/m4/mkdir.m4 \
src/external/gpl3/gdb/dist/gnulib/import/m4/readlink.m4 \
src/external/gpl3/gdb/dist/gnulib/import/m4/rename.m4 \
src/external/gpl3/gdb/dist/gnulib/import/m4/rmdir.m4 \
src/external/gpl3/gdb/dist/gnulib/import/m4/setenv.m4 \
src/external/gpl3/gdb/dist/gnulib/import/m4/stat.m4

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/dist/gnulib/Makefile.in
diff -u src/external/gpl3/gdb/dist/gnulib/Makefile.in:1.1.1.1 src/external/gpl3/gdb/dist/gnulib/Makefile.in:1.2
--- src/external/gpl3/gdb/dist/gnulib/Makefile.in:1.1.1.1	Mon Sep 14 21:43:50 2020
+++ src/external/gpl3/gdb/dist/gnulib/Makefile.in	Fri Sep 18 13:46:47 2020
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15.1 from Makefile.am.
+# Makefile.in generated by automake 1.16.1 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2017 Free Software Foundation, Inc.
+# Copyright (C) 1994-2018 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -1615,8 +1615,8 @@ Makefile: $(srcdir)/Makefile.in $(top_bu
 	echo ' $(SHELL) ./config.status'; \
 	$(SHELL) ./config.status;; \
 	  *) \
-	echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
-	cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+	echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
+	cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
 	esac;
 
 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
Index: src/external/gpl3/gdb/dist/gnulib/aclocal.m4
diff -u src/external/gpl3/gdb/dist/gnulib/aclocal.m4:1.1.1.1 src/external/gpl3/gdb/dist/gnulib/aclocal.m4:1.2
--- src/external/gpl3/gdb/dist/gnulib/aclocal.m4:1.1.1.1	Mon Sep 14 21:43:50 2020
+++ src/external/gpl3/gdb/dist/gnulib/aclocal.m4	Fri Sep 18 13:46:47 2020
@@ -1,6 +1,6 @@
-# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
+# generated automatically by aclocal 1.16.1 -*- Autoconf -*-
 
-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
+# Copyright (C) 1996-2018 Free Software Foundation, Inc.
 
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -20,7 +20,461 @@ You have another version of autoconf.  I
 If you have problems, you may need to regenerate the build system entirely.
 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
 
-# Copyright (C) 2002-2017 Free Software Foundation, Inc.
+# po.m4 serial 24 (gettext-0.19)
+dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+dnl
+dnl This file can be used in projects which are not available under
+dnl the GNU General Public License or the GNU Library General Public
+dnl License but which still want to provide support for the GNU gettext
+dnl functionality.
+dnl Please note that the actual code of the GNU gettext library is covered
+dnl by the GNU Library General Public License, and the rest of the GNU
+dnl gettext package is covered by the GNU General Public License.
+dnl They are *not* in the public domain.
+
+dnl Authors:
+dnl   Ulrich Drepper , 1995-2000.
+dnl   Bruno Haible , 2000-2003.
+
+AC_PREREQ([2.60])
+
+dnl 

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

2020-09-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Sep 17 20:26:22 UTC 2020

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

Log Message:
fix build.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/gdb/bin/gdb/Makefile
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/bin/gdbtui/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/gdb/Makefile
diff -u src/external/gpl3/gdb/bin/gdb/Makefile:1.17 src/external/gpl3/gdb/bin/gdb/Makefile:1.18
--- src/external/gpl3/gdb/bin/gdb/Makefile:1.17	Thu Sep 17 12:38:10 2020
+++ src/external/gpl3/gdb/bin/gdb/Makefile	Thu Sep 17 16:26:22 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.17 2020/09/17 16:38:10 christos Exp $
+#	$NetBSD: Makefile,v 1.18 2020/09/17 20:26:22 christos Exp $
 
 NOCTF=
 .include 
@@ -11,8 +11,7 @@ PROG=		gdb
 
 SRCS=		gdb.c
 CPPFLAGS+=	-I${.CURDIR} \
-		-I${GDBARCHDIR} \
-		-I${GDBARCHDIR}/gnulib/import \
+		-I${.CURDIR}/../../lib/libgnulib/arch/${GDB_MACHINE_ARCH}/gnulib \
 		-I${DIST}/gdb \
 		-I${DIST}/gdbsupport \
 		-I${DIST}/gdb/config \
@@ -22,13 +21,16 @@ CPPFLAGS+=	-I${.CURDIR} \
 		-I${DIST}/libdecnumber \
 		-I${DIST} \
 		-I${.CURDIR}/../../lib/libbfd/arch/${GDB_MACHINE_ARCH} \
+		-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}/bfd \
 		-I${DIST}/include \
 		${GCPPFLAGS:M-D*}
 
 TEXINFO=	gdb.texinfo stabs.texinfo
 INFOFLAGS=	-I${DIST}/gdb/doc -I${DIST}/gdb/mi \
-		-I${DIST}/readline/doc -I${.CURDIR}/.. -DGDBN=${GDBN}
+		-I${DIST}/readline/readline/doc -I${.CURDIR}/.. -DGDBN=${GDBN}
 
 GDBvn.texi: ${DIST}/gdb/version.in
 	echo "@set GDBVN $$(${TOOL_CAT} ${.ALLSRC})" > ${.TARGET}

Index: src/external/gpl3/gdb/bin/gdbtui/Makefile
diff -u src/external/gpl3/gdb/bin/gdbtui/Makefile:1.12 src/external/gpl3/gdb/bin/gdbtui/Makefile:1.13
--- src/external/gpl3/gdb/bin/gdbtui/Makefile:1.12	Wed Dec 13 16:52:55 2017
+++ src/external/gpl3/gdb/bin/gdbtui/Makefile	Thu Sep 17 16:26:22 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.12 2017/12/13 21:52:55 joerg Exp $
+#	$NetBSD: Makefile,v 1.13 2020/09/17 20:26:22 christos Exp $
 NOCTF=
 .include "../Makefile.inc"
 
@@ -9,14 +9,19 @@ PROG=		gdbtui
 
 SRCS=		tui-main.c
 CPPFLAGS+=	-I${.CURDIR} \
-		-I${GDBARCHDIR} \
+		-I${.CURDIR}/../../lib/libgnulib/arch/${GDB_MACHINE_ARCH}/gnulib \
 		-I${DIST}/gdb \
-		-I${DIST}/gdb/common \
+		-I${DIST}/gdbsupport \
 		-I${DIST}/gdb/config \
-		-I${DIST}/gdb/gnulib/import \
+		-I${DIST}/gnulib/import \
 		-I${DIST}/include/opcode \
+		-I${DIST}/readline \
+		-I${DIST}/libdecnumber \
 		-I${DIST} \
 		-I${.CURDIR}/../../lib/libbfd/arch/${GDB_MACHINE_ARCH} \
+		-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}/bfd \
 		-I${DIST}/include \
 		${GCPPFLAGS:M-D*}
@@ -31,11 +36,14 @@ HOST_CC:=		${HOST_CXX}
 CC:=			${CXX}
 CFLAGS:=		${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
 
-LIBOPCODESDIR!=   cd ${.CURDIR}/../../lib/libopcodes   && ${PRINTOBJDIR}
-LIBBFDDIR!=   cd ${.CURDIR}/../../lib/libbfd   && ${PRINTOBJDIR}
-LIBIBERTYDIR!=cd ${.CURDIR}/../../lib/libiberty&& ${PRINTOBJDIR}
-LIBGDBDIR!=	  cd ${.CURDIR}/../../lib/libgdb   && ${PRINTOBJDIR}
-LIBDECNUMBERDIR!= cd ${.CURDIR}/../../lib/libdecnumber && ${PRINTOBJDIR}
+LIBCTFDIR!=	 cd ${.CURDIR}/../../lib/libctf	   && ${PRINTOBJDIR}
+LIBGNULIBDIR!=	 cd ${.CURDIR}/../../lib/libgnulib	   && ${PRINTOBJDIR}
+LIBGDBSUPPORTDIR!=   cd ${.CURDIR}/../../lib/libgdbsupport && ${PRINTOBJDIR}
+LIBOPCODESDIR!=	 cd ${.CURDIR}/../../lib/libopcodes	   && ${PRINTOBJDIR}
+LIBBFDDIR!=	 cd ${.CURDIR}/../../lib/libbfd	   && ${PRINTOBJDIR}
+LIBIBERTYDIR!=	 cd ${.CURDIR}/../../lib/libiberty	   && ${PRINTOBJDIR}
+LIBGDBDIR!=	 cd ${.CURDIR}/../../lib/libgdb	   && ${PRINTOBJDIR}
+LIBDECNUMBERDIR!=cd ${.CURDIR}/../../lib/libdecnumber  && ${PRINTOBJDIR}
 
 .if ${USE_LIBEDIT} == yes
 LIBEDIT=-ledit
@@ -63,6 +71,9 @@ DPADD+=		${SIMOBJ}/libsim.a
 LDADD+= -L${LIBOPCODESDIR} -lopcodes \
 	-L${LIBBFDDIR} -lbfd \
 	-L${LIBDECNUMBERDIR} -ldecnumber \
+	-L${LIBGDBSUPPORTDIR} -lgdbsupport \
+	-L${LIBCTFDIR} -lctf \
+	-L${LIBGNULIBDIR} -lgnulib \
 	${LIBRL} \
 	-lterminfo \
 	-L${LIBIBERTYDIR} -liberty



CVS commit: src/external/gpl3/gdb/dist/gdb/doc

2020-09-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Sep 17 20:13:20 UTC 2020

Added Files:
src/external/gpl3/gdb/dist/gdb/doc: gcore.1 gdb-add-index.1 gdb.1
gdbinit.5 gdbserver.1

Log Message:
commit generated man pages


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.3 src/external/gpl3/gdb/dist/gdb/doc/gcore.1 \
src/external/gpl3/gdb/dist/gdb/doc/gdb-add-index.1 \
src/external/gpl3/gdb/dist/gdb/doc/gdb.1 \
src/external/gpl3/gdb/dist/gdb/doc/gdbinit.5 \
src/external/gpl3/gdb/dist/gdb/doc/gdbserver.1

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/dist/gdb/doc/gcore.1
diff -u /dev/null src/external/gpl3/gdb/dist/gdb/doc/gcore.1:1.3
--- /dev/null	Thu Sep 17 16:13:20 2020
+++ src/external/gpl3/gdb/dist/gdb/doc/gcore.1	Thu Sep 17 16:13:20 2020
@@ -0,0 +1,196 @@
+.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35)
+.\"
+.\" Standard preamble:
+.\" 
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings.  \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
+.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+.ds -- \(*W-
+.ds PI pi
+.if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+.if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
+.ds L" ""
+.ds R" ""
+.ds C` ""
+.ds C' ""
+'br\}
+.el\{\
+.ds -- \|\(em\|
+.ds PI \(*p
+.ds L" ``
+.ds R" ''
+.ds C`
+.ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el   .ds Aq '
+.\"
+.\" If the F register is >0, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD.  Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{\
+.if \nF \{\
+.de IX
+.tm Index:\\$1\t\\n%\t"\\$2"
+..
+.if !\nF==2 \{\
+.nr % 0
+.nr F 2
+.\}
+.\}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
+.\" fudge factors for nroff and troff
+.if n \{\
+.ds #H 0
+.ds #V .8m
+.ds #F .3m
+.ds #[ \f1
+.ds #] \fP
+.\}
+.if t \{\
+.ds #H ((1u-(n(.fu%2u))*.13m)
+.ds #V .6m
+.ds #F 0
+.ds #[ \&
+.ds #] \&
+.\}
+.\" simple accents for nroff and troff
+.if n \{\
+.ds ' \&
+.ds ` \&
+.ds ^ \&
+.ds , \&
+.ds ~ ~
+.ds /
+.\}
+.if t \{\
+.ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+.ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+.ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+.ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+.ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+.ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+.\" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+.\" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+.\" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+.ds : e
+.ds 8 ss
+.ds o a
+.ds d- d\h'-1'\(ga
+.ds D- D\h'-1'\(hy
+.ds th \o'bp'
+.ds Th \o'LP'
+.ds ae ae
+.ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" 
+.\"
+.IX Title "GCORE 1"
+.TH GCORE 1 "2020-09-17" "gdb-11.0.50.20200914-git" "GNU Development Tools"
+.\" For nroff, turn off justification.  Always turn off hyphenation; it makes

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

2020-09-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Sep 17 16:38:10 UTC 2020

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

Log Message:
Add new libraries


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gdb/bin/gdb/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/gdb/Makefile
diff -u src/external/gpl3/gdb/bin/gdb/Makefile:1.16 src/external/gpl3/gdb/bin/gdb/Makefile:1.17
--- src/external/gpl3/gdb/bin/gdb/Makefile:1.16	Wed Sep 16 22:17:51 2020
+++ src/external/gpl3/gdb/bin/gdb/Makefile	Thu Sep 17 12:38:10 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.16 2020/09/17 02:17:51 christos Exp $
+#	$NetBSD: Makefile,v 1.17 2020/09/17 16:38:10 christos Exp $
 
 NOCTF=
 .include 
@@ -42,11 +42,14 @@ stabs.info gdb.info: gdb-cfg.texi GDBvn.
 .include "../../Makefile.inc"
 .include 
 
-LIBOPCODESDIR!=   cd ${.CURDIR}/../../lib/libopcodes   && ${PRINTOBJDIR}
-LIBBFDDIR!=   cd ${.CURDIR}/../../lib/libbfd   && ${PRINTOBJDIR}
-LIBIBERTYDIR!=cd ${.CURDIR}/../../lib/libiberty&& ${PRINTOBJDIR}
-LIBGDBDIR!=	  cd ${.CURDIR}/../../lib/libgdb   && ${PRINTOBJDIR}
-LIBDECNUMBERDIR!= cd ${.CURDIR}/../../lib/libdecnumber && ${PRINTOBJDIR}
+LIBCTFDIR!=	 cd ${.CURDIR}/../../lib/libctf	   && ${PRINTOBJDIR}
+LIBGNULIBDIR!=	 cd ${.CURDIR}/../../lib/libgnulib	   && ${PRINTOBJDIR}
+LIBGDBSUPPORTDIR!=   cd ${.CURDIR}/../../lib/libgdbsupport && ${PRINTOBJDIR}
+LIBOPCODESDIR!=	 cd ${.CURDIR}/../../lib/libopcodes	   && ${PRINTOBJDIR}
+LIBBFDDIR!=	 cd ${.CURDIR}/../../lib/libbfd	   && ${PRINTOBJDIR}
+LIBIBERTYDIR!=	 cd ${.CURDIR}/../../lib/libiberty	   && ${PRINTOBJDIR}
+LIBGDBDIR!=	 cd ${.CURDIR}/../../lib/libgdb	   && ${PRINTOBJDIR}
+LIBDECNUMBERDIR!=cd ${.CURDIR}/../../lib/libdecnumber  && ${PRINTOBJDIR}
 
 .if ${USE_LIBEDIT} == yes
 LIBRL=-ledit
@@ -75,6 +78,9 @@ DPADD+=		${SIMOBJ}/libsim.a
 LDADD+= -L${LIBOPCODESDIR} -lopcodes \
 	-L${LIBBFDDIR} -lbfd \
 	-L${LIBDECNUMBERDIR} -ldecnumber \
+	-L${LIBGDBSUPPORTDIR} -lgdbsupport \
+	-L${LIBCTFDIR} -lctf \
+	-L${LIBGNULIBDIR} -lgnulib \
 	${LIBRL} \
 	-lterminfo \
 	-L${LIBIBERTYDIR} -liberty
@@ -82,6 +88,9 @@ LDADD+= -L${LIBOPCODESDIR} -lopcodes \
 DPADD+=	${LIBOPCODESDIR}/libopcodes.a \
 	${LIBBFDDIR}/libbfd.a \
 	${LIBDECNUMBERDIR}/libdecnumber.a \
+	${LIBGDBSUPPORTDIR}/libgdbsupport.a \
+	${LIBCTFDIR}/libctf.a \
+	${LIBGNULIBDIR}/libgnulib.a \
 	${LIBRLDP} \
 	${LIBTERMINFO} \
 	${LIBIBERTYDIR}/libiberty.a



CVS commit: src/external/gpl3/gdb/lib/libctf

2020-09-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Sep 17 16:45:35 UTC 2020

Modified Files:
src/external/gpl3/gdb/lib/libctf: Makefile

Log Message:
Generate ctf-error.h


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gdb/lib/libctf/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/lib/libctf/Makefile
diff -u src/external/gpl3/gdb/lib/libctf/Makefile:1.1 src/external/gpl3/gdb/lib/libctf/Makefile:1.2
--- src/external/gpl3/gdb/lib/libctf/Makefile:1.1	Thu Sep 17 12:36:38 2020
+++ src/external/gpl3/gdb/lib/libctf/Makefile	Thu Sep 17 12:45:35 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.1 2020/09/17 16:36:38 christos Exp $
+#	$NetBSD: Makefile,v 1.2 2020/09/17 16:45:35 christos Exp $
 
 NOCTF=
 #HOSTPROG_CXX=   1
@@ -16,6 +16,7 @@ GDBARCHDIR=	${.CURDIR}/arch/${GDB_MACHIN
 SRCS=		${G_OBJECTS:.o=.c}
 GCPPFLAGS=	${G_INTERNAL_CFLAGS}
 CPPFLAGS+=	-I${.CURDIR} \
+		-I. \
 		-I${DIST} \
 		-I${DIST}/libctf \
 		-I${DIST}/gnulib/import \
@@ -34,6 +35,14 @@ CPPFLAGS+=	-I${.CURDIR} \
 
 CWARNFLAGS.clang+=	-Wno-switch
 
+CLEANDIRFILES+= ctf-error.h
+
+${G_OBJECTS}: ctf-error.h
+
+ctf-error.h: ${DIST}/libctf/mkerrors.sed ${DIST}/include/ctf-api.h
+	${TOOL_SED} -nf ${DIST}/libctf/mkerrors.sed < ${DIST}/include/ctf-api.h > $@
+
+
 .include "../../Makefile.inc"
 .include 
 



CVS commit: src/external/gpl3/gdb/lib/libgdb/arch

2020-09-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Sep 17 16:07:41 UTC 2020

Removed Files:
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/alpha/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/arm/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/armeb/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/coldfire/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/hppa/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/i386/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/m68000/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/m68k/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mips64eb/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mipsel/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/powerpc/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sh3el/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sparc/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sparc64/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/vax/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/x86_64/build-gnulib: config.h

Log Message:
remove obsolete


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/build-gnulib/config.h
cvs rdiff -u -r1.7 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/alpha/build-gnulib/config.h
cvs rdiff -u -r1.8 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/arm/build-gnulib/config.h
cvs rdiff -u -r1.7 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/build-gnulib/config.h
cvs rdiff -u -r1.5 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/coldfire/build-gnulib/config.h
cvs rdiff -u -r1.8 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/hppa/build-gnulib/config.h
cvs rdiff -u -r1.7 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/i386/build-gnulib/config.h
cvs rdiff -u -r1.7 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/m68000/build-gnulib/config.h
cvs rdiff -u -r1.7 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/m68k/build-gnulib/config.h
cvs rdiff -u -r1.8 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/mips64eb/build-gnulib/config.h
cvs rdiff -u -r1.8 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/build-gnulib/config.h
cvs rdiff -u -r1.7 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/build-gnulib/config.h
cvs rdiff -u -r1.7 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/mipsel/build-gnulib/config.h
cvs rdiff -u -r1.8 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc/build-gnulib/config.h
cvs rdiff -u -r1.8 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/build-gnulib/config.h
cvs rdiff -u -r1.7 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/build-gnulib/config.h
cvs rdiff -u -r1.7 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/sh3el/build-gnulib/config.h
cvs rdiff -u -r1.10 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/sparc/build-gnulib/config.h
cvs rdiff -u -r1.9 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/sparc64/build-gnulib/config.h
cvs rdiff -u -r1.8 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/vax/build-gnulib/config.h
cvs rdiff -u -r1.9 -r0 \
src/external/gpl3/gdb/lib/libgdb/arch/x86_64/build-gnulib/config.h

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



CVS commit: src/external/gpl3/gdb/lib/libgdb

2020-09-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Sep 17 16:06:27 UTC 2020

Modified Files:
src/external/gpl3/gdb/lib/libgdb: Makefile
Added Files:
src/external/gpl3/gdb/lib/libgdb: dwarf2-frame.c

Log Message:
Avoid name conflict


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/external/gpl3/gdb/lib/libgdb/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/lib/libgdb/dwarf2-frame.c

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/lib/libgdb/Makefile
diff -u src/external/gpl3/gdb/lib/libgdb/Makefile:1.25 src/external/gpl3/gdb/lib/libgdb/Makefile:1.26
--- src/external/gpl3/gdb/lib/libgdb/Makefile:1.25	Wed Sep 16 22:17:52 2020
+++ src/external/gpl3/gdb/lib/libgdb/Makefile	Thu Sep 17 12:06:27 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.25 2020/09/17 02:17:52 christos Exp $
+#	$NetBSD: Makefile,v 1.26 2020/09/17 16:06:27 christos Exp $
 
 NOCTF=
 HOSTPROG_CXX=   1
@@ -13,11 +13,10 @@ GDBARCHDIR=	${.CURDIR}/arch/${GDB_MACHIN
 
 .include "${GDBARCHDIR}/defs.mk"
 
-SRCS=		${G_LIBGDB_OBS:.o=.c}
+SRCS=		${G_LIBGDB_OBS:.o=.c} dwarf2-frame.c
 GCPPFLAGS=	${G_INTERNAL_CFLAGS}
 CPPFLAGS+=	-I${.CURDIR} \
 		-I${GDBARCHDIR} \
-		-I${GDBARCHDIR}/gnulib/import \
 		-I${DIST} \
 		-I${DIST}/gdb \
 		-I${DIST}/gdbsupport \
@@ -26,6 +25,9 @@ CPPFLAGS+=	-I${.CURDIR} \
 		-I${DIST}/include/opcode \
 		-I${DIST}/readline \
 		-I${DIST}/libdecnumber \
+		-I${.CURDIR}/../libgnulib/arch/${GDB_MACHINE_ARCH} \
+		-I${.CURDIR}/../libgnulib/arch/${GDB_MACHINE_ARCH}/import \
+		-I${.CURDIR}/../libgdbsupport/arch/${GDB_MACHINE_ARCH} \
 		-I${.CURDIR}/../libbfd/arch/${GDB_MACHINE_ARCH} \
 		-I${.CURDIR}/../libdecnumber/arch/${GDB_MACHINE_ARCH} \
 		-I${DIST}/bfd \

Added files:

Index: src/external/gpl3/gdb/lib/libgdb/dwarf2-frame.c
diff -u /dev/null src/external/gpl3/gdb/lib/libgdb/dwarf2-frame.c:1.1
--- /dev/null	Thu Sep 17 12:06:27 2020
+++ src/external/gpl3/gdb/lib/libgdb/dwarf2-frame.c	Thu Sep 17 12:06:27 2020
@@ -0,0 +1 @@
+#include "dwarf2/frame.c"



CVS commit: src/external/gpl3/gdb/dist/libctf

2020-09-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Sep 17 16:05:14 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/libctf: ctf-endian.h

Log Message:
Avoid re-definitions


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/libctf/ctf-endian.h

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/dist/libctf/ctf-endian.h
diff -u src/external/gpl3/gdb/dist/libctf/ctf-endian.h:1.1.1.1 src/external/gpl3/gdb/dist/libctf/ctf-endian.h:1.2
--- src/external/gpl3/gdb/dist/libctf/ctf-endian.h:1.1.1.1	Mon Sep 14 21:44:12 2020
+++ src/external/gpl3/gdb/dist/libctf/ctf-endian.h	Thu Sep 17 12:05:14 2020
@@ -24,14 +24,22 @@
 #include 
 #include "swap.h"
 
-#if !defined (HAVE_ENDIAN_H) || !defined (htole64)
-#ifndef WORDS_BIGENDIAN
-# define htole64(x) (x)
-# define le64toh(x) (x)
-#else
-# define htole64(x) bswap_64 ((x))
-# define le64toh(x) bswap_64 ((x))
-#endif /* WORDS_BIGENDIAN */
+#if !defined (HAVE_ENDIAN_H)
+# ifndef WORDS_BIGENDIAN
+#  ifndef htole64
+#   define htole64(x) (x)
+#  endif
+#  ifndef le64toh
+#   define le64toh(x) (x)
+#  endif
+# else
+#  ifndef htole64
+#   define htole64(x) bswap_64 ((x))
+#  endif
+#  ifndef le64toh
+#   define le64toh(x) bswap_64 ((x))
+#  endif
+# endif /* WORDS_BIGENDIAN */
 #endif /* !defined(HAVE_ENDIAN_H) */
 
 #endif /* !defined(_CTF_ENDIAN_H) */



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-09-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Sep 17 02:12:31 UTC 2020

Added Files:
src/external/gpl3/gdb/dist/gdb: nbsd-nat.c

Log Message:
Add back accidentally missed file


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.16 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c

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/dist/gdb/nbsd-nat.c
diff -u /dev/null src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.16
--- /dev/null	Wed Sep 16 22:12:31 2020
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.c	Wed Sep 16 22:12:31 2020
@@ -0,0 +1,791 @@
+/* Native-dependent code for NetBSD.
+
+   Copyright (C) 2006-2020 Free Software Foundation, Inc.
+
+   This file is part of GDB.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see .  */
+
+#include "defs.h"
+
+#include "nbsd-nat.h"
+#include "nat/netbsd-nat.h"
+#include "gdbthread.h"
+#include "nbsd-tdep.h"
+#include "inferior.h"
+#include "gdbarch.h"
+
+#include 
+#include 
+#include 
+#include 
+
+/* Return the name of a file that can be opened to get the symbols for
+   the child process identified by PID.  */
+
+char *
+nbsd_nat_target::pid_to_exec_file (int pid)
+{
+  return const_cast (netbsd_nat::pid_to_exec_file (pid));
+}
+
+/* Return the current directory for the process identified by PID.  */
+
+static std::string
+nbsd_pid_to_cwd (int pid)
+{
+  char buf[PATH_MAX];
+  size_t buflen;
+  int mib[4] = {CTL_KERN, KERN_PROC_ARGS, pid, KERN_PROC_CWD};
+  buflen = sizeof (buf);
+  if (sysctl (mib, ARRAY_SIZE (mib), buf, , NULL, 0))
+return "";
+  return buf;
+}
+
+/* Return the kinfo_proc2 structure for the process identified by PID.  */
+
+static bool
+nbsd_pid_to_kinfo_proc2 (pid_t pid, struct kinfo_proc2 *kp)
+{
+  gdb_assert (kp != nullptr);
+
+  size_t size = sizeof (*kp);
+  int mib[6] = {CTL_KERN, KERN_PROC2, KERN_PROC_PID, pid,
+		static_cast (size), 1};
+  return !sysctl (mib, ARRAY_SIZE (mib), kp, , NULL, 0);
+}
+
+/* Return the command line for the process identified by PID.  */
+
+static gdb::unique_xmalloc_ptr
+nbsd_pid_to_cmdline (int pid)
+{
+  int mib[4] = {CTL_KERN, KERN_PROC_ARGS, pid, KERN_PROC_ARGV};
+
+  size_t size = 0;
+  if (::sysctl (mib, ARRAY_SIZE (mib), NULL, , NULL, 0) == -1 || size == 0)
+return nullptr;
+
+  gdb::unique_xmalloc_ptr args (XNEWVAR (char, size));
+
+  if (::sysctl (mib, ARRAY_SIZE (mib), args.get (), , NULL, 0) == -1
+  || size == 0)
+return nullptr;
+
+  /* Arguments are returned as a flattened string with NUL separators.
+ Join the arguments with spaces to form a single string.  */
+  for (size_t i = 0; i < size - 1; i++)
+if (args[i] == '\0')
+  args[i] = ' ';
+  args[size - 1] = '\0';
+
+  return args;
+}
+
+/* Return true if PTID is still active in the inferior.  */
+
+bool
+nbsd_nat_target::thread_alive (ptid_t ptid)
+{
+  return netbsd_nat::thread_alive (ptid);
+}
+
+/* Return the name assigned to a thread by an application.  Returns
+   the string in a static buffer.  */
+
+const char *
+nbsd_nat_target::thread_name (struct thread_info *thr)
+{
+  ptid_t ptid = thr->ptid;
+  return netbsd_nat::thread_name (ptid);
+}
+
+/* Implement the "post_attach" target_ops method.  */
+
+static void
+nbsd_add_threads (nbsd_nat_target *target, pid_t pid)
+{
+  auto fn
+= [] (ptid_t ptid)
+  {
+	if (!in_thread_list (target, ptid))
+	  {
+	if (inferior_ptid.lwp () == 0)
+	  thread_change_ptid (target, inferior_ptid, ptid);
+	else
+	  add_thread (target, ptid);
+	  }
+  };
+
+  netbsd_nat::for_each_thread (pid, fn);
+}
+
+/* Implement the "post_startup_inferior" target_ops method.  */
+
+void
+nbsd_nat_target::post_startup_inferior (ptid_t ptid)
+{
+  netbsd_nat::enable_proc_events (ptid.pid ());
+}
+
+/* Implement the "post_attach" target_ops method.  */
+
+void
+nbsd_nat_target::post_attach (int pid)
+{
+  netbsd_nat::enable_proc_events (pid);
+  nbsd_add_threads (this, pid);
+}
+
+/* Implement the "update_thread_list" target_ops method.  */
+
+void
+nbsd_nat_target::update_thread_list ()
+{
+  delete_exited_threads ();
+}
+
+/* Convert PTID to a string.  */
+
+std::string
+nbsd_nat_target::pid_to_str (ptid_t ptid)
+{
+  int lwp = ptid.lwp ();
+
+  if (lwp != 0)
+{
+  pid_t pid = ptid.pid ();
+
+  return string_printf ("LWP %d of process 

CVS commit: src/external/gpl3/gdb

2020-09-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Sep 15 02:05:31 UTC 2020

Modified Files:
src/external/gpl3/gdb: gdb2netbsd
src/external/gpl3/gdb/dist: config.guess config.sub
src/external/gpl3/gdb/dist/bfd: bfdio.c config.bfd configure elf.c
elf32-arm.c elf32-i386.c merge.c netbsd-core.c
src/external/gpl3/gdb/dist/bfd/doc: Makefile.am Makefile.in
src/external/gpl3/gdb/dist/binutils/po: sv.po
src/external/gpl3/gdb/dist/gdb: ChangeLog Makefile.in aarch64-tdep.c
ada-lang.c alpha-bsd-nat.c alpha-bsd-tdep.h alpha-nbsd-tdep.c
alpha-tdep.c amd64-bsd-nat.c amd64-nbsd-nat.c amd64-nbsd-tdep.c
arm-bsd-tdep.c arm-nbsd-nat.c arm-nbsd-tdep.c arm-tdep.c auxv.c
bsd-kvm.c configure configure.ac configure.host configure.nat
configure.tgt dtrace-probe.c event-top.c hppa-nbsd-nat.c
hppa-nbsd-tdep.c hppa-tdep.c hppa-tdep.h i386-bsd-nat.c
i386-bsd-nat.h i386-nbsd-nat.c i386-nbsd-tdep.c inf-ptrace.c
inflow.c inflow.h infrun.c m68k-bsd-nat.c mips-nbsd-nat.c
mips-nbsd-tdep.c mips-nbsd-tdep.h mips-tdep.h nbsd-nat.h
nbsd-tdep.c nbsd-tdep.h objfiles.c p-exp.y ppc-nbsd-nat.c
ppc-nbsd-tdep.c ppc-nbsd-tdep.h regcache.c remote.c ser-unix.c
sh-nbsd-nat.c sh-nbsd-tdep.c sh-tdep.c solib.c sparc-nat.c
sparc-nat.h sparc-nbsd-nat.c sparc-nbsd-tdep.c sparc-tdep.h
sparc64-nbsd-nat.c sparc64-nbsd-tdep.c sparc64-tdep.c top.c
ui-file.c user-regs.c utils.c varobj.c vax-bsd-nat.c
vax-nbsd-tdep.c x86-bsd-nat.c
src/external/gpl3/gdb/dist/gdb/doc: stabs.texinfo
src/external/gpl3/gdb/dist/gdb/tui: tui-data.c tui-stack.c
tui-wingeneral.c tui-winsource.c
src/external/gpl3/gdb/dist/include/elf: common.h
src/external/gpl3/gdb/dist/include/opcode: ppc.h
src/external/gpl3/gdb/dist/libiberty: make-temp-file.c strerror.c
src/external/gpl3/gdb/dist/opcodes: arm-dis.c cgen.sh configure
src/external/gpl3/gdb/dist/readline/readline/doc: texi2dvi texi2html
src/external/gpl3/gdb/dist/readline/readline/examples: readlinebuf.h
src/external/gpl3/gdb/dist/readline/readline/examples/rlfe: config.h.in
extern.h os.h
src/external/gpl3/gdb/dist/sim: configure
src/external/gpl3/gdb/dist/sim/common: callback.c create-version.sh
src/external/gpl3/gdb/dist/sim/mn10300: Makefile.in
src/external/gpl3/gdb/dist/sim/ppc: emul_netbsd.c
src/external/gpl3/gdb/dist/sim/v850: Makefile.in
src/external/gpl3/gdb/dist/zlib: ChangeLog adler32.c compress.c crc32.c
deflate.c deflate.h example.c minigzip.c trees.c uncompr.c zconf.h
zconf.h.cmakein zconf.h.in zutil.c zutil.h
src/external/gpl3/gdb/dist/zlib/contrib/ada: buffer_demo.adb mtest.adb
read.adb test.adb zlib-streams.adb zlib-streams.ads zlib-thin.adb
zlib-thin.ads zlib.adb zlib.ads
src/external/gpl3/gdb/dist/zlib/contrib/iostream2: zstream.h
src/external/gpl3/gdb/dist/zlib/test: example.c minigzip.c
Removed Files:
src/external/gpl3/gdb/dist: md5.sum
src/external/gpl3/gdb/dist/bfd: aout-tic30.c coff-ppc.c coff-tic80.c
cpu-cr16c.c cpu-plugin.c cpu-tic80.c elf32-cr16c.c pe-ppc.c
pei-ppc.c
src/external/gpl3/gdb/dist/bfd/doc: aoutx.texi archive.texi
archures.texi bfd.info bfdio.texi bfdt.texi bfdver.texi bfdwin.texi
cache.texi coffcode.texi core.texi elf.texi elfcode.texi
format.texi hash.texi init.texi libbfd.texi linker.texi mmo.texi
opncls.texi reloc.texi section.texi syms.texi targets.texi
src/external/gpl3/gdb/dist/bfd/po: da.gmo es.gmo fi.gmo fr.gmo hr.gmo
id.gmo ja.gmo pt.gmo ro.gmo ru.gmo rw.gmo sr.gmo sv.gmo tr.gmo
uk.gmo vi.gmo zh_CN.gmo
src/external/gpl3/gdb/dist/gdb: ctf.c ctf.h demangle.c
dwarf-index-cache.c dwarf-index-cache.h dwarf-index-common.c
dwarf-index-common.h dwarf-index-write.c dwarf-index-write.h
dwarf2-frame-tailcall.c dwarf2-frame-tailcall.h dwarf2-frame.c
dwarf2-frame.h dwarf2expr.c dwarf2expr.h dwarf2loc.c dwarf2loc.h
dwarf2read.c dwarf2read.h event-loop.c event-loop.h gcore
gdb-dlfcn.c gdb-dlfcn.h gdb_select.h gdb_usleep.c gdb_usleep.h
i386-cygwin-tdep.c libmcheck.m4 nbsd-nat.c selftest.m4 solib-spu.c
solib-spu.h spu-linux-nat.c spu-multiarch.c spu-tdep.c spu-tdep.h
warning.m4
src/external/gpl3/gdb/dist/gdb/common: agent.c agent.h array-view.h
ax.def break-common.h btrace-common.c btrace-common.h buffer.c
buffer.h byte-vector.h cleanups.c cleanups.h common-debug.c
common-debug.h common-defs.h common-exceptions.c
common-exceptions.h 

CVS commit: src/external/gpl3/gdb/lib/libgdb

2020-09-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Sep  7 00:24:17 UTC 2020

Modified Files:
src/external/gpl3/gdb/lib/libgdb: Makefile

Log Message:
apply -Wno-error=alloca-larger-than= for GCC 9.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/gdb/lib/libgdb/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/lib/libgdb/Makefile
diff -u src/external/gpl3/gdb/lib/libgdb/Makefile:1.23 src/external/gpl3/gdb/lib/libgdb/Makefile:1.24
--- src/external/gpl3/gdb/lib/libgdb/Makefile:1.23	Sun May  3 07:10:27 2020
+++ src/external/gpl3/gdb/lib/libgdb/Makefile	Mon Sep  7 00:24:17 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.23 2020/05/03 07:10:27 rin Exp $
+#	$NetBSD: Makefile,v 1.24 2020/09/07 00:24:17 mrg Exp $
 
 NOCTF=
 HOSTPROG_CXX=   1
@@ -74,3 +74,6 @@ CLEANDIRFILES+= \
 	m2-exp.c \
 	p-exp.c \
 	rust-exp.c
+
+# corelow.c
+CWARNFLAGS.gcc+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -Wno-error=alloca-larger-than= :}



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-05-22 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sat May 23 00:30:40 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: alpha-tdep.c

Log Message:
Revive entrypoint heuristics, accidentally removed in the previous.

Now, e.g., "b main" works again for "gdb /bin/echo" as expected.

See more details:
http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gdb/dist/gdb/alpha-tdep.c#rev1.2

XXX
Single-stepping into shared libraries still fails sometimes;
tracee does not stop at a function in shared library.
We need further analysis...


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/alpha-tdep.c

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/dist/gdb/alpha-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/alpha-tdep.c:1.4 src/external/gpl3/gdb/dist/gdb/alpha-tdep.c:1.5
--- src/external/gpl3/gdb/dist/gdb/alpha-tdep.c:1.4	Sun May 26 21:40:01 2019
+++ src/external/gpl3/gdb/dist/gdb/alpha-tdep.c	Sat May 23 00:30:40 2020
@@ -1825,6 +1825,9 @@ alpha_gdbarch_init (struct gdbarch_info 
   /* Prologue heuristics.  */
   set_gdbarch_skip_prologue (gdbarch, alpha_skip_prologue);
 
+  /* Entrypoint heuristics.  */
+  set_gdbarch_skip_entrypoint (gdbarch, alpha_skip_entrypoint);
+
   /* Call info.  */
 
   set_gdbarch_return_value (gdbarch, alpha_return_value);



CVS commit: src/external/gpl3/gdb/lib/libgdb

2020-05-03 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sun May  3 07:10:27 UTC 2020

Modified Files:
src/external/gpl3/gdb/lib/libgdb: Makefile

Log Message:
Remove hack for amiga introduced for 68060:
http://cvsweb.netbsd.org/bsdweb.cgi/src/gnu/usr.bin/gdb6/libgdb/Attic/Makefile#rev1.9

Now, gdb works fine even if compiled with -march=68060 and -mtune=68060.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/external/gpl3/gdb/lib/libgdb/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/lib/libgdb/Makefile
diff -u src/external/gpl3/gdb/lib/libgdb/Makefile:1.22 src/external/gpl3/gdb/lib/libgdb/Makefile:1.23
--- src/external/gpl3/gdb/lib/libgdb/Makefile:1.22	Wed Apr 29 11:04:58 2020
+++ src/external/gpl3/gdb/lib/libgdb/Makefile	Sun May  3 07:10:27 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.22 2020/04/29 11:04:58 rin Exp $
+#	$NetBSD: Makefile,v 1.23 2020/05/03 07:10:27 rin Exp $
 
 NOCTF=
 HOSTPROG_CXX=   1
@@ -54,10 +54,6 @@ CFLAGS:=		${CXXFLAGS} -std=gnu++11 -Wno-
 
 ada-exp.c: ada-lex.c
 
-.if ${MACHINE} == "amiga"
-COPTS.dwarf2-frame.c+=-O1
-.endif
-
 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
 .if !empty(MACHINE_ARCH:Mearmv7hf*)
 # GCC 8.4 miscompiles this with -O2 or -O1 for earmv7hf{,eb}.



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-05-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat May  2 12:56:55 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: bsd-kvm.c

Log Message:
Switch to the current thread, and reload the symbol file.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gdb/dist/gdb/bsd-kvm.c

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/dist/gdb/bsd-kvm.c
diff -u src/external/gpl3/gdb/dist/gdb/bsd-kvm.c:1.16 src/external/gpl3/gdb/dist/gdb/bsd-kvm.c:1.17
--- src/external/gpl3/gdb/dist/gdb/bsd-kvm.c:1.16	Thu May 30 17:43:23 2019
+++ src/external/gpl3/gdb/dist/gdb/bsd-kvm.c	Sat May  2 08:56:55 2020
@@ -28,6 +28,7 @@
 #include "value.h"
 #include "gdbcore.h"
 #include "inferior.h"  /* for get_exec_file */
+#include "symfile.h"
 #include "gdbthread.h"
 #include "arch-utils.h"
 
@@ -144,9 +145,12 @@ bsd_kvm_target_open (const char *arg, in
 
   inf->gdbarch = get_current_arch ();
 
-  add_thread_silent (bsd_kvm_ptid);
+  thread_info *tp = add_thread_silent (bsd_kvm_ptid);
+  switch_to_thread(tp);
   inferior_ptid = bsd_kvm_ptid;
 
+  symbol_file_add_main(execfile, 0);
+
   target_fetch_registers (get_current_regcache (), -1);
 
   reinit_frame_cache ();



CVS commit: src/external/gpl3/gdb/lib/libgdb

2020-04-29 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Wed Apr 29 11:04:58 UTC 2020

Modified Files:
src/external/gpl3/gdb/lib/libgdb: Makefile

Log Message:
PR toolchain/54820
PR toolchain/54877

GCC 8.4 miscompiles dwarf2expr.c with -O2 or -O1 for earmv7hf{,eb}, which
results in crashes described in the PRs. No upstream fixes up to now. So,
let us disable optimization for this file.

Note that this affects only earmv7hf{,eb} as far as I can see. Crashes do
not occur neither for earmv6hf{,eb} nor earmv7{,eb}.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/external/gpl3/gdb/lib/libgdb/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/lib/libgdb/Makefile
diff -u src/external/gpl3/gdb/lib/libgdb/Makefile:1.21 src/external/gpl3/gdb/lib/libgdb/Makefile:1.22
--- src/external/gpl3/gdb/lib/libgdb/Makefile:1.21	Fri Jul 12 22:45:07 2019
+++ src/external/gpl3/gdb/lib/libgdb/Makefile	Wed Apr 29 11:04:58 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.21 2019/07/12 22:45:07 christos Exp $
+#	$NetBSD: Makefile,v 1.22 2020/04/29 11:04:58 rin Exp $
 
 NOCTF=
 HOSTPROG_CXX=   1
@@ -58,6 +58,14 @@ ada-exp.c: ada-lex.c
 COPTS.dwarf2-frame.c+=-O1
 .endif
 
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
+.if !empty(MACHINE_ARCH:Mearmv7hf*)
+# GCC 8.4 miscompiles this with -O2 or -O1 for earmv7hf{,eb}.
+# Neither earmv6hf{,eb} nor earmv7{,eb} are affected.
+COPTS.dwarf2expr.c+=-O0
+.endif
+.endif
+
 # These are generated by implicit rules and are not easy to generate
 CLEANDIRFILES+= \
 	ada-exp.c ada-lex.c \



CVS commit: src/external/gpl3/gdb/dist

2020-03-12 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Mar 12 15:56:45 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/libiberty: strerror.c
src/external/gpl3/gdb/dist/sim/ppc: events.c hw_memory.c

Log Message:
Reduce diff with upstream

Remove local no longer needed modifications.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/libiberty/strerror.c
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/sim/ppc/events.c \
src/external/gpl3/gdb/dist/sim/ppc/hw_memory.c

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/dist/libiberty/strerror.c
diff -u src/external/gpl3/gdb/dist/libiberty/strerror.c:1.3 src/external/gpl3/gdb/dist/libiberty/strerror.c:1.4
--- src/external/gpl3/gdb/dist/libiberty/strerror.c:1.3	Sun Aug 16 09:58:18 2015
+++ src/external/gpl3/gdb/dist/libiberty/strerror.c	Thu Mar 12 15:56:44 2020
@@ -347,7 +347,7 @@ static const struct error_info error_tab
   ENTRY(EPROTOTYPE, "EPROTOTYPE", "Protocol wrong type for socket"),
 #endif
 #if defined (ENOPROTOOPT)
-  ENTRY(ENOPROTOOPT, "ENOPROTOOPT", "Protocol option not available"),
+  ENTRY(ENOPROTOOPT, "ENOPROTOOPT", "Protocol not available"),
 #endif
 #if defined (EPROTONOSUPPORT)
   ENTRY(EPROTONOSUPPORT, "EPROTONOSUPPORT", "Protocol not supported"),

Index: src/external/gpl3/gdb/dist/sim/ppc/events.c
diff -u src/external/gpl3/gdb/dist/sim/ppc/events.c:1.3 src/external/gpl3/gdb/dist/sim/ppc/events.c:1.4
--- src/external/gpl3/gdb/dist/sim/ppc/events.c:1.3	Thu Oct  3 18:30:46 2013
+++ src/external/gpl3/gdb/dist/sim/ppc/events.c	Thu Mar 12 15:56:45 2020
@@ -24,7 +24,6 @@
 #include "basics.h"
 #include "events.h"
 
-#include 
 #include 
 #include 
 
Index: src/external/gpl3/gdb/dist/sim/ppc/hw_memory.c
diff -u src/external/gpl3/gdb/dist/sim/ppc/hw_memory.c:1.3 src/external/gpl3/gdb/dist/sim/ppc/hw_memory.c:1.4
--- src/external/gpl3/gdb/dist/sim/ppc/hw_memory.c:1.3	Sun Aug 16 10:00:19 2015
+++ src/external/gpl3/gdb/dist/sim/ppc/hw_memory.c	Thu Mar 12 15:56:45 2020
@@ -29,8 +29,6 @@
 
 #include "device_table.h"
 
-#include 
-
 /* DEVICE
 
 



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-02-22 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sun Feb 23 02:06:01 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: sparc64-tdep.c

Log Message:
Use C++ syntax for defining types, not C one.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.8 -r1.2 src/external/gpl3/gdb/dist/gdb/sparc64-tdep.c

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/dist/gdb/sparc64-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/sparc64-tdep.c:1.1.1.8 src/external/gpl3/gdb/dist/gdb/sparc64-tdep.c:1.2
--- src/external/gpl3/gdb/dist/gdb/sparc64-tdep.c:1.1.1.8	Sun May 26 20:59:21 2019
+++ src/external/gpl3/gdb/dist/gdb/sparc64-tdep.c	Sun Feb 23 02:06:01 2020
@@ -86,7 +86,7 @@
 static struct cmd_list_element *sparc64adilist = NULL;
 
 /* ADI stat settings.  */
-typedef struct
+struct adi_stat_t
 {
   /* The ADI block size.  */
   unsigned long blksize;
@@ -108,7 +108,7 @@ typedef struct
   /* ADI is available.  */
   bool is_avail = false;
 
-} adi_stat_t;
+};
 
 /* Per-process ADI stat info.  */
 



CVS commit: src/external/gpl3/gdb/dist/gdb

2020-01-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 30 20:38:12 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: solib.c

Log Message:
Don't implicitly cast away const char * when using correct C++ string.h
implementations. Those have overloaded string operations that preserve
constness.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/gdb/solib.c

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/dist/gdb/solib.c
diff -u src/external/gpl3/gdb/dist/gdb/solib.c:1.8 src/external/gpl3/gdb/dist/gdb/solib.c:1.9
--- src/external/gpl3/gdb/dist/gdb/solib.c:1.8	Fri Nov 22 01:48:50 2019
+++ src/external/gpl3/gdb/dist/gdb/solib.c	Thu Jan 30 20:38:12 2020
@@ -509,7 +509,7 @@ solib_bfd_open (const char *pathname)
   if (!b->compatible (b, bfd_get_arch_info (abfd.get (
 {
   char buf[SO_NAME_MAX_PATH_SIZE];
-  char *slash = strrchr(pathname, '/');
+  const char *slash = strrchr(pathname, '/');
   if (slash)
 {
   struct stat st;



CVS commit: src/external/gpl3/gdb/lib/libgdb/arch

2019-05-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun May  5 20:48:48 UTC 2019

Modified Files:
src/external/gpl3/gdb/lib/libgdb/arch/aarch64: config.h
src/external/gpl3/gdb/lib/libgdb/arch/alpha: config.h
src/external/gpl3/gdb/lib/libgdb/arch/arm: config.h
src/external/gpl3/gdb/lib/libgdb/arch/armeb: config.h
src/external/gpl3/gdb/lib/libgdb/arch/coldfire: config.h
src/external/gpl3/gdb/lib/libgdb/arch/hppa: config.h
src/external/gpl3/gdb/lib/libgdb/arch/i386: config.h
src/external/gpl3/gdb/lib/libgdb/arch/m68000: config.h
src/external/gpl3/gdb/lib/libgdb/arch/m68k: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mips64eb: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mips64el: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mipseb: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mipsel: config.h
src/external/gpl3/gdb/lib/libgdb/arch/powerpc: config.h
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sh3el: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sparc: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sparc64: config.h
src/external/gpl3/gdb/lib/libgdb/arch/vax: config.h

Log Message:
Everyone has libexpat so enable it.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/config.h
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/lib/libgdb/arch/alpha/config.h
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gdb/lib/libgdb/arch/arm/config.h
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/lib/libgdb/arch/armeb/config.h
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gdb/lib/libgdb/arch/coldfire/config.h
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/lib/libgdb/arch/hppa/config.h
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/lib/libgdb/arch/i386/config.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gdb/lib/libgdb/arch/m68000/config.h
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/lib/libgdb/arch/m68k/config.h
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libgdb/arch/mips64eb/config.h
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/mipsel/config.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc/config.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/config.h
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/config.h
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/lib/libgdb/arch/sh3el/config.h
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/lib/libgdb/arch/sparc/config.h
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libgdb/arch/sparc64/config.h
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gdb/lib/libgdb/arch/vax/config.h

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/lib/libgdb/arch/aarch64/config.h
diff -u src/external/gpl3/gdb/lib/libgdb/arch/aarch64/config.h:1.1 src/external/gpl3/gdb/lib/libgdb/arch/aarch64/config.h:1.2
--- src/external/gpl3/gdb/lib/libgdb/arch/aarch64/config.h:1.1	Wed Jul 11 09:34:27 2018
+++ src/external/gpl3/gdb/lib/libgdb/arch/aarch64/config.h	Sun May  5 16:48:46 2019
@@ -240,7 +240,7 @@
 /* #undef HAVE_LIBDL */
 
 /* Define if you have the expat library. */
-/* #undef HAVE_LIBEXPAT */
+#define HAVE_LIBEXPAT 1
 
 /* Define to 1 if you have the `libiconvlist' function. */
 /* #undef HAVE_LIBICONVLIST */

Index: src/external/gpl3/gdb/lib/libgdb/arch/alpha/config.h
diff -u src/external/gpl3/gdb/lib/libgdb/arch/alpha/config.h:1.8 src/external/gpl3/gdb/lib/libgdb/arch/alpha/config.h:1.9
--- src/external/gpl3/gdb/lib/libgdb/arch/alpha/config.h:1.8	Wed Nov 29 13:15:32 2017
+++ src/external/gpl3/gdb/lib/libgdb/arch/alpha/config.h	Sun May  5 16:48:46 2019
@@ -240,7 +240,7 @@
 /* #undef HAVE_LIBDL */
 
 /* Define if you have the expat library. */
-/* #undef HAVE_LIBEXPAT */
+#define HAVE_LIBEXPAT 1
 
 /* Define to 1 if you have the `libiconvlist' function. */
 /* #undef HAVE_LIBICONVLIST */

Index: src/external/gpl3/gdb/lib/libgdb/arch/arm/config.h
diff -u src/external/gpl3/gdb/lib/libgdb/arch/arm/config.h:1.9 src/external/gpl3/gdb/lib/libgdb/arch/arm/config.h:1.10
--- src/external/gpl3/gdb/lib/libgdb/arch/arm/config.h:1.9	Wed Nov 29 17:39:59 2017
+++ src/external/gpl3/gdb/lib/libgdb/arch/arm/config.h	Sun May  5 16:48:46 2019
@@ -240,7 +240,7 @@
 /* #undef HAVE_LIBDL */
 
 /* Define if you have the expat library. */
-/* #undef HAVE_LIBEXPAT */
+#define HAVE_LIBEXPAT 1
 
 /* Define to 1 if you have the `libiconvlist' function. */
 /* #undef HAVE_LIBICONVLIST */


CVS commit: src/external/gpl3/gdb/dist/gdb

2019-05-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Fri May  3 19:06:50 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/gdb: nbsd-nat.c

Log Message:
Improve comment in the GDB NetBSD code


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c

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/dist/gdb/nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.8 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.9
--- src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.8	Fri May  3 19:03:57 2019
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.c	Fri May  3 19:06:50 2019
@@ -364,8 +364,7 @@ nbsd_wait (struct target_ops *ops,
* Always perform polling on exact PID, overwrite the default polling on
* WAIT_ANY.
*
-   * This avoids events reported in random order reported for FORK / VFORK
-   * when child and parent events are otherwise reported in random order.
+   * This avoids events reported in random order reported for FORK / VFORK.
*
* Polling on traced parent always simplifies the code.
*/



CVS commit: src/external/gpl3/gdb/dist/gdb

2019-05-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Fri May  3 19:03:57 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/gdb: infrun.c nbsd-nat.c

Log Message:
Overwrite waiton_ptid in nbsd-nat, rather than generic core

This avoids compatibility issues with remote access to !NetBSD platform.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/infrun.c
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c

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/dist/gdb/infrun.c
diff -u src/external/gpl3/gdb/dist/gdb/infrun.c:1.2 src/external/gpl3/gdb/dist/gdb/infrun.c:1.3
--- src/external/gpl3/gdb/dist/gdb/infrun.c:1.2	Fri May  3 07:05:28 2019
+++ src/external/gpl3/gdb/dist/gdb/infrun.c	Fri May  3 19:03:57 2019
@@ -3874,11 +3874,7 @@ fetch_inferior_event (void *client_data)
   struct cleanup *old_chain = make_cleanup (null_cleanup, NULL);
   struct cleanup *ts_old_chain;
   int cmd_done = 0;
-#if defined(__NetBSD__)
-  ptid_t waiton_ptid = inferior_ptid;
-#else
   ptid_t waiton_ptid = minus_one_ptid;
-#endif
 
   memset (ecs, 0, sizeof (*ecs));
 

Index: src/external/gpl3/gdb/dist/gdb/nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.7 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.8
--- src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.7	Fri May  3 07:05:28 2019
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.c	Fri May  3 19:03:57 2019
@@ -360,6 +360,17 @@ nbsd_wait (struct target_ops *ops,
 {
   ptid_t wptid;
 
+  /*
+   * Always perform polling on exact PID, overwrite the default polling on
+   * WAIT_ANY.
+   *
+   * This avoids events reported in random order reported for FORK / VFORK
+   * when child and parent events are otherwise reported in random order.
+   *
+   * Polling on traced parent always simplifies the code.
+   */
+  ptid = inferior_ptid;
+
   if (debug_nbsd_lwp)
 fprintf_unfiltered (gdb_stdlog, "NLWP: calling super_wait (%d, %ld, %ld) target_options=%#x\n",
 ptid_get_pid (ptid), ptid_get_lwp (ptid),



CVS commit: src/external/gpl3/gdb/dist/gdb

2019-05-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Fri May  3 07:05:28 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/gdb: infrun.c nbsd-nat.c

Log Message:
Quick clean up the NetBSD support in GDB

Changes:

 - always perform polling on inferior_ptid, never -1
   -1 can cause catching fork/vfork events in random order
   polling on pid will guarantee to report events in expected order

 - assume availability of KERN_PROC_PATHNAME

 - drop dead code for KERN_PROC_AUXV (FreeBSD-specific sysctl)
   AUXV on NetBSD is handled with PIOD_READ_AUXV

 - drop unused nbsd_fetch_kinfo_proc

 - drop unneeded hacks for fork/vfork code

 - drop support for FreeBSD specific flags returned for PT_LWPINFO
   NetBSD uses PT_GET_SIGINFO / PT_GET_PROCESS_STATE for most pieces of
   information

 - port nbsd_thread_name to NetBSD

 - enable LWP and FORK events in nbsd_enable_proc_events

 - use NetBSD new batteries for distinguishing event type in to_wait
   map most events into GDB types
   breakpoint, single step, hw breakpoint/watchpoint ones are still not
   used with the full power here

 - add support for EXEC events

 - clean up

This change makes GDB functional with threaded code and it is good enough
to pass t_regress / threads test.

It's possible to execute and step processes with multiple threads, use
scheduler-lock, follow-fork etc features.

What does not work:

 - the LWP EXIT event and wait() are not synchronized and can deadlock
   this has been observed with exiting go applications

 - GDB VFORK code is still disabled and awaits kernel fixing

Short term goal is to correct LWP EXIT and follow up with VFORK fixes.

Long term goal is to rewrite NetBSD GDB support and write new support in
the remote process plugin (gdb-server) framework.

PR kern/53120
PR port-arm/51677
PR bin/54060
PR bin/49662
PR kern/52548


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.7 -r1.2 src/external/gpl3/gdb/dist/gdb/infrun.c
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c

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/dist/gdb/infrun.c
diff -u src/external/gpl3/gdb/dist/gdb/infrun.c:1.1.1.7 src/external/gpl3/gdb/dist/gdb/infrun.c:1.2
--- src/external/gpl3/gdb/dist/gdb/infrun.c:1.1.1.7	Tue Nov 28 18:18:23 2017
+++ src/external/gpl3/gdb/dist/gdb/infrun.c	Fri May  3 07:05:28 2019
@@ -3874,7 +3874,11 @@ fetch_inferior_event (void *client_data)
   struct cleanup *old_chain = make_cleanup (null_cleanup, NULL);
   struct cleanup *ts_old_chain;
   int cmd_done = 0;
+#if defined(__NetBSD__)
+  ptid_t waiton_ptid = inferior_ptid;
+#else
   ptid_t waiton_ptid = minus_one_ptid;
+#endif
 
   memset (ecs, 0, sizeof (*ecs));
 

Index: src/external/gpl3/gdb/dist/gdb/nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.6 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.7
--- src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.6	Sat Jun 23 03:15:55 2018
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.c	Fri May  3 07:05:28 2019
@@ -45,7 +45,6 @@ nbsd_pid_to_exec_file (struct target_ops
   static char buf[PATH_MAX];
   char name[PATH_MAX];
 
-#ifdef KERN_PROC_PATHNAME
   size_t buflen;
   int mib[4];
 
@@ -56,7 +55,6 @@ nbsd_pid_to_exec_file (struct target_ops
   buflen = sizeof buf;
   if (sysctl (mib, 4, buf, , NULL, 0) == 0)
 return buf;
-#endif
 
   xsnprintf (name, PATH_MAX, "/proc/%d/exe", pid);
   len = readlink (name, buf, PATH_MAX - 1);
@@ -131,79 +129,6 @@ nbsd_find_memory_regions (struct target_
   return 0;
 }
 
-#ifdef KERN_PROC_AUXV
-static enum target_xfer_status (*super_xfer_partial) (struct target_ops *ops,
-		  enum target_object object,
-		  const char *annex,
-		  gdb_byte *readbuf,
-		  const gdb_byte *writebuf,
-		  ULONGEST offset,
-		  ULONGEST len,
-		  ULONGEST *xfered_len);
-
-/* Implement the "to_xfer_partial target_ops" method.  */
-
-static enum target_xfer_status
-nbsd_xfer_partial (struct target_ops *ops, enum target_object object,
-		   const char *annex, gdb_byte *readbuf,
-		   const gdb_byte *writebuf,
-		   ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
-{
-  pid_t pid = ptid_get_pid (inferior_ptid);
-
-  switch (object)
-{
-case TARGET_OBJECT_AUXV:
-  {
-	struct cleanup *cleanup = make_cleanup (null_cleanup, NULL);
-	unsigned char *buf;
-	size_t buflen;
-	int mib[4];
-
-	if (writebuf != NULL)
-	  return TARGET_XFER_E_IO;
-	mib[0] = CTL_KERN;
-	mib[1] = KERN_PROC;
-	mib[2] = KERN_PROC_AUXV;
-	mib[3] = pid;
-	if (offset == 0)
-	  {
-	buf = readbuf;
-	buflen = len;
-	  }
-	else
-	  {
-	buflen = offset + len;
-	buf = XCNEWVEC (unsigned char, buflen);
-	cleanup = make_cleanup (xfree, buf);
-	  }
-	if (sysctl (mib, 4, buf, , NULL, 0) == 0)
-	  {
-	if (offset != 0)
-	  {
-		if (buflen > offset)
-		  {
-		buflen -= offset;
-		memcpy (readbuf, buf + offset, 

CVS commit: src/external/gpl3/gdb/dist/gdb/config/arm

2019-04-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Apr 13 18:04:23 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/gdb/config/arm: nbsdelf.mh

Log Message:
add missing files


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/dist/gdb/config/arm/nbsdelf.mh

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/dist/gdb/config/arm/nbsdelf.mh
diff -u src/external/gpl3/gdb/dist/gdb/config/arm/nbsdelf.mh:1.7 src/external/gpl3/gdb/dist/gdb/config/arm/nbsdelf.mh:1.8
--- src/external/gpl3/gdb/dist/gdb/config/arm/nbsdelf.mh:1.7	Thu Nov 30 10:26:55 2017
+++ src/external/gpl3/gdb/dist/gdb/config/arm/nbsdelf.mh	Sat Apr 13 14:04:23 2019
@@ -1,4 +1,5 @@
 # Host: NetBSD/arm
-NATDEPFILES= fork-child.o inf-ptrace.o nbsd-nat.o arm-nbsd-nat.o bsd-kvm.o
+NATDEPFILES= fork-child.o inf-ptrace.o nbsd-nat.o arm-nbsd-nat.o bsd-kvm.o \
+arm-bsd-tdep.o arm-nbsd-tdep.o
 
 LOADLIBES= -lkvm



CVS commit: src/external/gpl3/gdb/lib

2019-04-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Apr 13 18:04:04 UTC 2019

Modified Files:
src/external/gpl3/gdb/lib/libbfd/arch/arm: bfd_stdint.h targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/arm: gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/arm: defs.mk version.c
src/external/gpl3/gdb/lib/libgdb/arch/arm/build-gnulib: config.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libbfd/arch/arm/bfd_stdint.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libbfd/arch/arm/targmatch.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libdecnumber/arch/arm/gstdint.h
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gdb/lib/libgdb/arch/arm/defs.mk
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gdb/lib/libgdb/arch/arm/version.c
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gdb/lib/libgdb/arch/arm/build-gnulib/config.h

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/lib/libbfd/arch/arm/bfd_stdint.h
diff -u src/external/gpl3/gdb/lib/libbfd/arch/arm/bfd_stdint.h:1.10 src/external/gpl3/gdb/lib/libbfd/arch/arm/bfd_stdint.h:1.11
--- src/external/gpl3/gdb/lib/libbfd/arch/arm/bfd_stdint.h:1.10	Wed Nov 29 13:15:29 2017
+++ src/external/gpl3/gdb/lib/libbfd/arch/arm/bfd_stdint.h	Sat Apr 13 14:04:04 2019
@@ -1,8 +1,8 @@
 /* This file is automatically generated.  DO NOT EDIT! */
 /* Generated from: NetBSD: mknative-gdb,v 1.7 2016/10/16 04:37:42 mrg Exp  */
-/* Generated from: NetBSD: mknative.common,v 1.15 2017/11/29 03:32:28 christos Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
-/* generated for  armv6--netbsdelf-eabi-gcc (NetBSD nb1 20160606) 5.4.0 */
+/* generated for  armv7--netbsdelf-eabihf-gcc (NetBSD nb3 20190319) 7.4.0 */
 
 #ifndef GCC_GENERATED_STDINT_H
 #define GCC_GENERATED_STDINT_H 1

Index: src/external/gpl3/gdb/lib/libbfd/arch/arm/targmatch.h
diff -u src/external/gpl3/gdb/lib/libbfd/arch/arm/targmatch.h:1.9 src/external/gpl3/gdb/lib/libbfd/arch/arm/targmatch.h:1.10
--- src/external/gpl3/gdb/lib/libbfd/arch/arm/targmatch.h:1.9	Wed Nov 29 13:15:29 2017
+++ src/external/gpl3/gdb/lib/libbfd/arch/arm/targmatch.h	Sat Apr 13 14:04:04 2019
@@ -1,6 +1,6 @@
 /* This file is automatically generated.  DO NOT EDIT! */
 /* Generated from: NetBSD: mknative-gdb,v 1.7 2016/10/16 04:37:42 mrg Exp  */
-/* Generated from: NetBSD: mknative.common,v 1.15 2017/11/29 03:32:28 christos Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
 #ifdef BFD64
 #if !defined (SELECT_VECS) || defined (HAVE_aarch64_mach_o_vec)
@@ -42,6 +42,15 @@
 
 #if !defined (SELECT_VECS) || defined (HAVE_aarch64_elf64_le_vec)
 
+{ "aarch64-*-netbsd*",
+_elf64_le_vec },
+#endif
+
+
+
+
+#if !defined (SELECT_VECS) || defined (HAVE_aarch64_elf64_le_vec)
+
 { "aarch64-*-fuchsia*",
 _elf64_le_vec },
 #endif

Index: src/external/gpl3/gdb/lib/libdecnumber/arch/arm/gstdint.h
diff -u src/external/gpl3/gdb/lib/libdecnumber/arch/arm/gstdint.h:1.10 src/external/gpl3/gdb/lib/libdecnumber/arch/arm/gstdint.h:1.11
--- src/external/gpl3/gdb/lib/libdecnumber/arch/arm/gstdint.h:1.10	Wed Nov 29 13:15:31 2017
+++ src/external/gpl3/gdb/lib/libdecnumber/arch/arm/gstdint.h	Sat Apr 13 14:04:04 2019
@@ -1,8 +1,8 @@
 /* This file is automatically generated.  DO NOT EDIT! */
 /* Generated from: NetBSD: mknative-gdb,v 1.7 2016/10/16 04:37:42 mrg Exp  */
-/* Generated from: NetBSD: mknative.common,v 1.15 2017/11/29 03:32:28 christos Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
-/* generated for  armv6--netbsdelf-eabi-gcc (NetBSD nb1 20160606) 5.4.0 */
+/* generated for  armv7--netbsdelf-eabihf-gcc (NetBSD nb3 20190319) 7.4.0 */
 
 #ifndef GCC_GENERATED_STDINT_H
 #define GCC_GENERATED_STDINT_H 1

Index: src/external/gpl3/gdb/lib/libgdb/arch/arm/defs.mk
diff -u src/external/gpl3/gdb/lib/libgdb/arch/arm/defs.mk:1.14 src/external/gpl3/gdb/lib/libgdb/arch/arm/defs.mk:1.15
--- src/external/gpl3/gdb/lib/libgdb/arch/arm/defs.mk:1.14	Thu Nov 30 10:26:55 2017
+++ src/external/gpl3/gdb/lib/libgdb/arch/arm/defs.mk	Sat Apr 13 14:04:04 2019
@@ -1,7 +1,7 @@
 # This file is automatically generated.  DO NOT EDIT!
 # Generated from: NetBSD: mknative-gdb,v 1.7 2016/10/16 04:37:42 mrg Exp 
-# Generated from: NetBSD: mknative.common,v 1.15 2017/11/29 03:32:28 christos Exp 
+# Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp 
 #
 G_INTERNAL_CFLAGS=   -I. -I${GNUHOSTDIST}/gdb -I${GNUHOSTDIST}/gdb/common -I${GNUHOSTDIST}/gdb/config -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I${GNUHOSTDIST}/gdb/../include/opcode -I${GNUHOSTDIST}/gdb/../opcodes/.. -I${GNUHOSTDIST}/gdb/../readline/.. -I${GNUHOSTDIST}/gdb/../zlib -I../bfd -I${GNUHOSTDIST}/gdb/../bfd 

CVS commit: src/external/gpl3/gdb/dist/gdb

2019-04-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Apr 13 18:02:37 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/gdb: arm-nbsd-nat.c

Log Message:
fix typo, unused variable


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c

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/dist/gdb/arm-nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c:1.5 src/external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c:1.6
--- src/external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c:1.5	Wed Jan 24 04:04:42 2018
+++ src/external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c	Sat Apr 13 14:02:37 2019
@@ -303,7 +303,6 @@ fetch_fp_regs (struct regcache *regcache
 {
   struct fpreg inferior_fp_registers;
   int ret;
-  int regno;
 
   ret = ptrace (PT_GETFPREGS, ptid_get_pid (inferior_ptid),
 		(PTRACE_TYPE_ARG3) _fp_registers, ptid_get_lwp(inferior_ptid));
@@ -599,7 +598,7 @@ fetch_elfcore_registers (struct regcache
 
 static struct core_fns arm_netbsd_core_fns =
 {
-  bfd_target_unknown_flavour,		/* core_flovour.  */
+  bfd_target_unknown_flavour,		/* core_flavour.  */
   default_check_format,			/* check_format.  */
   default_core_sniffer,			/* core_sniffer.  */
   fetch_core_registers,			/* core_read_registers.  */
@@ -608,7 +607,7 @@ static struct core_fns arm_netbsd_core_f
 
 static struct core_fns arm_netbsd_elfcore_fns =
 {
-  bfd_target_elf_flavour,		/* core_flovour.  */
+  bfd_target_elf_flavour,		/* core_flavour.  */
   default_check_format,			/* check_format.  */
   default_core_sniffer,			/* core_sniffer.  */
   fetch_elfcore_registers,		/* core_read_registers.  */



CVS commit: src/external/gpl3/gdb/dist/gdb

2019-04-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Apr 13 18:02:06 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/gdb: arm-bsd-tdep.c

Log Message:
fix core stack traces (missing register 25)


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/gdb/arm-bsd-tdep.c

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/dist/gdb/arm-bsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/arm-bsd-tdep.c:1.1.1.1 src/external/gpl3/gdb/dist/gdb/arm-bsd-tdep.c:1.2
--- src/external/gpl3/gdb/dist/gdb/arm-bsd-tdep.c:1.1.1.1	Tue Nov 28 13:18:09 2017
+++ src/external/gpl3/gdb/dist/gdb/arm-bsd-tdep.c	Sat Apr 13 14:02:05 2019
@@ -83,7 +83,7 @@ armbsd_supply_gregset (const struct regs
 }
 
   if (regnum == ARM_PS_REGNUM || regnum == -1)
-regcache_raw_supply (regcache, i, regs + 16 * 4);
+regcache_raw_supply (regcache, ARM_PS_REGNUM, regs + 16 * 4);
 
   if (len >= ARMBSD_SIZEOF_GREGS + ARMBSD_SIZEOF_FPREGS)
 {



CVS commit: src/external/gpl3/gdb/lib/libgdb/arch/vax

2019-04-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Apr  2 14:17:56 UTC 2019

Modified Files:
src/external/gpl3/gdb/lib/libgdb/arch/vax: defs.mk init.c
src/external/gpl3/gdb/lib/libgdb/arch/vax/build-gnulib: config.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/lib/libgdb/arch/vax/defs.mk
cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gdb/lib/libgdb/arch/vax/init.c
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gdb/lib/libgdb/arch/vax/build-gnulib/config.h

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/lib/libgdb/arch/vax/defs.mk
diff -u src/external/gpl3/gdb/lib/libgdb/arch/vax/defs.mk:1.12 src/external/gpl3/gdb/lib/libgdb/arch/vax/defs.mk:1.13
--- src/external/gpl3/gdb/lib/libgdb/arch/vax/defs.mk:1.12	Thu Nov 30 10:26:57 2017
+++ src/external/gpl3/gdb/lib/libgdb/arch/vax/defs.mk	Tue Apr  2 10:17:55 2019
@@ -1,7 +1,7 @@
 # This file is automatically generated.  DO NOT EDIT!
 # Generated from: NetBSD: mknative-gdb,v 1.7 2016/10/16 04:37:42 mrg Exp 
-# Generated from: NetBSD: mknative.common,v 1.15 2017/11/29 03:32:28 christos Exp 
+# Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp 
 #
 G_INTERNAL_CFLAGS=   -I. -I${GNUHOSTDIST}/gdb -I${GNUHOSTDIST}/gdb/common -I${GNUHOSTDIST}/gdb/config -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I${GNUHOSTDIST}/gdb/../include/opcode -I${GNUHOSTDIST}/gdb/../opcodes/.. -I${GNUHOSTDIST}/gdb/../readline/.. -I${GNUHOSTDIST}/gdb/../zlib -I../bfd -I${GNUHOSTDIST}/gdb/../bfd -I${GNUHOSTDIST}/gdb/../include -I../libdecnumber -I${GNUHOSTDIST}/gdb/../libdecnumber -I./../intl -I${GNUHOSTDIST}/gdb/gnulib/import -Ibuild-gnulib/import   -DTUI=1  -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-narrowing -Wformat-nonliteral 
-G_LIBGDB_OBS=vax-tdep.o solib-svr4.o ser-base.o ser-unix.o ser-pipe.o ser-tcp.o fork-child.o inf-ptrace.o nbsd-nat.o vax-bsd-nat.o bsd-kvm.o ax-gdb.o ax-general.o ctf.o dcache.o remote.o remote-fileio.o remote-notif.o tracefile.o tracefile-tfile.o tracepoint.o  cli-cmds.o cli-decode.o cli-dump.o cli-interp.o cli-logging.o cli-script.o cli-setshow.o cli-utils.o mi-cmd-break.o mi-cmd-catch.o mi-cmd-disas.o mi-cmd-env.o mi-cmd-file.o mi-cmd-info.o mi-cmd-stack.o mi-cmd-target.o mi-cmd-var.o mi-cmds.o mi-console.o mi-getopt.o mi-interp.o mi-main.o mi-out.o mi-parse.o mi-symbol-cmds.o tui.o tui-command.o tui-data.o tui-disasm.o tui-file.o tui-hooks.o tui-interp.o tui-io.o tui-layout.o tui-out.o tui-regs.o tui-source.o tui-stack.o tui-win.o tui-windata.o tui-wingeneral.o tui-winsource.o python.o guile.o elfread.o stap-probe.o dtrace-probe.o posix-hdep.o posix-strerror.o ada-exp.o c-exp.o cp-name-parser.o d-exp.o f-exp.o go-exp.o m2-exp.o p-exp.o rust-exp.o ada-lang.o ada-tasks.o ada-typep
 rint.o ada-valprint.o ada-varobj.o addrmap.o agent.o annotate.o arch-utils.o auto-load.o auxv.o bcache.o bfd-target.o block.o blockframe.o break-catch-sig.o break-catch-syscall.o break-catch-throw.o breakpoint.o btrace.o btrace-common.o buffer.o build-id.o buildsym.o c-lang.o c-typeprint.o c-valprint.o c-varobj.o charset.o cleanups.o cli-out.o coff-pe-read.o coffread.o common-agent.o common-debug.o common-exceptions.o common-regcache.o common-utils.o complaints.o completer.o continuations.o copying.o corefile.o corelow.o cp-abi.o cp-namespace.o cp-support.o cp-valprint.o d-lang.o d-namespace.o d-valprint.o dbxread.o debug.o demangle.o dfp.o dictionary.o disasm.o disasm-selftests.o doublest.o dummy-frame.o dwarf2-frame.o dwarf2-frame-tailcall.o dwarf2expr.o dwarf2loc.o dwarf2read.o environ.o errors.o eval.o event-loop.o event-top.o exceptions.o exec.o expprint.o extension.o f-lang.o f-typeprint.o f-valprint.o fileio.o filestuff.o filesystem.o findcmd.o findvar.o format.o frame.o fram
 e-base.o frame-unwind.o gcore.o gdb_bfd.o gdb-dlfcn.o gdb_obstack.o gdb_usleep.o gdb_vecs.o gdbarch.o gdbtypes.o gnu-v2-abi.o gnu-v3-abi.o go-lang.o go-typeprint.o go-valprint.o inf-child.o inf-loop.o infcall.o infcmd.o inferior.o infrun.o inline-frame.o interps.o jit.o language.o linespec.o location.o m2-lang.o m2-typeprint.o m2-valprint.o macrocmd.o macroexp.o macroscope.o macrotab.o main.o maint.o mdebugread.o mem-break.o memattr.o memory-map.o memrange.o mi-common.o minidebug.o minsyms.o mipsread.o namespace.o new-op.o objc-lang.o objfiles.o observer.o opencl-lang.o osabi.o osdata.o p-lang.o p-typeprint.o p-valprint.o parse.o print-utils.o printcmd.o probe.o progspace.o prologue-value.o psymtab.o ptid.o record.o record-btrace.o record-full.o regcache.o reggroups.o registry.o reverse.o rsp-low.o run-time-clock.o rust-lang.o selftest.o selftest-arch.o sentinel-frame.o ser-event.o serial.o signals.o signals-state-save-restore.o 

CVS commit: src/external/gpl3/gdb/dist/gdb/config/vax

2019-04-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Apr  2 14:17:36 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/gdb/config/vax: nbsdelf.mh

Log Message:
add a missing file


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gdb/dist/gdb/config/vax/nbsdelf.mh

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/dist/gdb/config/vax/nbsdelf.mh
diff -u src/external/gpl3/gdb/dist/gdb/config/vax/nbsdelf.mh:1.5 src/external/gpl3/gdb/dist/gdb/config/vax/nbsdelf.mh:1.6
--- src/external/gpl3/gdb/dist/gdb/config/vax/nbsdelf.mh:1.5	Thu Nov 30 10:26:55 2017
+++ src/external/gpl3/gdb/dist/gdb/config/vax/nbsdelf.mh	Tue Apr  2 10:17:36 2019
@@ -1,4 +1,5 @@
 # Host: NetBSD/vax ELF
-NATDEPFILES= fork-child.o inf-ptrace.o nbsd-nat.o vax-bsd-nat.o bsd-kvm.o
+NATDEPFILES= fork-child.o inf-ptrace.o nbsd-nat.o vax-bsd-nat.o bsd-kvm.o \
+	vax-nbsd-tdep.o
 
 LOADLIBES= -lkvm



CVS commit: src/external/gpl3/gdb/dist/gdb

2018-12-21 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Dec 21 11:11:40 UTC 2018

Modified Files:
src/external/gpl3/gdb/dist/gdb: aarch64-nbsd-tdep.c aarch64-nbsd-tdep.h
src/external/gpl3/gdb/dist/gdb/config/aarch64: nbsd.mh

Log Message:
s/Free/Net/; s/amd64/aarch64/.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/dist/gdb/config/aarch64/nbsd.mh

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/dist/gdb/aarch64-nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.3 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.4
--- src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.3	Wed Jul 11 13:52:35 2018
+++ src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c	Fri Dec 21 11:11:40 2018
@@ -1,4 +1,4 @@
-/* Target-dependent code for FreeBSD/aarch64.
+/* Target-dependent code for NetBSD/aarch64.
 
Copyright (C) 2017-2018 Free Software Foundation, Inc.
 

Index: src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.h
diff -u src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.h:1.2 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.h:1.3
--- src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.h:1.2	Fri Jun 22 19:41:40 2018
+++ src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.h	Fri Dec 21 11:11:40 2018
@@ -1,4 +1,4 @@
-/* FreeBSD/aarch64 target support, prototypes.
+/* NetBSD/aarch64 target support, prototypes.
 
Copyright (C) 2017-2018 Free Software Foundation, Inc.
 

Index: src/external/gpl3/gdb/dist/gdb/config/aarch64/nbsd.mh
diff -u src/external/gpl3/gdb/dist/gdb/config/aarch64/nbsd.mh:1.1 src/external/gpl3/gdb/dist/gdb/config/aarch64/nbsd.mh:1.2
--- src/external/gpl3/gdb/dist/gdb/config/aarch64/nbsd.mh:1.1	Mon May 21 02:10:47 2018
+++ src/external/gpl3/gdb/dist/gdb/config/aarch64/nbsd.mh	Fri Dec 21 11:11:40 2018
@@ -1,4 +1,4 @@
-# Host: NetBSD/amd64
+# Host: NetBSD/arm64
 NATDEPFILES= fork-child.o inf-ptrace.o nbsd-nat.o aarch64-nbsd-nat.o \
 	bsd-kvm.o
 



CVS commit: src/external/gpl3/gdb/dist/bfd

2018-07-12 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jul 12 23:18:28 UTC 2018

Modified Files:
src/external/gpl3/gdb/dist/bfd: elf.c

Log Message:
aarch64 does not have PT_STEP so we start from 0.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gdb/dist/bfd/elf.c

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/dist/bfd/elf.c
diff -u src/external/gpl3/gdb/dist/bfd/elf.c:1.9 src/external/gpl3/gdb/dist/bfd/elf.c:1.10
--- src/external/gpl3/gdb/dist/bfd/elf.c:1.9	Tue Nov 28 17:04:52 2017
+++ src/external/gpl3/gdb/dist/bfd/elf.c	Thu Jul 12 19:18:28 2018
@@ -10041,6 +10041,7 @@ elfcore_grok_netbsd_note (bfd *abfd, Elf
   /* On the Alpha, SPARC (32-bit and 64-bit), PT_GETREGS == mach+0 and
 	 PT_GETFPREGS == mach+2.  */
 
+case bfd_arch_aarch64:
 case bfd_arch_alpha:
 case bfd_arch_sparc:
   switch (note->type)



CVS commit: src/external/gpl3/gdb/lib/libbfd

2018-07-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jul 11 14:51:34 UTC 2018

Modified Files:
src/external/gpl3/gdb/lib/libbfd: Makefile

Log Message:
it is not xx but nn that we want. also add missing dependencies.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/lib/libbfd/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/lib/libbfd/Makefile
diff -u src/external/gpl3/gdb/lib/libbfd/Makefile:1.8 src/external/gpl3/gdb/lib/libbfd/Makefile:1.9
--- src/external/gpl3/gdb/lib/libbfd/Makefile:1.8	Wed Jul 11 09:44:04 2018
+++ src/external/gpl3/gdb/lib/libbfd/Makefile	Wed Jul 11 10:51:34 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.8 2018/07/11 13:44:04 christos Exp $
+#	$NetBSD: Makefile,v 1.9 2018/07/11 14:51:34 christos Exp $
 
 .include 
 .include "../Makefile.inc"
@@ -19,9 +19,11 @@ GSRCS=		${G_libbfd_la_OBJECTS:libbfd.lo=
 SRCS=		${GSRCS:.lo=.c}
 
 DPSRCS+=	elf32-target.h elf64-target.h targmatch.h \
-		elf32-ia64.c elf64-ia64.c peigen.c pex64igen.c
+		elf32-ia64.c elf64-ia64.c elf64-aarch64.c \
+		peigen.c pex64igen.c
 CLEANFILES+=	elf32-target.h elf64-target.h targmatch.h \
-		elf32-ia64.c elf64-ia64.c peigen.c pex64igen.c
+		elf32-ia64.c elf64-ia64.c elf64-aarch64.c \
+		peigen.c pex64igen.c
 
 .PATH: ${DIST}/bfd
 
@@ -52,7 +54,7 @@ elf64-ia64.c: elfxx-ia64.c
 	${_MKTARGET_CREATE}
 	${TOOL_SED} -e s/NN/64/g < $> > $@
 
-elf64-aarch64.c: elfxx-aarch64.c
+elf64-aarch64.c: elfnn-aarch64.c
 	${_MKTARGET_CREATE}
 	${TOOL_SED} -e s/NN/64/g < $> > $@
 



CVS commit: src/external/gpl3/gdb/lib/libbfd

2018-07-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jul 11 13:44:04 UTC 2018

Modified Files:
src/external/gpl3/gdb/lib/libbfd: Makefile

Log Message:
Add another elfxx conversion.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/lib/libbfd/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/lib/libbfd/Makefile
diff -u src/external/gpl3/gdb/lib/libbfd/Makefile:1.7 src/external/gpl3/gdb/lib/libbfd/Makefile:1.8
--- src/external/gpl3/gdb/lib/libbfd/Makefile:1.7	Fri Aug 21 04:19:28 2015
+++ src/external/gpl3/gdb/lib/libbfd/Makefile	Wed Jul 11 09:44:04 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.7 2015/08/21 08:19:28 tron Exp $
+#	$NetBSD: Makefile,v 1.8 2018/07/11 13:44:04 christos Exp $
 
 .include 
 .include "../Makefile.inc"
@@ -52,6 +52,10 @@ elf64-ia64.c: elfxx-ia64.c
 	${_MKTARGET_CREATE}
 	${TOOL_SED} -e s/NN/64/g < $> > $@
 
+elf64-aarch64.c: elfxx-aarch64.c
+	${_MKTARGET_CREATE}
+	${TOOL_SED} -e s/NN/64/g < $> > $@
+
 peigen.c: peXXigen.c
 	${_MKTARGET_CREATE}
 	${TOOL_SED} -e s/XX/pe/g < $> > $@



CVS commit: src/external/gpl3/gdb/dist/gdb

2018-07-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jul 11 13:52:35 UTC 2018

Modified Files:
src/external/gpl3/gdb/dist/gdb: aarch64-nbsd-tdep.c aarch64-tdep.c

Log Message:
fix signness issues.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c
cvs rdiff -u -r1.1.1.6 -r1.2 src/external/gpl3/gdb/dist/gdb/aarch64-tdep.c

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/dist/gdb/aarch64-nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.2 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.3
--- src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.2	Fri Jun 22 15:41:16 2018
+++ src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c	Wed Jul 11 09:52:35 2018
@@ -118,11 +118,11 @@ static const struct tramp_frame aarch64_
   SIGTRAMP_FRAME,
   4,
   {
-{0x910003e0, -1},		/* mov  x0, sp  */
-{0x91014000, -1},		/* add  x0, x0, #SF_UC  */
-{0xd2803428, -1},		/* mov  x8, #SYS_sigreturn  */
-{0xd401, -1},		/* svc  0x0  */
-{TRAMP_SENTINEL_INSN, -1}
+{0x910003e0, (ULONGEST)-1},		/* mov  x0, sp  */
+{0x91014000, (ULONGEST)-1},		/* add  x0, x0, #SF_UC  */
+{0xd2803428, (ULONGEST)-1},		/* mov  x8, #SYS_sigreturn  */
+{0xd401, (ULONGEST)-1},		/* svc  0x0  */
+{(ULONGEST)TRAMP_SENTINEL_INSN, (ULONGEST)-1}
   },
   aarch64_nbsd_sigframe_init
 };

Index: src/external/gpl3/gdb/dist/gdb/aarch64-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/aarch64-tdep.c:1.1.1.6 src/external/gpl3/gdb/dist/gdb/aarch64-tdep.c:1.2
--- src/external/gpl3/gdb/dist/gdb/aarch64-tdep.c:1.1.1.6	Tue Nov 28 13:18:03 2017
+++ src/external/gpl3/gdb/dist/gdb/aarch64-tdep.c	Wed Jul 11 09:52:35 2018
@@ -2425,7 +2425,7 @@ aarch64_software_single_step (struct reg
   const int insn_size = 4;
   const int atomic_sequence_length = 16; /* Instruction sequence length.  */
   CORE_ADDR pc = regcache_read_pc (regcache);
-  CORE_ADDR breaks[2] = { -1, -1 };
+  CORE_ADDR breaks[2] = { (ULONGEST)-1, (ULONGEST)-1 };
   CORE_ADDR loc = pc;
   CORE_ADDR closing_insn = 0;
   uint32_t insn = read_memory_unsigned_integer (loc, insn_size,



CVS commit: src/external/gpl3/gdb/dist/gdb

2018-06-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Jun 23 03:15:55 UTC 2018

Modified Files:
src/external/gpl3/gdb/dist/gdb: inf-ptrace.c nbsd-nat.c

Log Message:
Fix thread debugging.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/gdb/dist/gdb/inf-ptrace.c
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c

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/dist/gdb/inf-ptrace.c
diff -u src/external/gpl3/gdb/dist/gdb/inf-ptrace.c:1.17 src/external/gpl3/gdb/dist/gdb/inf-ptrace.c:1.18
--- src/external/gpl3/gdb/dist/gdb/inf-ptrace.c:1.17	Fri Dec  1 17:19:59 2017
+++ src/external/gpl3/gdb/dist/gdb/inf-ptrace.c	Fri Jun 22 23:15:55 2018
@@ -353,7 +353,7 @@ inf_ptrace_resume (struct target_ops *op
  all possible successor instructions), so we don't have to
  worry about that here.  */
   request = PT_STEP;
-#if 0
+#if __NetBSD__
   /*
* On NetBSD the data field of PT_STEP contains the thread
* to be stepped; all other threads are continued if this value is > 0

Index: src/external/gpl3/gdb/dist/gdb/nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.5 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.6
--- src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.5	Sun Dec 10 00:36:25 2017
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.c	Fri Jun 22 23:15:55 2018
@@ -371,7 +371,7 @@ nbsd_add_threads (pid_t pid)
   int val;
   struct ptrace_lwpinfo pl;
 
-  gdb_assert (!in_thread_list (pid_to_ptid (pid)));
+//  gdb_assert (!in_thread_list (pid_to_ptid (pid)));
   pl.pl_lwpid = 0;
   while ((val = ptrace (PT_LWPINFO, pid, (void *), sizeof(pl))) != -1
 && pl.pl_lwpid != 0)
@@ -537,68 +537,13 @@ static void
 nbsd_resume (struct target_ops *ops,
 	 ptid_t ptid, int step, enum gdb_signal signo)
 {
-#if defined(TDP_RFPPWAIT) && !defined(PTRACE_VFORK)
-  pid_t pid;
-
-  /* Don't PT_CONTINUE a process which has a pending vfork done event.  */
-  if (ptid_equal (minus_one_ptid, ptid))
-pid = ptid_get_pid (inferior_ptid);
-  else
-pid = ptid_get_pid (ptid);
-  if (nbsd_is_vfork_done_pending (pid))
-return;
-#endif
-
   if (debug_nbsd_lwp)
 fprintf_unfiltered (gdb_stdlog,
 			"NLWP: nbsd_resume for ptid (%d, %ld, %ld)\n",
 			ptid_get_pid (ptid), ptid_get_lwp (ptid),
 			ptid_get_tid (ptid));
-  if (ptid_lwp_p (ptid))
-{
-  /* FreeBSD: If ptid is a specific LWP, suspend all other LWPs in the
-   * process.
-   */
-  /* NetBSD, this function is about resuming so we only deal with
-   * the thread we've been asked to work with
-   */
-  struct thread_info *tp;
-  int request;
-
-  ALL_NON_EXITED_THREADS (tp)
-{
-	  if (ptid_get_pid (tp->ptid) != ptid_get_pid (ptid))
-	continue;
-
-	  if (ptid_get_lwp (tp->ptid) == ptid_get_lwp (ptid))
-	request = PT_RESUME;
-#ifndef __NetBSD__
-	  else
-	request = PT_SUSPEND;
-#endif
-
-	  if (ptrace (request, ptid_get_pid (tp->ptid), NULL,
-	  ptid_get_lwp (tp->ptid)) == -1)
-	perror_with_name (("ptrace"));
-	}
-}
-  else
-{
-  /* If ptid is a wildcard, resume all matching threads (they won't run
-	 until the process is continued however).  */
-  struct thread_info *tp;
-
-  ALL_NON_EXITED_THREADS (tp)
-{
-	  if (!ptid_match (tp->ptid, ptid))
-	continue;
-
-	  if (ptrace (PT_RESUME, ptid_get_pid (tp->ptid), NULL,
-	  ptid_get_lwp (tp->ptid)) == -1)
-	perror_with_name (("ptrace"));
-	}
-  ptid = inferior_ptid;
-}
+  if (ptid_get_pid(ptid) == -1)
+ptid = inferior_ptid;
   super_resume (ops, ptid, step, signo);
 }
 
@@ -613,203 +558,35 @@ nbsd_wait (struct target_ops *ops,
 {
   ptid_t wptid;
 
-  while (1)
+  wptid = super_wait (ops, ptid, ourstatus, target_options);
+  if (ourstatus->kind == TARGET_WAITKIND_STOPPED)
 {
-#ifndef PTRACE_VFORK
-  wptid = nbsd_next_vfork_done ();
-  if (!ptid_equal (wptid, null_ptid))
-	{
-	  ourstatus->kind = TARGET_WAITKIND_VFORK_DONE;
-	  return wptid;
-	}
-#endif
-  wptid = super_wait (ops, ptid, ourstatus, target_options);
-  if (ourstatus->kind == TARGET_WAITKIND_STOPPED)
-	{
-	  struct ptrace_lwpinfo pl;
-	  pid_t pid;
-	  int status;
-
-	  pid = ptid_get_pid (wptid);
-	  pl.pl_lwpid = 0;
-	  if (ptrace (PT_LWPINFO, pid, (caddr_t) , sizeof pl) == -1)
-	perror_with_name (("ptrace"));
-
-	  wptid = ptid_build (pid, pl.pl_lwpid, 0);
-
-#ifdef PT_LWP_EVENTS
-	  if (pl.pl_flags & PL_FLAG_EXITED)
-	{
-	  /* If GDB attaches to a multi-threaded process, exiting
-		 threads might be skipped during nbsd_post_attach that
-		 have not yet reported their PL_FLAG_EXITED event.
-		 Ignore EXITED events for an unknown LWP.  */
-	  if (in_thread_list (wptid))
-		{
-		  if (debug_nbsd_lwp)
-		fprintf_unfiltered (gdb_stdlog,
-	"NLWP: deleting thread for LWP %u\n",
-	pl.pl_lwpid);
-		

CVS commit: src/external/gpl3/gdb/dist/gdb

2018-06-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jun 22 19:41:40 UTC 2018

Modified Files:
src/external/gpl3/gdb/dist/gdb: aarch64-nbsd-tdep.h

Log Message:
match our number of registers.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.h

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/dist/gdb/aarch64-nbsd-tdep.h
diff -u src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.h:1.1 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.h:1.2
--- src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.h:1.1	Sun May 20 22:10:47 2018
+++ src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.h	Fri Jun 22 15:41:40 2018
@@ -19,10 +19,10 @@
 
 #include "regset.h"
 
-/* The general-purpose regset consists of 30 X registers, plus LR, SP,
-   ELR, and SPSR registers.  SPSR is 32 bits but the structure is
+/* The general-purpose regset consists of 31 registers (30 X , plus LR), SP,
+   ELR (PC), SPSR register, and TPIDR.  SPSR is 32 bits but the structure is
passed to 64 bit alignment.  */
-#define AARCH64_NBSD_SIZEOF_GREGSET  (34 * X_REGISTER_SIZE)
+#define AARCH64_NBSD_SIZEOF_GREGSET  (35 * X_REGISTER_SIZE)
 
 /* The fp regset consists of 32 V registers, plus FPSR and FPCR which
are 4 bytes wide each, and the whole structure is padded to 128 bit



CVS commit: src/external/gpl3/gdb/dist/gdb

2018-06-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jun 22 19:41:16 UTC 2018

Modified Files:
src/external/gpl3/gdb/dist/gdb: aarch64-nbsd-tdep.c

Log Message:
use the right emulation


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c

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/dist/gdb/aarch64-nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.1 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.2
--- src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c:1.1	Sun May 20 22:10:47 2018
+++ src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c	Fri Jun 22 15:41:16 2018
@@ -197,6 +197,6 @@ aarch64_nbsd_init_abi (struct gdbarch_in
 void
 _initialize_aarch64_nbsd_tdep (void)
 {
-  gdbarch_register_osabi (bfd_arch_aarch64, 0, GDB_OSABI_FREEBSD,
+  gdbarch_register_osabi (bfd_arch_aarch64, 0, GDB_OSABI_NETBSD,
 			  aarch64_nbsd_init_abi);
 }



CVS commit: src/external/gpl3/gdb/dist

2018-05-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon May 21 02:10:47 UTC 2018

Modified Files:
src/external/gpl3/gdb/dist/bfd: config.bfd
src/external/gpl3/gdb/dist/gdb: Makefile.in configure.host
configure.tgt
Added Files:
src/external/gpl3/gdb/dist/gdb: aarch64-nbsd-nat.c aarch64-nbsd-tdep.c
aarch64-nbsd-tdep.h
src/external/gpl3/gdb/dist/gdb/config/aarch64: nbsd.mh

Log Message:
add minimal glue to make gdb compile on aarch-64; now configure in gdb/dist
and gmake creates a gdb binary.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/gdb/dist/bfd/config.bfd
cvs rdiff -u -r1.1.1.7 -r1.2 src/external/gpl3/gdb/dist/gdb/Makefile.in
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c \
src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c \
src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.h
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gdb/dist/gdb/configure.host
cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/gdb/dist/gdb/configure.tgt
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/dist/gdb/config/aarch64/nbsd.mh

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/dist/bfd/config.bfd
diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.17 src/external/gpl3/gdb/dist/bfd/config.bfd:1.18
--- src/external/gpl3/gdb/dist/bfd/config.bfd:1.17	Tue Nov 28 17:04:52 2017
+++ src/external/gpl3/gdb/dist/bfd/config.bfd	Sun May 20 22:10:46 2018
@@ -260,6 +260,11 @@ case "${targ}" in
 targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
 want64=true
 ;;
+  aarch64-*-netbsd*)
+targ_defvec=aarch64_elf64_le_vec
+targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
+want64=true
+;;
   aarch64-*-fuchsia*)
 targ_defvec=aarch64_elf64_le_vec
 targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"

Index: src/external/gpl3/gdb/dist/gdb/Makefile.in
diff -u src/external/gpl3/gdb/dist/gdb/Makefile.in:1.1.1.7 src/external/gpl3/gdb/dist/gdb/Makefile.in:1.2
--- src/external/gpl3/gdb/dist/gdb/Makefile.in:1.1.1.7	Tue Nov 28 13:18:04 2017
+++ src/external/gpl3/gdb/dist/gdb/Makefile.in	Sun May 20 22:10:47 2018
@@ -2460,6 +2460,8 @@ MAKEOVERRIDES =
 ALLDEPFILES = \
 	aarch64-linux-nat.c \
 	aarch64-linux-tdep.c \
+	aarch64-nbsd-nat.c \
+	aarch64-nbsd-tdep.c \
 	aarch64-newlib-tdep.c \
 	aarch64-tdep.c \
 	aix-thread.c \

Index: src/external/gpl3/gdb/dist/gdb/configure.host
diff -u src/external/gpl3/gdb/dist/gdb/configure.host:1.9 src/external/gpl3/gdb/dist/gdb/configure.host:1.10
--- src/external/gpl3/gdb/dist/gdb/configure.host:1.9	Tue Nov 28 17:04:52 2017
+++ src/external/gpl3/gdb/dist/gdb/configure.host	Sun May 20 22:10:47 2018
@@ -84,6 +84,7 @@ case "${host}" in
 *-*-darwin*)		gdb_host=darwin ;;
 
 aarch64*-*-linux*)	gdb_host=linux ;;
+aarch64*-*-netbsd*)	gdb_host=nbsd ;;
 
 alpha*-*-linux*)	gdb_host=alpha-linux ;;
 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)

Index: src/external/gpl3/gdb/dist/gdb/configure.tgt
diff -u src/external/gpl3/gdb/dist/gdb/configure.tgt:1.18 src/external/gpl3/gdb/dist/gdb/configure.tgt:1.19
--- src/external/gpl3/gdb/dist/gdb/configure.tgt:1.18	Mon Jan  8 13:56:20 2018
+++ src/external/gpl3/gdb/dist/gdb/configure.tgt	Sun May 20 22:10:47 2018
@@ -56,8 +56,8 @@ aarch64*-*-linux*)
 
 aarch64*-*-netbsd*)
 	# Target: AArch64 NetBSD
-	#gdb_target_obs="aarch64-tdep.o aarch64-netbsd-tdep.o"
-	gdb_target_obs="aarch64-tdep.o aarch64-insn.o solib-svr4.o"
+	gdb_target_obs="aarch64-tdep.o aarch64-nbsd-tdep.o \
+			aarch64-insn.o solib-svr4.o"
 	;;
 
 alpha*-*-osf*)

Added files:

Index: src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c
diff -u /dev/null src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c:1.1
--- /dev/null	Sun May 20 22:10:47 2018
+++ src/external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c	Sun May 20 22:10:47 2018
@@ -0,0 +1,136 @@
+/* Native-dependent code for NetBSD/aarch64.
+
+   Copyright (C) 2017-2018 Free Software Foundation, Inc.
+
+   This file is part of GDB.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see .  */
+
+#include "defs.h"
+#include "target.h"
+
+#include 
+#include 
+#include 
+
+#include "nbsd-nat.h"
+#include "aarch64-tdep.h"
+#include "aarch64-nbsd-tdep.h"
+#include "regcache.h"
+#include "gdbcore.h"

CVS commit: src/external/gpl3/gdb/dist/gdb

2018-05-16 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed May 16 13:54:48 UTC 2018

Modified Files:
src/external/gpl3/gdb/dist/gdb: dwarf2read.c

Log Message:
Annotate mixing of enums from different types with an explicit cast.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.7 -r1.2 src/external/gpl3/gdb/dist/gdb/dwarf2read.c

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/dist/gdb/dwarf2read.c
diff -u src/external/gpl3/gdb/dist/gdb/dwarf2read.c:1.1.1.7 src/external/gpl3/gdb/dist/gdb/dwarf2read.c:1.2
--- src/external/gpl3/gdb/dist/gdb/dwarf2read.c:1.1.1.7	Tue Nov 28 18:18:12 2017
+++ src/external/gpl3/gdb/dist/gdb/dwarf2read.c	Wed May 16 13:54:48 2018
@@ -22159,7 +22159,7 @@ dwarf_decode_macro_bytes (bfd *abfd,
 	  }
 	  break;
 
-case DW_MACINFO_vendor_ext:
+case (int)DW_MACINFO_vendor_ext:
 	  if (!section_is_gnu)
 	{
 	  unsigned int bytes_read;
@@ -22336,7 +22336,7 @@ dwarf_decode_macros (struct dwarf2_cu *c
 	  mac_ptr += offset_size;
 	  break;
 
-	case DW_MACINFO_vendor_ext:
+	case (int)DW_MACINFO_vendor_ext:
 	  /* Only skip the data by MAC_PTR.  */
 	  if (!section_is_gnu)
 	{



CVS commit: src/external/gpl3/gdb/dist/gdb

2018-05-09 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May  9 13:52:55 UTC 2018

Removed Files:
src/external/gpl3/gdb/dist/gdb: rust-exp.c

Log Message:
remove generated file


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r0 src/external/gpl3/gdb/dist/gdb/rust-exp.c

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



CVS commit: src/external/gpl3/gdb/lib/libgdb

2018-05-09 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May  9 13:53:13 UTC 2018

Modified Files:
src/external/gpl3/gdb/lib/libgdb: Makefile

Log Message:
clean generated file


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gdb/lib/libgdb/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/lib/libgdb/Makefile
diff -u src/external/gpl3/gdb/lib/libgdb/Makefile:1.19 src/external/gpl3/gdb/lib/libgdb/Makefile:1.20
--- src/external/gpl3/gdb/lib/libgdb/Makefile:1.19	Wed Dec 13 16:52:55 2017
+++ src/external/gpl3/gdb/lib/libgdb/Makefile	Wed May  9 09:53:13 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.19 2017/12/13 21:52:55 joerg Exp $
+#	$NetBSD: Makefile,v 1.20 2018/05/09 13:53:13 christos Exp $
 
 NOCTF=
 HOSTPROG_CXX=   1
@@ -83,4 +83,5 @@ CLEANDIRFILES+= \
 	go-exp.c \
 	jv-exp.c \
 	m2-exp.c \
-	p-exp.c
+	p-exp.c \
+	rust-exp.c



CVS commit: src/external/gpl3/gdb/dist/gdb

2018-04-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Apr 23 14:53:07 UTC 2018

Modified Files:
src/external/gpl3/gdb/dist/gdb: amd64-nbsd-tdep.c i386-nbsd-tdep.c

Log Message:
Add "Xhandle*" interrupt handling.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/gdb/amd64-nbsd-tdep.c \
src/external/gpl3/gdb/dist/gdb/i386-nbsd-tdep.c

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/dist/gdb/amd64-nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/amd64-nbsd-tdep.c:1.3 src/external/gpl3/gdb/dist/gdb/amd64-nbsd-tdep.c:1.4
--- src/external/gpl3/gdb/dist/gdb/amd64-nbsd-tdep.c:1.3	Wed Nov 29 13:15:29 2017
+++ src/external/gpl3/gdb/dist/gdb/amd64-nbsd-tdep.c	Mon Apr 23 10:53:07 2018
@@ -148,10 +148,21 @@ amd64nbsd_trapframe_cache(struct frame_i
 
   /* There is an extra 'call' in the interrupt sequence - ignore the extra
* return address */
-  if (name && strncmp (name, "Xintr", 5) == 0)
-addr = sp + 8;		/* It's an interrupt frame.  */
-  else
-addr = sp;
+
+  addr = sp;
+  if (name) {
+	if (strncmp (name, "Xintr", 5) == 0
+	 || strncmp (name, "Xhandle", 7) == 0) {
+		addr += 8;		/* It's an interrupt frame.  */
+	}
+  }
+
+#ifdef DEBUG_TRAPFRAME
+  for (i = 0; i < 50; i++) {
+cs = read_memory_unsigned_integer (addr + i * 8, 8, byte_order);
+printf("%s i=%d r=%#jx\n", name, i, (intmax_t)cs);
+  }
+#endif
 
   for (i = 0; i < ARRAY_SIZE (amd64nbsd_tf_reg_offset); i++)
 if (amd64nbsd_tf_reg_offset[i] != -1)
@@ -163,6 +174,10 @@ amd64nbsd_trapframe_cache(struct frame_i
   rip = read_memory_unsigned_integer (addr
 + amd64nbsd_tf_reg_offset[AMD64_RIP_REGNUM], 8, byte_order);
 
+#ifdef DEBUG_TRAPFRAME
+  printf("%s cs=%#jx rip=%#jx\n", name, (intmax_t)cs, (intmax_t)rip);
+#endif
+
   /* The trap frame layout was changed lf the %rip value is less than 2^16 it
* is almost certainly the %ss of the old format. */
   if (rip < (1 << 16))
@@ -243,16 +258,20 @@ amd64nbsd_trapframe_sniffer (const struc
 
   find_pc_partial_function (get_frame_pc (this_frame), , NULL, NULL);
   return (name && ((strcmp (name, "alltraps") == 0)
-		   || (strcmp (name, "calltrap") == 0)
-		   || (strncmp (name, "Xtrap", 5) == 0)
-		   || (strcmp (name, "osyscall1") == 0)
-		   || (strcmp (name, "Xsyscall") == 0)
-		   || (strncmp (name, "Xintr", 5) == 0)
-		   || (strncmp (name, "Xresume", 7) == 0)
-		   || (strncmp (name, "Xstray", 6) == 0)
-		   || (strncmp (name, "Xrecurse", 8) == 0)
-		   || (strncmp (name, "Xsoft", 5) == 0)
-		   || (strcmp (name, "Xdoreti") == 0)));
+	|| (strcmp (name, "calltrap") == 0)
+	|| (strcmp (name, "handle_syscall") == 0)
+		|| (strcmp (name, "Xdoreti") == 0)
+		|| (strcmp (name, "Xspllower") == 0)
+		|| (strncmp (name, "Xhandle", 7) == 0)
+		|| (strncmp (name, "Xintr", 5) == 0)
+		|| (strncmp (name, "Xpreempt", 8) == 0)
+		|| (strncmp (name, "Xrecurse", 8) == 0)
+		|| (strncmp (name, "Xresume", 7) == 0)
+		|| (strncmp (name, "Xsoft", 5) == 0)
+		|| (strncmp (name, "Xstray", 6) == 0)
+		|| (strncmp (name, "Xsyscall", 8) == 0)
+		|| (strncmp (name, "Xtrap", 5) == 0)
+	));
 }
 
 static const struct frame_unwind amd64nbsd_trapframe_unwind = {
Index: src/external/gpl3/gdb/dist/gdb/i386-nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/i386-nbsd-tdep.c:1.3 src/external/gpl3/gdb/dist/gdb/i386-nbsd-tdep.c:1.4
--- src/external/gpl3/gdb/dist/gdb/i386-nbsd-tdep.c:1.3	Wed Nov 29 13:15:29 2017
+++ src/external/gpl3/gdb/dist/gdb/i386-nbsd-tdep.c	Mon Apr 23 10:53:07 2018
@@ -312,7 +312,8 @@ i386nbsd_trapframe_cache(struct frame_in
   sp = get_frame_register_unsigned (this_frame, I386_ESP_REGNUM);
 
   find_pc_partial_function (func, , NULL, NULL);
-  if (name && strncmp (name, "Xintr", 5) == 0)
+  if (name && (strncmp (name, "Xintr", 5) == 0 ||
+   strncmp (name, "Xhandle", 7) == 0))
 {
   /* It's an interrupt frame. */
   tmp = read_memory_unsigned_integer (sp + 4, 4, byte_order);
@@ -391,16 +392,19 @@ i386nbsd_trapframe_sniffer (const struct
 
   find_pc_partial_function (get_frame_pc (this_frame), , NULL, NULL);
   return (name && ((strcmp (name, "alltraps") == 0)
-		   || (strcmp (name, "calltrap") == 0)
-		   || (strncmp (name, "Xtrap", 5) == 0)
-		   || (strcmp (name, "syscall1") == 0)
-		   || (strcmp (name, "Xsyscall") == 0)
-		   || (strncmp (name, "Xintr", 5) == 0)
-		   || (strncmp (name, "Xresume", 7) == 0)
-		   || (strncmp (name, "Xstray", 6) == 0)
-		   || (strncmp (name, "Xrecurse", 8) == 0)
-		   || (strncmp (name, "Xsoft", 5) == 0)
-		   || (strncmp (name, "Xdoreti", 5) == 0)));
+	|| (strcmp (name, "calltrap") == 0)
+		|| (strcmp (name, "syscall1") == 0)
+		|| (strcmp (name, "Xdoreti") == 0)
+		|| (strncmp (name, "Xintr", 5) == 0)
+		|| (strncmp (name, "Xhandle", 7) == 0)
+		|| (strncmp (name, "Xpreempt", 8) == 0)
+		|| (strncmp (name, "Xrecurse", 8) == 0)
+		

CVS commit: src/external/gpl3/gdb

2018-01-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan  8 18:56:20 UTC 2018

Modified Files:
src/external/gpl3/gdb/dist/gdb: alpha-bsd-nat.c alpha-bsd-tdep.h
configure.tgt
src/external/gpl3/gdb/dist/gdb/config/alpha: nbsd.mh
src/external/gpl3/gdb/lib/libbfd/arch/alpha: bfd_stdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/alpha: gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/alpha: defs.mk init.c
Removed Files:
src/external/gpl3/gdb/dist/gdb: alpha-nbsd-nat.c

Log Message:
Redo the previous alpha change differently (don't add a new file since we need
ifdefs anyway), and regen.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/alpha-bsd-tdep.h
cvs rdiff -u -r1.1 -r0 src/external/gpl3/gdb/dist/gdb/alpha-nbsd-nat.c
cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/gdb/dist/gdb/configure.tgt
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/dist/gdb/config/alpha/nbsd.mh
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gdb/lib/libbfd/arch/alpha/bfd_stdint.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gdb/lib/libdecnumber/arch/alpha/gstdint.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gdb/lib/libgdb/arch/alpha/defs.mk
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/lib/libgdb/arch/alpha/init.c

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/dist/gdb/alpha-bsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c:1.4 src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c:1.5
--- src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c:1.4	Sun Jan  7 23:00:00 2018
+++ src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c	Mon Jan  8 13:56:20 2018
@@ -25,6 +25,10 @@
 #include "alpha-bsd-tdep.h"
 #include "inf-ptrace.h"
 
+#ifdef __NetBSD__
+#include "nbsd-nat.h"
+#endif
+
 #include 
 #include 
 #include 
@@ -195,9 +199,6 @@ alphabsd_target (void)
   t->to_fetch_registers = alphabsd_fetch_inferior_registers;
   t->to_store_registers = alphabsd_store_inferior_registers;
 
-  /* Support debugging kernel virtual memory images.  */
-  bsd_kvm_add_target (alphabsd_supply_pcb);
-
   return t;
 }
 
@@ -209,10 +210,15 @@ void _initialize_alphabsd_nat (void);
 void
 _initialize_alphabsd_nat (void)
 {
-#ifndef __NetBSD__
   struct target_ops *t;
 
   t = alphabsd_target ();
+#ifndef __NetBSD__
   add_target (t);
+#else
+   nbsd_nat_add_target (t);
 #endif
+
+  /* Support debugging kernel virtual memory images.  */
+  bsd_kvm_add_target (alphabsd_supply_pcb);
 }

Index: src/external/gpl3/gdb/dist/gdb/alpha-bsd-tdep.h
diff -u src/external/gpl3/gdb/dist/gdb/alpha-bsd-tdep.h:1.2 src/external/gpl3/gdb/dist/gdb/alpha-bsd-tdep.h:1.3
--- src/external/gpl3/gdb/dist/gdb/alpha-bsd-tdep.h:1.2	Sun Jan  7 22:07:16 2018
+++ src/external/gpl3/gdb/dist/gdb/alpha-bsd-tdep.h	Mon Jan  8 13:56:20 2018
@@ -37,6 +37,4 @@ void alphanbsd_iterate_over_regset_secti
 	 void *cb_data,
 	 const struct regcache *regcache);
 
-struct target_ops *alphabsd_target (void);
-
 #endif /* alpha-bsd-tdep.h */

Index: src/external/gpl3/gdb/dist/gdb/configure.tgt
diff -u src/external/gpl3/gdb/dist/gdb/configure.tgt:1.17 src/external/gpl3/gdb/dist/gdb/configure.tgt:1.18
--- src/external/gpl3/gdb/dist/gdb/configure.tgt:1.17	Sun Jan  7 22:07:16 2018
+++ src/external/gpl3/gdb/dist/gdb/configure.tgt	Mon Jan  8 13:56:20 2018
@@ -72,8 +72,7 @@ alpha*-*-linux*)
 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
 	# Target: NetBSD/alpha
 	gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-bsd-tdep.o \
-			alpha-nbsd-tdep.o alpha-nbsd-nat.o nbsd-tdep.o \
-			solib-svr4.o"
+			alpha-nbsd-tdep.o nbsd-tdep.o solib-svr4.o"
 	;;
 alpha*-*-openbsd*)
 	# Target: OpenBSD/alpha

Index: src/external/gpl3/gdb/dist/gdb/config/alpha/nbsd.mh
diff -u src/external/gpl3/gdb/dist/gdb/config/alpha/nbsd.mh:1.6 src/external/gpl3/gdb/dist/gdb/config/alpha/nbsd.mh:1.7
--- src/external/gpl3/gdb/dist/gdb/config/alpha/nbsd.mh:1.6	Sun Jan  7 22:07:16 2018
+++ src/external/gpl3/gdb/dist/gdb/config/alpha/nbsd.mh	Mon Jan  8 13:56:20 2018
@@ -1,5 +1,4 @@
 # Host: NetBSD/alpha
-NATDEPFILES= fork-child.o inf-ptrace.o alpha-bsd-nat.o bsd-kvm.o nbsd-nat.o \
-alpha-nbsd-tdep.o alpha-nbsd-nat.o
+NATDEPFILES= fork-child.o inf-ptrace.o alpha-bsd-nat.o bsd-kvm.o nbsd-nat.o
 
 LOADLIBES= -lkvm

Index: src/external/gpl3/gdb/lib/libbfd/arch/alpha/bfd_stdint.h
diff -u src/external/gpl3/gdb/lib/libbfd/arch/alpha/bfd_stdint.h:1.7 src/external/gpl3/gdb/lib/libbfd/arch/alpha/bfd_stdint.h:1.8
--- src/external/gpl3/gdb/lib/libbfd/arch/alpha/bfd_stdint.h:1.7	Sun Oct 16 04:23:05 2016
+++ src/external/gpl3/gdb/lib/libbfd/arch/alpha/bfd_stdint.h	Mon Jan  8 13:56:20 2018
@@ -1,8 +1,8 @@
 /* This file is automatically generated.  DO NOT EDIT! */
 /* Generated from: NetBSD: mknative-gdb,v 1.7 2016/10/16 04:37:42 mrg Exp  */
-/* 

CVS commit: src/external/gpl3/gdb/lib/libgdb/arch/alpha

2018-01-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan  8 04:00:31 UTC 2018

Modified Files:
src/external/gpl3/gdb/lib/libgdb/arch/alpha: defs.mk init.c

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/alpha/defs.mk
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb/lib/libgdb/arch/alpha/init.c

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/lib/libgdb/arch/alpha/defs.mk
diff -u src/external/gpl3/gdb/lib/libgdb/arch/alpha/defs.mk:1.10 src/external/gpl3/gdb/lib/libgdb/arch/alpha/defs.mk:1.11
--- src/external/gpl3/gdb/lib/libgdb/arch/alpha/defs.mk:1.10	Thu Nov 30 10:26:55 2017
+++ src/external/gpl3/gdb/lib/libgdb/arch/alpha/defs.mk	Sun Jan  7 23:00:31 2018
@@ -3,5 +3,5 @@
 # Generated from: NetBSD: mknative.common,v 1.15 2017/11/29 03:32:28 christos Exp 
 #
 G_INTERNAL_CFLAGS=   -I. -I${GNUHOSTDIST}/gdb -I${GNUHOSTDIST}/gdb/common -I${GNUHOSTDIST}/gdb/config -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I${GNUHOSTDIST}/gdb/../include/opcode -I${GNUHOSTDIST}/gdb/../opcodes/.. -I${GNUHOSTDIST}/gdb/../readline/.. -I${GNUHOSTDIST}/gdb/../zlib -I../bfd -I${GNUHOSTDIST}/gdb/../bfd -I${GNUHOSTDIST}/gdb/../include -I../libdecnumber -I${GNUHOSTDIST}/gdb/../libdecnumber -I./../intl -I${GNUHOSTDIST}/gdb/gnulib/import -Ibuild-gnulib/import   -DTUI=1  -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-narrowing -Wformat-nonliteral 
-G_LIBGDB_OBS=alpha-tdep.o alpha-mdebug-tdep.o alpha-bsd-tdep.o alpha-nbsd-tdep.o nbsd-tdep.o solib-svr4.o ser-base.o ser-unix.o ser-pipe.o ser-tcp.o fork-child.o inf-ptrace.o alpha-bsd-nat.o bsd-kvm.o nbsd-nat.o ax-gdb.o ax-general.o ctf.o dcache.o remote.o remote-fileio.o remote-notif.o tracefile.o tracefile-tfile.o tracepoint.o  cli-cmds.o cli-decode.o cli-dump.o cli-interp.o cli-logging.o cli-script.o cli-setshow.o cli-utils.o mi-cmd-break.o mi-cmd-catch.o mi-cmd-disas.o mi-cmd-env.o mi-cmd-file.o mi-cmd-info.o mi-cmd-stack.o mi-cmd-target.o mi-cmd-var.o mi-cmds.o mi-console.o mi-getopt.o mi-interp.o mi-main.o mi-out.o mi-parse.o mi-symbol-cmds.o tui.o tui-command.o tui-data.o tui-disasm.o tui-file.o tui-hooks.o tui-interp.o tui-io.o tui-layout.o tui-out.o tui-regs.o tui-source.o tui-stack.o tui-win.o tui-windata.o tui-wingeneral.o tui-winsource.o python.o guile.o elfread.o stap-probe.o dtrace-probe.o posix-hdep.o posix-strerror.o ada-exp.o c-exp.o cp-name-parser.o d-exp.o f-exp.
 o go-exp.o m2-exp.o p-exp.o rust-exp.o ada-lang.o ada-tasks.o ada-typeprint.o ada-valprint.o ada-varobj.o addrmap.o agent.o annotate.o arch-utils.o auto-load.o auxv.o bcache.o bfd-target.o block.o blockframe.o break-catch-sig.o break-catch-syscall.o break-catch-throw.o breakpoint.o btrace.o btrace-common.o buffer.o build-id.o buildsym.o c-lang.o c-typeprint.o c-valprint.o c-varobj.o charset.o cleanups.o cli-out.o coff-pe-read.o coffread.o common-agent.o common-debug.o common-exceptions.o common-regcache.o common-utils.o complaints.o completer.o continuations.o copying.o corefile.o corelow.o cp-abi.o cp-namespace.o cp-support.o cp-valprint.o d-lang.o d-namespace.o d-valprint.o dbxread.o debug.o demangle.o dfp.o dictionary.o disasm.o disasm-selftests.o doublest.o dummy-frame.o dwarf2-frame.o dwarf2-frame-tailcall.o dwarf2expr.o dwarf2loc.o dwarf2read.o environ.o errors.o eval.o event-loop.o event-top.o exceptions.o exec.o expprint.o extension.o f-lang.o f-typeprint.o f-valprint.o file
 io.o filestuff.o filesystem.o findcmd.o findvar.o format.o frame.o frame-base.o frame-unwind.o gcore.o gdb_bfd.o gdb-dlfcn.o gdb_obstack.o gdb_usleep.o gdb_vecs.o gdbarch.o gdbtypes.o gnu-v2-abi.o gnu-v3-abi.o go-lang.o go-typeprint.o go-valprint.o inf-child.o inf-loop.o infcall.o infcmd.o inferior.o infrun.o inline-frame.o interps.o jit.o language.o linespec.o location.o m2-lang.o m2-typeprint.o m2-valprint.o macrocmd.o macroexp.o macroscope.o macrotab.o main.o maint.o mdebugread.o mem-break.o memattr.o memory-map.o memrange.o mi-common.o minidebug.o minsyms.o mipsread.o namespace.o new-op.o objc-lang.o objfiles.o observer.o opencl-lang.o osabi.o osdata.o p-lang.o p-typeprint.o p-valprint.o parse.o print-utils.o printcmd.o probe.o progspace.o prologue-value.o psymtab.o ptid.o record.o record-btrace.o record-full.o regcache.o reggroups.o registry.o reverse.o rsp-low.o run-time-clock.o rust-lang.o selftest.o selftest-arch.o sentinel-frame.o ser-event.o serial.o signals.o signals-stat
 e-save-restore.o skip.o solib.o solib-target.o source.o stabsread.o stack.o std-regs.o symfile.o symfile-debug.o symmisc.o symtab.o target.o target-dcache.o target-descriptions.o target-memory.o thread.o thread-fsm.o tid-parse.o top.o trad-frame.o tramp-frame.o typeprint.o ui-file.o ui-out.o user-regs.o 

  1   2   3   4   >