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.diff -r1.65 -r1.66 pkgsrc/devel/gdb/Makefile
(bsiegert)
@@ -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 | |||
3 | DISTNAME= gdb-8.1 | 3 | DISTNAME= gdb-8.3.1 | |
4 | PKGREVISION= 4 | |||
5 | CATEGORIES= devel | 4 | CATEGORIES= devel | |
6 | MASTER_SITES= ${MASTER_SITE_GNU:=gdb/} | 5 | MASTER_SITES= ${MASTER_SITE_GNU:=gdb/} | |
7 | 6 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 7 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://www.gnu.org/software/gdb/gdb.html | 8 | HOMEPAGE= https://www.gnu.org/software/gdb/gdb.html | |
10 | COMMENT= Symbolic debugger for multiple language frontends | 9 | COMMENT= Symbolic debugger for multiple language frontends | |
11 | LICENSE= gnu-gpl-v3 | 10 | LICENSE= gnu-gpl-v3 | |
12 | 11 | |||
13 | USE_LANGUAGES= c c++11 | 12 | USE_LANGUAGES= c c++11 | |
14 | 13 | |||
15 | BROKEN_GETTEXT_DETECTION= yes | 14 | BROKEN_GETTEXT_DETECTION= yes | |
16 | GNU_CONFIGURE= YES | 15 | GNU_CONFIGURE= yes | |
17 | USE_PKGLOCALEDIR= YES | 16 | USE_PKGLOCALEDIR= yes | |
18 | USE_LIBTOOL= YES | 17 | USE_LIBTOOL= yes | |
19 | USE_TOOLS+= gmake msgfmt makeinfo perl:build | 18 | USE_TOOLS+= gmake msgfmt makeinfo perl:build bash:run | |
20 | REPLACE_LOCALEDIR_PATTERNS+= Make-in | 19 | REPLACE_LOCALEDIR_PATTERNS+= Make-in | |
21 | INSTALL_TARGET= install install-info | 20 | INSTALL_TARGET= install install-info | |
22 | TEST_TARGET= check | 21 | TEST_TARGET= check | |
23 | INFO_FILES= yes | 22 | INFO_FILES= yes | |
24 | CONFIGURE_ENV+= CONFIG_LDFLAGS=${LDFLAGS:M*:Q} | 23 | CONFIGURE_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. | |
27 | SUBST_CLASSES+= fix-depcomp | 26 | SUBST_CLASSES+= fix-depcomp | |
28 | SUBST_STAGE.fix-depcomp+= pre-configure | 27 | SUBST_STAGE.fix-depcomp+= pre-configure | |
29 | SUBST_MESSAGE.fix-depcomp+= Read depcomp directly | 28 | SUBST_MESSAGE.fix-depcomp+= Read depcomp directly | |
30 | SUBST_FILES.fix-depcomp+= gdb/configure | 29 | SUBST_FILES.fix-depcomp+= gdb/configure | |
31 | SUBST_SED.fix-depcomp+= -e 's,< ./depcomp,${_OVERRIDE_PATH.depcomp},' | 30 | SUBST_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 | |||
34 | CONFIGURE_ARGS+= --disable-gprof | 33 | CONFIGURE_ARGS+= --disable-gprof | |
35 | CONFIGURE_ARGS+= --disable-gold | 34 | CONFIGURE_ARGS+= --disable-gold | |
36 | CONFIGURE_ARGS+= --disable-gas | 35 | CONFIGURE_ARGS+= --disable-gas | |
37 | CONFIGURE_ARGS+= --disable-ld | 36 | CONFIGURE_ARGS+= --disable-ld | |
38 | 37 | |||
39 | CONFIGURE_ARGS+= --enable-targets=all | 38 | CONFIGURE_ARGS+= --enable-targets=all | |
40 | 39 | |||
41 | AUTO_MKDIRS= yes | 40 | AUTO_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 | |||
46 | REPLACE_BASH+= gdb/gcore.in | |||
47 | ||||
47 | PLIST_VARS+= gcore | 48 | PLIST_VARS+= gcore | |
48 | .if (${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD" \ | 49 | .if (${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD" \ | |
49 | || ${OPSYS} == "Linux" || ${OPSYS} == "FreeBSD") | 50 | || ${OPSYS} == "Linux" || ${OPSYS} == "FreeBSD") | |
50 | PLIST.gcore= yes | 51 | PLIST.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 | |
55 | CONFIGURE_ENV+= ac_cv_header_curses_h=yes | 56 | CONFIGURE_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" | |
58 | CONFIGURE_ARGS+= -with-curses | 59 | CONFIGURE_ARGS+= -with-curses | |
59 | CONFIGURE_ENV+= gdb_cv_var_elf=yes | 60 | CONFIGURE_ENV+= gdb_cv_var_elf=yes |
@@ -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 $ | |
2 | bin/gdb | 2 | bin/gdb | |
3 | bin/gdb-add-index | |||
3 | include/gdb/jit-reader.h | 4 | include/gdb/jit-reader.h | |
4 | info/annotate.info | 5 | info/annotate.info | |
5 | info/gdb.info | 6 | info/gdb.info | |
6 | info/stabs.info | 7 | info/stabs.info | |
8 | man/man1/gdb-add-index.1 | |||
7 | man/man1/gdb.1 | 9 | man/man1/gdb.1 | |
8 | man/man1/gdbserver.1 | 10 | man/man1/gdbserver.1 | |
9 | man/man5/gdbinit.5 | 11 | man/man5/gdbinit.5 | |
10 | share/gdb/python/gdb/FrameDecorator.py | 12 | share/gdb/python/gdb/FrameDecorator.py | |
11 | share/gdb/python/gdb/FrameIterator.py | 13 | share/gdb/python/gdb/FrameIterator.py | |
12 | share/gdb/python/gdb/__init__.py | 14 | share/gdb/python/gdb/__init__.py | |
13 | share/gdb/python/gdb/command/__init__.py | 15 | share/gdb/python/gdb/command/__init__.py | |
14 | share/gdb/python/gdb/command/explore.py | 16 | share/gdb/python/gdb/command/explore.py | |
15 | share/gdb/python/gdb/command/frame_filters.py | 17 | share/gdb/python/gdb/command/frame_filters.py | |
16 | share/gdb/python/gdb/command/pretty_printers.py | 18 | share/gdb/python/gdb/command/pretty_printers.py | |
17 | share/gdb/python/gdb/command/prompt.py | 19 | share/gdb/python/gdb/command/prompt.py | |
18 | share/gdb/python/gdb/command/type_printers.py | 20 | share/gdb/python/gdb/command/type_printers.py | |
19 | share/gdb/python/gdb/command/unwinders.py | 21 | share/gdb/python/gdb/command/unwinders.py |
@@ -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 | |||
3 | SHA1 (gdb-8.1.tar.gz) = b28d9349ccd45c0aa208cda3a1ecf7e17eca0552 | 3 | SHA1 (gdb-8.3.1.tar.gz) = 8e68fc5d524caeb6684a8b6ed24e75396e40c471 | |
4 | RMD160 (gdb-8.1.tar.gz) = 71bbfb22a924f5aa88af7ba8ed11f763a8666ad1 | 4 | RMD160 (gdb-8.3.1.tar.gz) = 82c6d7d2c96b4716f9f338b116122b7395b07e90 | |
5 | SHA512 (gdb-8.1.tar.gz) = 4a51e491061f97708ec1cebf9973ea451f9b9499ee2b898fa1631dbe78ffecec9c09e8a95f04c888dee4664957583b1982efd468088878b203a125bbcf9ee516 | 5 | SHA512 (gdb-8.3.1.tar.gz) = e81949fa011046b07ee6886a378bcbd420e4571367005035007dc70f0d28d975d08fb7d9062b49f0a3e6d2ca8149ea60f9ab485ea98a04198d1ca49d38dbd2fe | |
6 | Size (gdb-8.1.tar.gz) = 37334207 bytes | 6 | Size (gdb-8.3.1.tar.gz) = 38130999 bytes | |
7 | SHA1 (patch-Makefile.in) = 48f65798f96fdda2a35eb8b18a7cc2993023bcc7 | 7 | SHA1 (patch-Makefile.in) = 48f65798f96fdda2a35eb8b18a7cc2993023bcc7 | |
8 | SHA1 (patch-gdb_proc-events.c) = 0ff0e3b33beacd83384f4b1b07e337d5271cea8c | 8 | SHA1 (patch-gdb_testsuite_Makefile.in) = 295fa86f16e520a7df907743988cc3dbdb606c2a | |
9 | SHA1 (patch-opcodes_i386-dis_c) = 57b2b2ce85567faf112ec9f435b9aed0ffc943fb | 9 | SHA1 (patch-opcodes_i386-dis_c) = 57b2b2ce85567faf112ec9f435b9aed0ffc943fb | |
10 | SHA1 (patch-sim_ppc_emul_netbsd.c) = 34fcb884c3c82e8eae6cd6f8c87ce42e9354c347 | 10 | SHA1 (patch-sim_ppc_emul_netbsd.c) = 34fcb884c3c82e8eae6cd6f8c87ce42e9354c347 |
$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."; \