Sat Apr 11 12:47:28 2020 UTC ()
Update gdb to 8.3.1.

September 20th, 2019: GDB 8.3.1 Released!

    This is a minor corrective release over GDB 8.3, fixing the following
    issues:
      * 20020 (GDB segfault on printing objects)
      * 24454 (nat/x86-linux-dregs.c:146: internal-error: void
        x86_linux_update_debug_registers(lwp_info*): Assertion `lwp_is_stopped
        (lwp)' failed)
      * 24541 (Incorrect evaluation of systemtap probes due to
        register being signed and probe expression assuming unsigned)
      * 24545 (Symbol loading performance regression with cc1)
      * 24592 (amd64->i386 linux syscall restart problem)
      * 25009 (terminate called after throwing an instance of
        'srchilite::ParserException')
      * 25010 (Calls to error () can cause SIGTTOU to send gdb to the
        background)
      * 25011 (Breakpoints on file reloads broken for PIE
        binaries)
    This corrective release also brings the following testsuite fixes and
    enhancements:
      * 25005 (gdb-caching-proc.exp takes a lot of time on
        skip_opencl_tests)
      * 25016 (Test-case failures for -pie)

May 11th, 2019: GDB 8.3 Released!

    This version of GDB includes the following changes and enhancements:
      * Support for new native configurations (also available as a target
        configuration):
          - RISC-V GNU/Linux (riscv*-*-linux*)
          - RISC-V FreeBSD (riscv*-*-freebsd*)
      * Support for new target configurations:
          - CSKY ELF (csky*-*-elf)
          - CSKY GNU/Linux (csky*-*-linux)
          - NXP S12Z ELF (s12z-*-elf)
          - OpenRISC GNU/Linux (or1k*-*-linux*)
      * Native Windows debugging is only supported on Windows XP or later.
      * The Python API in GDB now requires Python 2.6 or later.
      * GDB now supports terminal styling for the CLI and TUI. Source
        highlighting is also supported by building GDB with GNU Highlight.
      * Experimental support for compilation and injection of C++ source code
        into the inferior (requires GCC 7.1 or higher, built with libcp1.so).
      * GDB and GDBserver now support IPv6 connections.
      * Target description support on RISC-V targets.
      * Various enhancements to several commands:
          - "frame", "select-frame" and "info frame" commands
          - "info functions", "info types", "info variables"
          - "info thread"
          - "info proc"
          - System call alias catchpoint support on FreeBSD
          - "target remote" support for Unix Domain sockets.
      * Support for displaying all files opened by a process
      * DWARF index cache: GDB can now automatically save indices of DWARF
        symbols on disk to speed up further loading of the same binaries.
      * Various GDB/MI enhancements.
      * GDBserver on PowerPC GNU/Linux now supports access to the PPR, DSCR,
        TAR, EBB/PMU, and HTM registers.
      * Ada task switching support when debugging programs built with the
        Ravenscar profile added to aarch64-elf.
      * GDB in batch mode now exits with status 1 if the last executed command
        failed.
      * Support for building GDB with GCC's Undefined Behavior Sanitizer.
    See the NEWS file for a more complete and detailed list of what this
    release includes.

December 23rd, 2018: GDB 8.2.1 Released!

    This is a minor corrective release over GDB 8.2, fixing the following
    issues:
      * 23516 (gdb build error under msys+mingw: strip can't handle
        gdb-add-index.exe)
      * 23623 (install-strip fails)
      * 23626 (gdb crashes in upstream rust nil-enum test)
      * 23650 (rust field name access error mentions "foo")
      * 23663 (gdb 8.1.1: undefined rpl_stat function with musl
        toolchains)
      * 23669 (gdb.execute("show commands") doesn't work)
      * 23714 (Command repetition stops working after gdb.execute)
      * 23838 (8.2 regression for invalid -data-directory)
      * 23974 ("info os" crash when specifying invalid object)
      * 23999 (SYMBOL_LANGUAGE assertion failure on AIX)
      * 24003 (Error when binary searching CUs for a specific DIE when
        using DWZ)

September 5th, 2018: GDB 8.2 Released!

    This version of GDB includes the following changes and enhancements:
      * Support for the following target has been added:
          - RiscV ELF (riscv*-*-elf)
      * Support for following targets and native configurations has been
        removed:
          - m88k running OpenBSD (m88*-*-openbsd*)
          - SH-5/SH64 ELF (sh64-*-elf*)
          - SH-5/SH64 (sh*)
          - SH-5/SH64 running GNU/Linux (sh*-*-linux*)
          - SH-5/SH64 running OpenBSD (sh*-*-openbsd*)
      * Various Python API enhancements
      * Aarch64/Linux enhancements:
          - SVE support.
          - Hardware watchpoints improvements for entities stored at unaligned
            addresses.
              - New "c" response to disable the pager for the rest of the
                current command.
              - C expressions can now use _Alignof, and C++ expressions can now
                use alignof.
              - Improved flexibility for loading symbol files.
              - The 'info proc' command nows works on running processes on
                FreeBSD systems as well as core files created on FreeBSD
                systems.
              - A new --enable-codesign=CERT configure option to automatically
                codesign GDB after build (useful on MacOS X).
            See the NEWS file for a more complete and detailed list of what
            this release includes.


(bsiegert)
diff -r1.65 -r1.66 pkgsrc/devel/gdb/Makefile
diff -r1.13 -r1.14 pkgsrc/devel/gdb/PLIST.common
diff -r1.33 -r1.34 pkgsrc/devel/gdb/distinfo
diff -r1.1 -r0 pkgsrc/devel/gdb/patches/patch-gdb_proc-events.c
diff -r0 -r1.1 pkgsrc/devel/gdb/patches/patch-gdb_testsuite_Makefile.in

cvs diff -r1.65 -r1.66 pkgsrc/devel/gdb/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/gdb/Makefile 2020/01/18 23:30:28 1.65
+++ pkgsrc/devel/gdb/Makefile 2020/04/11 12:47:28 1.66
@@ -1,32 +1,31 @@ @@ -1,32 +1,31 @@
1# $NetBSD: Makefile,v 1.65 2020/01/18 23:30:28 rillig Exp $ 1# $NetBSD: Makefile,v 1.66 2020/04/11 12:47:28 bsiegert Exp $
2 2
3DISTNAME= gdb-8.1 3DISTNAME= gdb-8.3.1
4PKGREVISION= 4 
5CATEGORIES= devel 4CATEGORIES= devel
6MASTER_SITES= ${MASTER_SITE_GNU:=gdb/} 5MASTER_SITES= ${MASTER_SITE_GNU:=gdb/}
7 6
8MAINTAINER= pkgsrc-users@NetBSD.org 7MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://www.gnu.org/software/gdb/gdb.html 8HOMEPAGE= https://www.gnu.org/software/gdb/gdb.html
10COMMENT= Symbolic debugger for multiple language frontends 9COMMENT= Symbolic debugger for multiple language frontends
11LICENSE= gnu-gpl-v3 10LICENSE= gnu-gpl-v3
12 11
13USE_LANGUAGES= c c++11 12USE_LANGUAGES= c c++11
14 13
15BROKEN_GETTEXT_DETECTION= yes 14BROKEN_GETTEXT_DETECTION= yes
16GNU_CONFIGURE= YES 15GNU_CONFIGURE= yes
17USE_PKGLOCALEDIR= YES 16USE_PKGLOCALEDIR= yes
18USE_LIBTOOL= YES 17USE_LIBTOOL= yes
19USE_TOOLS+= gmake msgfmt makeinfo perl:build 18USE_TOOLS+= gmake msgfmt makeinfo perl:build bash:run
20REPLACE_LOCALEDIR_PATTERNS+= Make-in 19REPLACE_LOCALEDIR_PATTERNS+= Make-in
21INSTALL_TARGET= install install-info 20INSTALL_TARGET= install install-info
22TEST_TARGET= check 21TEST_TARGET= check
23INFO_FILES= yes 22INFO_FILES= yes
24CONFIGURE_ENV+= CONFIG_LDFLAGS=${LDFLAGS:M*:Q} 23CONFIGURE_ENV+= CONFIG_LDFLAGS=${LDFLAGS:M*:Q}
25 24
26# In gdb/configure, depcomp is parsed with sed. 25# In gdb/configure, depcomp is parsed with sed.
27SUBST_CLASSES+= fix-depcomp 26SUBST_CLASSES+= fix-depcomp
28SUBST_STAGE.fix-depcomp+= pre-configure 27SUBST_STAGE.fix-depcomp+= pre-configure
29SUBST_MESSAGE.fix-depcomp+= Read depcomp directly 28SUBST_MESSAGE.fix-depcomp+= Read depcomp directly
30SUBST_FILES.fix-depcomp+= gdb/configure 29SUBST_FILES.fix-depcomp+= gdb/configure
31SUBST_SED.fix-depcomp+= -e 's,< ./depcomp,${_OVERRIDE_PATH.depcomp},' 30SUBST_SED.fix-depcomp+= -e 's,< ./depcomp,${_OVERRIDE_PATH.depcomp},'
32 31
@@ -34,26 +33,28 @@ CONFIGURE_ARGS+= --disable-binutils @@ -34,26 +33,28 @@ CONFIGURE_ARGS+= --disable-binutils
34CONFIGURE_ARGS+= --disable-gprof 33CONFIGURE_ARGS+= --disable-gprof
35CONFIGURE_ARGS+= --disable-gold 34CONFIGURE_ARGS+= --disable-gold
36CONFIGURE_ARGS+= --disable-gas 35CONFIGURE_ARGS+= --disable-gas
37CONFIGURE_ARGS+= --disable-ld 36CONFIGURE_ARGS+= --disable-ld
38 37
39CONFIGURE_ARGS+= --enable-targets=all 38CONFIGURE_ARGS+= --enable-targets=all
40 39
41AUTO_MKDIRS= yes 40AUTO_MKDIRS= yes
42 41
43.include "options.mk" 42.include "options.mk"
44 43
45.include "../../mk/bsd.prefs.mk" 44.include "../../mk/bsd.prefs.mk"
46 45
 46REPLACE_BASH+= gdb/gcore.in
 47
47PLIST_VARS+= gcore 48PLIST_VARS+= gcore
48.if (${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD" \ 49.if (${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD" \
49 || ${OPSYS} == "Linux" || ${OPSYS} == "FreeBSD") 50 || ${OPSYS} == "Linux" || ${OPSYS} == "FreeBSD")
50PLIST.gcore= yes 51PLIST.gcore= yes
51.endif 52.endif
52 53
53.if ${OPSYS} == "SunOS" 54.if ${OPSYS} == "SunOS"
54# Work around a bug in gdb's configure 55# Work around a bug in gdb's configure
55CONFIGURE_ENV+= ac_cv_header_curses_h=yes 56CONFIGURE_ENV+= ac_cv_header_curses_h=yes
56.elif ${OPSYS} == "NetBSD" 57.elif ${OPSYS} == "NetBSD"
57.include "../../mk/curses.buildlink3.mk" 58.include "../../mk/curses.buildlink3.mk"
58CONFIGURE_ARGS+= -with-curses 59CONFIGURE_ARGS+= -with-curses
59CONFIGURE_ENV+= gdb_cv_var_elf=yes 60CONFIGURE_ENV+= gdb_cv_var_elf=yes

cvs diff -r1.13 -r1.14 pkgsrc/devel/gdb/PLIST.common (expand / switch to unified diff)

--- pkgsrc/devel/gdb/PLIST.common 2018/01/31 20:33:11 1.13
+++ pkgsrc/devel/gdb/PLIST.common 2020/04/11 12:47:28 1.14
@@ -1,19 +1,21 @@ @@ -1,19 +1,21 @@
1@comment $NetBSD: PLIST.common,v 1.13 2018/01/31 20:33:11 maya Exp $ 1@comment $NetBSD: PLIST.common,v 1.14 2020/04/11 12:47:28 bsiegert Exp $
2bin/gdb 2bin/gdb
 3bin/gdb-add-index
3include/gdb/jit-reader.h 4include/gdb/jit-reader.h
4info/annotate.info 5info/annotate.info
5info/gdb.info 6info/gdb.info
6info/stabs.info 7info/stabs.info
 8man/man1/gdb-add-index.1
7man/man1/gdb.1 9man/man1/gdb.1
8man/man1/gdbserver.1 10man/man1/gdbserver.1
9man/man5/gdbinit.5 11man/man5/gdbinit.5
10share/gdb/python/gdb/FrameDecorator.py 12share/gdb/python/gdb/FrameDecorator.py
11share/gdb/python/gdb/FrameIterator.py 13share/gdb/python/gdb/FrameIterator.py
12share/gdb/python/gdb/__init__.py 14share/gdb/python/gdb/__init__.py
13share/gdb/python/gdb/command/__init__.py 15share/gdb/python/gdb/command/__init__.py
14share/gdb/python/gdb/command/explore.py 16share/gdb/python/gdb/command/explore.py
15share/gdb/python/gdb/command/frame_filters.py 17share/gdb/python/gdb/command/frame_filters.py
16share/gdb/python/gdb/command/pretty_printers.py 18share/gdb/python/gdb/command/pretty_printers.py
17share/gdb/python/gdb/command/prompt.py 19share/gdb/python/gdb/command/prompt.py
18share/gdb/python/gdb/command/type_printers.py 20share/gdb/python/gdb/command/type_printers.py
19share/gdb/python/gdb/command/unwinders.py 21share/gdb/python/gdb/command/unwinders.py

cvs diff -r1.33 -r1.34 pkgsrc/devel/gdb/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/gdb/distinfo 2019/10/11 09:23:42 1.33
+++ pkgsrc/devel/gdb/distinfo 2020/04/11 12:47:28 1.34
@@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
1$NetBSD: distinfo,v 1.33 2019/10/11 09:23:42 maya Exp $ 1$NetBSD: distinfo,v 1.34 2020/04/11 12:47:28 bsiegert Exp $
2 2
3SHA1 (gdb-8.1.tar.gz) = b28d9349ccd45c0aa208cda3a1ecf7e17eca0552 3SHA1 (gdb-8.3.1.tar.gz) = 8e68fc5d524caeb6684a8b6ed24e75396e40c471
4RMD160 (gdb-8.1.tar.gz) = 71bbfb22a924f5aa88af7ba8ed11f763a8666ad1 4RMD160 (gdb-8.3.1.tar.gz) = 82c6d7d2c96b4716f9f338b116122b7395b07e90
5SHA512 (gdb-8.1.tar.gz) = 4a51e491061f97708ec1cebf9973ea451f9b9499ee2b898fa1631dbe78ffecec9c09e8a95f04c888dee4664957583b1982efd468088878b203a125bbcf9ee516 5SHA512 (gdb-8.3.1.tar.gz) = e81949fa011046b07ee6886a378bcbd420e4571367005035007dc70f0d28d975d08fb7d9062b49f0a3e6d2ca8149ea60f9ab485ea98a04198d1ca49d38dbd2fe
6Size (gdb-8.1.tar.gz) = 37334207 bytes 6Size (gdb-8.3.1.tar.gz) = 38130999 bytes
7SHA1 (patch-Makefile.in) = 48f65798f96fdda2a35eb8b18a7cc2993023bcc7 7SHA1 (patch-Makefile.in) = 48f65798f96fdda2a35eb8b18a7cc2993023bcc7
8SHA1 (patch-gdb_proc-events.c) = 0ff0e3b33beacd83384f4b1b07e337d5271cea8c 8SHA1 (patch-gdb_testsuite_Makefile.in) = 295fa86f16e520a7df907743988cc3dbdb606c2a
9SHA1 (patch-opcodes_i386-dis_c) = 57b2b2ce85567faf112ec9f435b9aed0ffc943fb 9SHA1 (patch-opcodes_i386-dis_c) = 57b2b2ce85567faf112ec9f435b9aed0ffc943fb
10SHA1 (patch-sim_ppc_emul_netbsd.c) = 34fcb884c3c82e8eae6cd6f8c87ce42e9354c347 10SHA1 (patch-sim_ppc_emul_netbsd.c) = 34fcb884c3c82e8eae6cd6f8c87ce42e9354c347

File Deleted: pkgsrc/devel/gdb/patches/Attic/patch-gdb_proc-events.c

File Added: pkgsrc/devel/gdb/patches/Attic/patch-gdb_testsuite_Makefile.in
$NetBSD: patch-gdb_testsuite_Makefile.in,v 1.1 2020/04/11 12:47:28 bsiegert Exp $

--- gdb/testsuite/Makefile.in.orig	2019-09-20 22:04:41.000000000 +0000
+++ gdb/testsuite/Makefile.in
@@ -202,7 +202,7 @@ check-single-racy:
 	-rm -rf cache racy_outputs temp
 	mkdir -p racy_outputs; \
 	racyiter="$(RACY_ITER)"; \
-	test "x$$racyiter" == "x" && \
+	test "x$$racyiter" = "x" && \
 	  racyiter=$(DEFAULT_RACY_ITER); \
 	if test $$racyiter -lt 2 ; then \
 	  echo "RACY_ITER must be at least 2."; \
@@ -232,7 +232,7 @@ check-parallel:
 check-parallel-racy:
 	-rm -rf cache racy_outputs temp
 	racyiter="$(RACY_ITER)"; \
-	test "x$$racyiter" == "x" && \
+	test "x$$racyiter" = "x" && \
 	  racyiter=$(DEFAULT_RACY_ITER); \
 	if test $$racyiter -lt 2 ; then \
 	  echo "RACY_ITER must be at least 2."; \