Wed Jan 31 20:33:11 2018 UTC ()
gdb: update to 8.1.

local changes: use plist var for gcore.
XXX don't install gcore.1 that doesn't appear to be installed but exists
remove merged patches.

GDB 8.1 includes the following changes and enhancements:

  * Breakpoints on C++ functions are now set on all scopes by default
    ("wild" matching);

  * Support for inserting breakpoints on functions marked with C++ ABI tags;

  * Target floating-point arithmetic emulation during expression evaluation
    (requires MPFR 3.1 or later);

  * Various Python Scripting enhancements;

  * Improved Rust support; in particular, Trait objects can now be inspected
    when debugging Rust code;

  * GDB no longer makes assumptions about the type of symbols without
    debugging information to avoid producing erroneous and often confusing
    results;

  * The 'enable' and 'disable' commands now accept a range of breakpoint
    locations;

  * New 'starti' command to start the program at the first instruction;

  * New 'rbreak' command to insert a number of breakpoints via a regular
    expression pattern (requires Python);

  * The 'ptype' command now supports printing the offset and size of
    the fields in a struct;

  * The 'gcore' command now supports dumping all the memory mappings
    ('-a' command-line option);

  * New shortcuts for TUI Single-Key mode: 'i' for stepi, and 'o' for nexti;

  * GDBserver enhancements:
    ** Support for transmitting environment variables to GDBserver;
    ** Support for starting inferior processes with a specified initial
       working directory;
    ** On Unix systems, support for globbing expansion and variable
       substitution of inferior command-line arguments;

  * Various completion enhancements;

  * The command used to compile and inject code with the 'compile' command
    is now configurable;

  * New '--readnever' command-line option to speed the GDB startup when
    debugging information is not needed;

  * Support for the following new native configurations:
    ** FreeBSD/aarch64 (aarch64*-*-freebsd*);
    ** FreeBSD/arm (arm*-*-freebsd*);

  * Support for the following new targets:
    ** FreeBSD/aarch64 (aarch64*-*-freebsd*);
    ** FreeBSD/arm (arm*-*-freebsd*);
    ** OpenRISC ELF (or1k*-*-elf)

  * Removed support for the following targets and native configurations:
    ** Solaris2/x86 (i?86-*-solaris2.[0-9]);
    ** Solaris2/sparc (sparc*-*-solaris2.[0-9]);

For a complete list and more details on each item, please see the gdb/NEWS
file, available at:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob_plain;f=gdb/NEWS;hb=gdb-8.1-release


(maya)
diff -r1.58 -r1.59 pkgsrc/devel/gdb/Makefile
diff -r1.4 -r1.5 pkgsrc/devel/gdb/PLIST.Linux
diff -r1.2 -r0 pkgsrc/devel/gdb/PLIST.SunOS
diff -r1.12 -r1.13 pkgsrc/devel/gdb/PLIST.common
diff -r1.31 -r1.32 pkgsrc/devel/gdb/distinfo
diff -r1.2 -r0 pkgsrc/devel/gdb/patches/patch-ao
diff -r1.3 -r0 pkgsrc/devel/gdb/patches/patch-gdb_bsd-kvm.c
diff -r1.1 -r0 pkgsrc/devel/gdb/patches/patch-gdb_config_i386_nbsd64.mh
diff -r1.1 -r0 pkgsrc/devel/gdb/patches/patch-gdb_x86-bsd-nat.c

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

