pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/gdb gdb: update to 8.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/43c7392c7151
branches:  trunk
changeset: 374934:43c7392c7151
user:      maya <maya%pkgsrc.org@localhost>
date:      Wed Jan 31 20:33:11 2018 +0000

description:
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

diffstat:

 devel/gdb/Makefile                                |  12 ++++++++--
 devel/gdb/PLIST.Linux                             |   4 +--
 devel/gdb/PLIST.SunOS                             |   3 --
 devel/gdb/PLIST.common                            |   3 +-
 devel/gdb/distinfo                                |  14 ++++--------
 devel/gdb/patches/patch-ao                        |  16 --------------
 devel/gdb/patches/patch-gdb_bsd-kvm.c             |  25 -----------------------
 devel/gdb/patches/patch-gdb_config_i386_nbsd64.mh |  15 -------------
 devel/gdb/patches/patch-gdb_x86-bsd-nat.c         |  20 ------------------
 9 files changed, 17 insertions(+), 95 deletions(-)

diffs (179 lines):

diff -r 7529ac22a7ff -r 43c7392c7151 devel/gdb/Makefile
--- a/devel/gdb/Makefile        Wed Jan 31 20:18:31 2018 +0000
+++ b/devel/gdb/Makefile        Wed Jan 31 20:33:11 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.58 2017/09/07 17:11:47 kamil Exp $
+# $NetBSD: Makefile,v 1.59 2018/01/31 20:33:11 maya Exp $
 
-DISTNAME=      gdb-8.0.1
+DISTNAME=      gdb-8.1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GNU:=gdb/}
 
@@ -31,7 +31,7 @@
 
 CONFIGURE_ARGS+=       --disable-binutils
 CONFIGURE_ARGS+=       --disable-gprof
-CONFIGURE_ARGS+=       --disable-gold                                                                                                                       
+CONFIGURE_ARGS+=       --disable-gold
 CONFIGURE_ARGS+=       --disable-gas
 CONFIGURE_ARGS+=       --disable-ld
 