--- pkgsrc/devel/gdb/Makefile 2017/09/07 17:11:47 1.58
+++ pkgsrc/devel/gdb/Makefile 2018/01/31 20:33:11 1.59
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.58 2017/09/07 17:11:47 kamil Exp $ 1# $NetBSD: Makefile,v 1.59 2018/01/31 20:33:11 maya Exp $
2 2
3DISTNAME= gdb-8.0.1 3DISTNAME= gdb-8.1
4CATEGORIES= devel 4CATEGORIES= devel
5MASTER_SITES= ${MASTER_SITE_GNU:=gdb/} 5MASTER_SITES= ${MASTER_SITE_GNU:=gdb/}
6 6
7MAINTAINER= pkgsrc-users@NetBSD.org 7MAINTAINER= pkgsrc-users@NetBSD.org
8HOMEPAGE= http://www.gnu.org/software/gdb/gdb.html 8HOMEPAGE= http://www.gnu.org/software/gdb/gdb.html
9COMMENT= Symbolic debugger for multiple language frontends 9COMMENT= Symbolic debugger for multiple language frontends
10LICENSE= gnu-gpl-v3 10LICENSE= gnu-gpl-v3
11 11
12USE_LANGUAGES= c c++11 12USE_LANGUAGES= c c++11
13 13
14BROKEN_GETTEXT_DETECTION= yes 14BROKEN_GETTEXT_DETECTION= yes
15GNU_CONFIGURE= YES 15GNU_CONFIGURE= YES
16USE_PKGLOCALEDIR= YES 16USE_PKGLOCALEDIR= YES
@@ -21,36 +21,42 @@ INSTALL_TARGET= install install-info @@ -21,36 +21,42 @@ INSTALL_TARGET= install install-info
21TEST_TARGET= check 21TEST_TARGET= check
22INFO_FILES= yes 22INFO_FILES= yes
23CONFIGURE_ENV+= CONFIG_LDFLAGS=${LDFLAGS:M*:Q} 23CONFIGURE_ENV+= CONFIG_LDFLAGS=${LDFLAGS:M*:Q}
24 24
25# In gdb/configure, depcomp is parsed with sed. 25# In gdb/configure, depcomp is parsed with sed.
26SUBST_CLASSES+= fix-depcomp 26SUBST_CLASSES+= fix-depcomp
27SUBST_STAGE.fix-depcomp+= pre-configure 27SUBST_STAGE.fix-depcomp+= pre-configure
28SUBST_MESSAGE.fix-depcomp+= Read depcomp directly 28SUBST_MESSAGE.fix-depcomp+= Read depcomp directly
29SUBST_FILES.fix-depcomp+= gdb/configure 29SUBST_FILES.fix-depcomp+= gdb/configure
30SUBST_SED.fix-depcomp+= -e 's,< ./depcomp,${_OVERRIDE_PATH.depcomp},' 30SUBST_SED.fix-depcomp+= -e 's,< ./depcomp,${_OVERRIDE_PATH.depcomp},'
31 31
32CONFIGURE_ARGS+= --disable-binutils 32CONFIGURE_ARGS+= --disable-binutils
33CONFIGURE_ARGS+= --disable-gprof 33CONFIGURE_ARGS+= --disable-gprof
34CONFIGURE_ARGS+= --disable-gold  34CONFIGURE_ARGS+= --disable-gold
35CONFIGURE_ARGS+= --disable-gas 35CONFIGURE_ARGS+= --disable-gas
36CONFIGURE_ARGS+= --disable-ld 36CONFIGURE_ARGS+= --disable-ld
37 37
38AUTO_MKDIRS= yes 38AUTO_MKDIRS= yes
39 39
40.include "options.mk" 40.include "options.mk"
41 41
42.include "../../mk/bsd.prefs.mk" 42.include "../../mk/bsd.prefs.mk"
43 43
 44PLIST_VARS+= gcore
 45.if (${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD" \
 46 || ${OPSYS} == "Linux" || ${OPSYS} == "FreeBSD")
 47PLIST.gcore= yes
 48.endif
 49
44.if ${OPSYS} == "SunOS" 50.if ${OPSYS} == "SunOS"
45# Work around a bug in gdb's configure 51# Work around a bug in gdb's configure
46CONFIGURE_ENV+= ac_cv_header_curses_h=yes 52CONFIGURE_ENV+= ac_cv_header_curses_h=yes
47.elif ${OPSYS} == "NetBSD" 53.elif ${OPSYS} == "NetBSD"
48.include "../../mk/curses.buildlink3.mk" 54.include "../../mk/curses.buildlink3.mk"
49CONFIGURE_ARGS+= -with-curses 55CONFIGURE_ARGS+= -with-curses
50CONFIGURE_ENV+= gdb_cv_var_elf=yes 56CONFIGURE_ENV+= gdb_cv_var_elf=yes
51MAKE_ENV+= gdb_cv_var_elf=yes 57MAKE_ENV+= gdb_cv_var_elf=yes
52CONFIGURE_ENV+= gdb_cv_struct_lwp=yes 58CONFIGURE_ENV+= gdb_cv_struct_lwp=yes
53MAKE_ENV+= gdb_cv_struct_lwp=yes 59MAKE_ENV+= gdb_cv_struct_lwp=yes
54 60
55CONFIGURE_ARGS+= --with-separate-debug-dir=/usr/libdata/debug 61CONFIGURE_ARGS+= --with-separate-debug-dir=/usr/libdata/debug
56.elif ${OPSYS} == "DragonFly" 62.elif ${OPSYS} == "DragonFly"

cvs diff -r1.4 -r1.5 pkgsrc/devel/gdb/PLIST.Linux (expand / switch to unified diff)

--- pkgsrc/devel/gdb/PLIST.Linux 2018/01/01 22:29:24 1.4
+++ pkgsrc/devel/gdb/PLIST.Linux 2018/01/31 20:33:11 1.5
@@ -1,5 +1,3 @@ @@ -1,5 +1,3 @@
1@comment $NetBSD: PLIST.Linux,v 1.4 2018/01/01 22:29:24 rillig Exp $ 1@comment $NetBSD: PLIST.Linux,v 1.5 2018/01/31 20:33:11 maya Exp $
2bin/gcore 
3bin/gdbserver 2bin/gdbserver
4lib/libinproctrace.so 3lib/libinproctrace.so
5man/man1/gcore.1 

File Deleted: pkgsrc/devel/gdb/Attic/PLIST.SunOS

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

--- pkgsrc/devel/gdb/PLIST.common 2017/06/05 11:38:51 1.12
+++ pkgsrc/devel/gdb/PLIST.common 2018/01/31 20:33:11 1.13
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST.common,v 1.12 2017/06/05 11:38:51 maya Exp $ 1@comment $NetBSD: PLIST.common,v 1.13 2018/01/31 20:33:11 maya Exp $
2bin/gdb 2bin/gdb
3include/gdb/jit-reader.h 3include/gdb/jit-reader.h
4info/annotate.info 4info/annotate.info
5info/gdb.info 5info/gdb.info
6info/stabs.info 6info/stabs.info
7man/man1/gdb.1 7man/man1/gdb.1
8man/man1/gdbserver.1 8man/man1/gdbserver.1
9man/man5/gdbinit.5 9man/man5/gdbinit.5
10share/gdb/python/gdb/FrameDecorator.py 10share/gdb/python/gdb/FrameDecorator.py
11share/gdb/python/gdb/FrameIterator.py 11share/gdb/python/gdb/FrameIterator.py
12share/gdb/python/gdb/__init__.py 12share/gdb/python/gdb/__init__.py
13share/gdb/python/gdb/command/__init__.py 13share/gdb/python/gdb/command/__init__.py
14share/gdb/python/gdb/command/explore.py 14share/gdb/python/gdb/command/explore.py
@@ -37,13 +37,14 @@ share/gdb/syscalls/freebsd.xml @@ -37,13 +37,14 @@ share/gdb/syscalls/freebsd.xml
37share/gdb/syscalls/gdb-syscalls.dtd 37share/gdb/syscalls/gdb-syscalls.dtd
38share/gdb/syscalls/i386-linux.xml 38share/gdb/syscalls/i386-linux.xml
39share/gdb/syscalls/mips-n32-linux.xml 39share/gdb/syscalls/mips-n32-linux.xml
40share/gdb/syscalls/mips-n64-linux.xml 40share/gdb/syscalls/mips-n64-linux.xml
41share/gdb/syscalls/mips-o32-linux.xml 41share/gdb/syscalls/mips-o32-linux.xml
42share/gdb/syscalls/ppc-linux.xml 42share/gdb/syscalls/ppc-linux.xml
43share/gdb/syscalls/ppc64-linux.xml 43share/gdb/syscalls/ppc64-linux.xml
44share/gdb/syscalls/s390-linux.xml 44share/gdb/syscalls/s390-linux.xml
45share/gdb/syscalls/s390x-linux.xml 45share/gdb/syscalls/s390x-linux.xml
46share/gdb/syscalls/sparc-linux.xml 46share/gdb/syscalls/sparc-linux.xml
47share/gdb/syscalls/sparc64-linux.xml 47share/gdb/syscalls/sparc64-linux.xml
48share/gdb/system-gdbinit/elinos.py 48share/gdb/system-gdbinit/elinos.py
49share/gdb/system-gdbinit/wrs-linux.py 49share/gdb/system-gdbinit/wrs-linux.py
 50${PLIST.gcore}bin/gcore

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

--- pkgsrc/devel/gdb/distinfo 2017/09/07 17:11:47 1.31
+++ pkgsrc/devel/gdb/distinfo 2018/01/31 20:33:11 1.32
@@ -1,13 +1,9 @@ @@ -1,13 +1,9 @@
1$NetBSD: distinfo,v 1.31 2017/09/07 17:11:47 kamil Exp $ 1$NetBSD: distinfo,v 1.32 2018/01/31 20:33:11 maya Exp $
2 2
3SHA1 (gdb-8.0.1.tar.gz) = abb30c4fd7f66c830d879715cce5732bcf84f0f6 3SHA1 (gdb-8.1.tar.gz) = b28d9349ccd45c0aa208cda3a1ecf7e17eca0552
4RMD160 (gdb-8.0.1.tar.gz) = 5ad7e7417dea2f4c7cc4795b74a58b948d8d93b2 4RMD160 (gdb-8.1.tar.gz) = 71bbfb22a924f5aa88af7ba8ed11f763a8666ad1
5SHA512 (gdb-8.0.1.tar.gz) = 58eb6150c908d67e6aed01d04bd321c7914e3e82fbb81a31e3050c4470e24e67cbe023b3f3edfb981225802441cf8b0d3d042195e96b6530058966cfdcd53c8d 5SHA512 (gdb-8.1.tar.gz) = 4a51e491061f97708ec1cebf9973ea451f9b9499ee2b898fa1631dbe78ffecec9c09e8a95f04c888dee4664957583b1982efd468088878b203a125bbcf9ee516
6Size (gdb-8.0.1.tar.gz) = 36359351 bytes 6Size (gdb-8.1.tar.gz) = 37334207 bytes
7SHA1 (patch-Makefile.in) = 48f65798f96fdda2a35eb8b18a7cc2993023bcc7 7SHA1 (patch-Makefile.in) = 48f65798f96fdda2a35eb8b18a7cc2993023bcc7
8SHA1 (patch-ao) = fe55dc7245f438fccb7965ceb220be951f85a535 
9SHA1 (patch-gdb_bsd-kvm.c) = 45d0436f7c451de326afaffd3ebc5a4c3689d6f8 
10SHA1 (patch-gdb_config_i386_nbsd64.mh) = 5dd8cfc89d3de5d8df3f57d3c798a1fe292d4dfe 
11SHA1 (patch-gdb_x86-bsd-nat.c) = 82bfdd27ab88bf21421ad9209bbe5821f36ac854 
12SHA1 (patch-opcodes_i386-dis_c) = 57b2b2ce85567faf112ec9f435b9aed0ffc943fb 8SHA1 (patch-opcodes_i386-dis_c) = 57b2b2ce85567faf112ec9f435b9aed0ffc943fb
13SHA1 (patch-sim_ppc_emul_netbsd.c) = 34fcb884c3c82e8eae6cd6f8c87ce42e9354c347 9SHA1 (patch-sim_ppc_emul_netbsd.c) = 34fcb884c3c82e8eae6cd6f8c87ce42e9354c347

File Deleted: pkgsrc/devel/gdb/patches/Attic/patch-ao

File Deleted: pkgsrc/devel/gdb/patches/Attic/patch-gdb_bsd-kvm.c

File Deleted: pkgsrc/devel/gdb/patches/Attic/patch-gdb_config_i386_nbsd64.mh

File Deleted: pkgsrc/devel/gdb/patches/Attic/patch-gdb_x86-bsd-nat.c