@@ -41,6 +41,12 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+PLIST_VARS+=   gcore
+.if (${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD" \
+    || ${OPSYS} == "Linux" || ${OPSYS} == "FreeBSD")
+PLIST.gcore=   yes
+.endif
+
 .if ${OPSYS} == "SunOS"
 # Work around a bug in gdb's configure
 CONFIGURE_ENV+=                ac_cv_header_curses_h=yes
diff -r 7529ac22a7ff -r 43c7392c7151 devel/gdb/PLIST.Linux
--- a/devel/gdb/PLIST.Linux     Wed Jan 31 20:18:31 2018 +0000
+++ b/devel/gdb/PLIST.Linux     Wed Jan 31 20:33:11 2018 +0000
@@ -1,5 +1,3 @@
-@comment $NetBSD: PLIST.Linux,v 1.4 2018/01/01 22:29:24 rillig Exp $
-bin/gcore
+@comment $NetBSD: PLIST.Linux,v 1.5 2018/01/31 20:33:11 maya Exp $
 bin/gdbserver
 lib/libinproctrace.so
-man/man1/gcore.1
diff -r 7529ac22a7ff -r 43c7392c7151 devel/gdb/PLIST.SunOS
--- a/devel/gdb/PLIST.SunOS     Wed Jan 31 20:18:31 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-@comment $NetBSD: PLIST.SunOS,v 1.2 2016/04/06 09:34:20 fhajny Exp $
-bin/gcore
-man/man1/gcore.1
diff -r 7529ac22a7ff -r 43c7392c7151 devel/gdb/PLIST.common
--- a/devel/gdb/PLIST.common    Wed Jan 31 20:18:31 2018 +0000
+++ b/devel/gdb/PLIST.common    Wed Jan 31 20:33:11 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.common,v 1.12 2017/06/05 11:38:51 maya Exp $
+@comment $NetBSD: PLIST.common,v 1.13 2018/01/31 20:33:11 maya Exp $
 bin/gdb
 include/gdb/jit-reader.h
 info/annotate.info
@@ -47,3 +47,4 @@
 share/gdb/syscalls/sparc64-linux.xml
 share/gdb/system-gdbinit/elinos.py
 share/gdb/system-gdbinit/wrs-linux.py
+${PLIST.gcore}bin/gcore
diff -r 7529ac22a7ff -r 43c7392c7151 devel/gdb/distinfo
--- a/devel/gdb/distinfo        Wed Jan 31 20:18:31 2018 +0000
+++ b/devel/gdb/distinfo        Wed Jan 31 20:33:11 2018 +0000
@@ -1,13 +1,9 @@
-$NetBSD: distinfo,v 1.31 2017/09/07 17:11:47 kamil Exp $
+$NetBSD: distinfo,v 1.32 2018/01/31 20:33:11 maya Exp $
 
-SHA1 (gdb-8.0.1.tar.gz) = abb30c4fd7f66c830d879715cce5732bcf84f0f6
-RMD160 (gdb-8.0.1.tar.gz) = 5ad7e7417dea2f4c7cc4795b74a58b948d8d93b2
-SHA512 (gdb-8.0.1.tar.gz) = 58eb6150c908d67e6aed01d04bd321c7914e3e82fbb81a31e3050c4470e24e67cbe023b3f3edfb981225802441cf8b0d3d042195e96b6530058966cfdcd53c8d
-Size (gdb-8.0.1.tar.gz) = 36359351 bytes
+SHA1 (gdb-8.1.tar.gz) = b28d9349ccd45c0aa208cda3a1ecf7e17eca0552
+RMD160 (gdb-8.1.tar.gz) = 71bbfb22a924f5aa88af7ba8ed11f763a8666ad1
+SHA512 (gdb-8.1.tar.gz) = 4a51e491061f97708ec1cebf9973ea451f9b9499ee2b898fa1631dbe78ffecec9c09e8a95f04c888dee4664957583b1982efd468088878b203a125bbcf9ee516
+Size (gdb-8.1.tar.gz) = 37334207 bytes
 SHA1 (patch-Makefile.in) = 48f65798f96fdda2a35eb8b18a7cc2993023bcc7
-SHA1 (patch-ao) = fe55dc7245f438fccb7965ceb220be951f85a535
-SHA1 (patch-gdb_bsd-kvm.c) = 45d0436f7c451de326afaffd3ebc5a4c3689d6f8
-SHA1 (patch-gdb_config_i386_nbsd64.mh) = 5dd8cfc89d3de5d8df3f57d3c798a1fe292d4dfe
-SHA1 (patch-gdb_x86-bsd-nat.c) = 82bfdd27ab88bf21421ad9209bbe5821f36ac854
 SHA1 (patch-opcodes_i386-dis_c) = 57b2b2ce85567faf112ec9f435b9aed0ffc943fb
 SHA1 (patch-sim_ppc_emul_netbsd.c) = 34fcb884c3c82e8eae6cd6f8c87ce42e9354c347
diff -r 7529ac22a7ff -r 43c7392c7151 devel/gdb/patches/patch-ao
--- a/devel/gdb/patches/patch-ao        Wed Jan 31 20:18:31 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-ao,v 1.2 2015/03/15 14:56:46 bsiegert Exp $
-
-Avoid following ERROR:
-ERROR: [check-portability.awk] gdb/config/djgpp/djconfig.sh: if test "`pwd`" == "${srcdir}" ; then
-
---- gdb/config/djgpp/djconfig.sh.orig  2015-02-19 11:58:07.000000000 +0000
-+++ gdb/config/djgpp/djconfig.sh
-@@ -92,7 +92,7 @@ TMPFILE="${TMPDIR-.}/cfg.tmp"
- 
- # We need to skip the build directory if it is a subdirectory of $srcdir,
- # otherwise we will have an infinite recursion on our hands...
--if test "`pwd`" == "${srcdir}" ; then
-+if test "`pwd`" = "${srcdir}" ; then
-   SKIPDIR=""
-   SKIPFILES=""
- else
diff -r 7529ac22a7ff -r 43c7392c7151 devel/gdb/patches/patch-gdb_bsd-kvm.c
--- a/devel/gdb/patches/patch-gdb_bsd-kvm.c     Wed Jan 31 20:18:31 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-$NetBSD: patch-gdb_bsd-kvm.c,v 1.3 2017/06/23 19:49:20 kamil Exp $
-
-need _KMEMUSER to use some headers on netbsd, else vaddr_t
-is undefined.
-
---- gdb/bsd-kvm.c.orig 2017-06-04 15:51:26.000000000 +0000
-+++ gdb/bsd-kvm.c
-@@ -17,6 +17,7 @@
-    You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
- 
-+#define _KMEMUSER 1
- #include "defs.h"
- #include "cli/cli-cmds.h"
- #include "command.h"
-@@ -36,7 +37,9 @@
- #include "readline/readline.h"
- #include <sys/param.h>
- #include <sys/proc.h>
-+#if defined(__FreeBSD__) || defined(__DragonFly__)
- #include <sys/user.h>
-+#endif
- 
- #include "bsd-kvm.h"
- 
diff -r 7529ac22a7ff -r 43c7392c7151 devel/gdb/patches/patch-gdb_config_i386_nbsd64.mh
--- a/devel/gdb/patches/patch-gdb_config_i386_nbsd64.mh Wed Jan 31 20:18:31 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-gdb_config_i386_nbsd64.mh,v 1.1 2017/06/05 11:38:51 maya Exp $
-
-Missing files, otherwise we die on undefined references.
-Also trying to add bsd-kvm stuff again
-
---- gdb/config/i386/nbsd64.mh.orig     2017-06-04 15:54:54.000000000 +0000
-+++ gdb/config/i386/nbsd64.mh
-@@ -1,3 +1,6 @@
- # Host: NetBSD/amd64
- NATDEPFILES= fork-child.o inf-ptrace.o \
--      nbsd-nat.o amd64-nat.o x86-bsd-nat.o amd64-bsd-nat.o amd64-nbsd-nat.o
-+      nbsd-nat.o amd64-nat.o x86-bsd-nat.o amd64-bsd-nat.o amd64-nbsd-nat.o \
-+      x86-nat.o x86-dregs.o bsd-kvm.o
-+
-+LOADLIBES= -lkvm
diff -r 7529ac22a7ff -r 43c7392c7151 devel/gdb/patches/patch-gdb_x86-bsd-nat.c
--- a/devel/gdb/patches/patch-gdb_x86-bsd-nat.c Wed Jan 31 20:18:31 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-$NetBSD: patch-gdb_x86-bsd-nat.c,v 1.1 2017/06/05 11:38:51 maya Exp $
-
-Provide a more recent definition of DBREG_DRX.
-(This was meant to be a fallback definition for freebsd < 5
- needed as a definition for netbsd)
-
---- gdb/x86-bsd-nat.c.orig     2017-06-04 15:51:27.000000000 +0000
-+++ gdb/x86-bsd-nat.c
-@@ -51,10 +51,8 @@ x86bsd_mourn_inferior (struct target_ops
-   super_mourn_inferior (ops);
- }
- 
--/* Not all versions of FreeBSD/i386 that support the debug registers
--   have this macro.  */
- #ifndef DBREG_DRX
--#define DBREG_DRX(d, x) ((&d->dr0)[x])
-+#define       DBREG_DRX(d,x)  ((d)->dr[(x)])
- #endif
- 
- static unsigned long



Home | Main Index | Thread Index | Old Index