pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/gdb
Module Name: pkgsrc
Committed By: maya
Date: Mon Jun 5 11:38:51 UTC 2017
Modified Files:
pkgsrc/devel/gdb: Makefile PLIST.common distinfo
pkgsrc/devel/gdb/patches: patch-gdb_bsd-kvm.c
Added Files:
pkgsrc/devel/gdb/patches: patch-gdb_config_i386_nbsd64.mh
patch-gdb_x86-bsd-nat.c
Removed Files:
pkgsrc/devel/gdb/patches: patch-gdb_amd64bsd-nat.c
patch-gdb_ppcnbsd-nat.c
Log Message:
gdb: update to 8.0
GDB 8.0 brings the following fixes and improvements, including:
* C++: Support for rvalue references
* Python scripting enhancements:
** New functions to start, stop and access a running btrace recording.
** Rvalue reference support in gdb.Type.
* GDB commands interpreter:
** User commands now accept an unlimited number of arguments.
** The "eval" command now expands user-defined arguments.
* DWARF version 5 support
(note that its .debug_names index is not supported yet).
* GDB/MI enhancements:
** New -file-list-shared-libraries command to list the shared
libraries in the program.
** New -target-flash-erase command, to erase flash memory.
* Support for native FreeBSD/mips (mips*-*-freebsd)
* Support for the following targets:
** Synopsys ARC (arc*-*-elf32)
** FreeBSD/mips (mips*-*-freebsd)
* Miscellaneous enhancements:
** Command-line redirection now supported on MS-Windows hosts.
** Support for thread names on MS-Windows.
** Support for the PKU register on GNU/Linux.
** Support for Target descriptions on sparc32 and sparc64.
** New GDB/CLI command to erase flash memory
** rdrand and rdseed instructions record/replay support.
Support for the following features have been removed:
* Support for Java programs compiled with gcj
* Support for the following configurations:
** FreeBSD/alpha (alpha*-*-freebsd*)
** GNU/kFreeBSD/alpha (alpha*-*-kfreebsd*-gnu)
For a complete list and more details on each item, please see the
gdb/NEWS file.
To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 pkgsrc/devel/gdb/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/devel/gdb/PLIST.common
cvs rdiff -u -r1.28 -r1.29 pkgsrc/devel/gdb/distinfo
cvs rdiff -u -r1.1 -r0 pkgsrc/devel/gdb/patches/patch-gdb_amd64bsd-nat.c \
pkgsrc/devel/gdb/patches/patch-gdb_ppcnbsd-nat.c
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/gdb/patches/patch-gdb_bsd-kvm.c
cvs rdiff -u -r0 -r1.1 \
pkgsrc/devel/gdb/patches/patch-gdb_config_i386_nbsd64.mh \
pkgsrc/devel/gdb/patches/patch-gdb_x86-bsd-nat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/gdb/Makefile
diff -u pkgsrc/devel/gdb/Makefile:1.56 pkgsrc/devel/gdb/Makefile:1.57
--- pkgsrc/devel/gdb/Makefile:1.56 Tue Feb 28 14:58:43 2017
+++ pkgsrc/devel/gdb/Makefile Mon Jun 5 11:38:51 2017
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.56 2017/02/28 14:58:43 joerg Exp $
+# $NetBSD: Makefile,v 1.57 2017/06/05 11:38:51 maya Exp $
-DISTNAME= gdb-7.11
-PKGREVISION= 3
+DISTNAME= gdb-8.0
+#PKGREVISION=
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=gdb/}
@@ -10,6 +10,8 @@ HOMEPAGE= http://www.gnu.org/software/gd
COMMENT= Symbolic debugger for multiple language frontends
LICENSE= gnu-gpl-v3
+USE_LANGUAGES= c c++11
+
BROKEN_GETTEXT_DETECTION= yes
GNU_CONFIGURE= YES
USE_PKGLOCALEDIR= YES
@@ -55,6 +57,7 @@ TEST_ENV= DEJAGNU=${WRKDIR}/../files/dr
.endif
post-install:
+ ${RM} -f ${DESTDIR}/${PREFIX}/lib/charset.alias
.if ${OPSYS} == "DragonFly"
# Following are installed by binutils
#. for f in ansidecl.h bfdlink.h dis-asm.h symcat.h
Index: pkgsrc/devel/gdb/PLIST.common
diff -u pkgsrc/devel/gdb/PLIST.common:1.11 pkgsrc/devel/gdb/PLIST.common:1.12
--- pkgsrc/devel/gdb/PLIST.common:1.11 Thu Apr 14 08:40:44 2016
+++ pkgsrc/devel/gdb/PLIST.common Mon Jun 5 11:38:51 2017
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.common,v 1.11 2016/04/14 08:40:44 fhajny Exp $
+@comment $NetBSD: PLIST.common,v 1.12 2017/06/05 11:38:51 maya Exp $
bin/gdb
include/gdb/jit-reader.h
info/annotate.info
@@ -20,6 +20,7 @@ share/gdb/python/gdb/command/unwinders.p
share/gdb/python/gdb/command/xmethods.py
share/gdb/python/gdb/frames.py
share/gdb/python/gdb/function/__init__.py
+share/gdb/python/gdb/function/as_string.py
share/gdb/python/gdb/function/caller_is.py
share/gdb/python/gdb/function/strfns.py
share/gdb/python/gdb/printer/__init__.py
@@ -32,6 +33,7 @@ share/gdb/python/gdb/xmethod.py
share/gdb/syscalls/aarch64-linux.xml
share/gdb/syscalls/amd64-linux.xml
share/gdb/syscalls/arm-linux.xml
+share/gdb/syscalls/freebsd.xml
share/gdb/syscalls/gdb-syscalls.dtd
share/gdb/syscalls/i386-linux.xml
share/gdb/syscalls/mips-n32-linux.xml
Index: pkgsrc/devel/gdb/distinfo
diff -u pkgsrc/devel/gdb/distinfo:1.28 pkgsrc/devel/gdb/distinfo:1.29
--- pkgsrc/devel/gdb/distinfo:1.28 Sat Feb 18 17:43:37 2017
+++ pkgsrc/devel/gdb/distinfo Mon Jun 5 11:38:51 2017
@@ -1,13 +1,13 @@
-$NetBSD: distinfo,v 1.28 2017/02/18 17:43:37 kamil Exp $
+$NetBSD: distinfo,v 1.29 2017/06/05 11:38:51 maya Exp $
-SHA1 (gdb-7.11.tar.gz) = 99f5795cf670e00a623266cb4ce59cc76ec6e5a2
-RMD160 (gdb-7.11.tar.gz) = 9181c3a79dc676d36e58162567051cf9f68d354d
-SHA512 (gdb-7.11.tar.gz) = 6854774bba73ecf02c4d8bb4e194b8fd8fd3c6c661cbead0b3b816b9d9f736df1b85f331a669808700b0ad0f945b58483fffb77d49f5b690e828a00f65c04893
-Size (gdb-7.11.tar.gz) = 35215975 bytes
+SHA1 (gdb-8.0.tar.gz) = 4e2ed3dc2ed6236f31cd1991ff6067f323ac63b0
+RMD160 (gdb-8.0.tar.gz) = d770fa0bed5f94e98ff25dc16d65c1aa7013de1a
+SHA512 (gdb-8.0.tar.gz) = b25a40988c772a9b10ea6cf0a973193300357330f0896d3567ebe17a88d89b2b89b8eb2801adc934ea48f0ab3228214d8318a12ee2c9e4c347b4f7038281f66a
+Size (gdb-8.0.tar.gz) = 36351752 bytes
SHA1 (patch-Makefile.in) = 48f65798f96fdda2a35eb8b18a7cc2993023bcc7
SHA1 (patch-ao) = fe55dc7245f438fccb7965ceb220be951f85a535
-SHA1 (patch-gdb_amd64bsd-nat.c) = ce3a52c090bb83b91e87d0fff301ddb2eb2d3dfb
-SHA1 (patch-gdb_bsd-kvm.c) = 837614b107181f79fd5c018ebd76a9010e5ab602
-SHA1 (patch-gdb_ppcnbsd-nat.c) = 94c9f552fd00e3641e7a0fa8372de538b4571d0b
+SHA1 (patch-gdb_bsd-kvm.c) = c71d07ecaa34ae3f232f7a3d5d1684de4b5e90d9
+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
Index: pkgsrc/devel/gdb/patches/patch-gdb_bsd-kvm.c
diff -u pkgsrc/devel/gdb/patches/patch-gdb_bsd-kvm.c:1.1 pkgsrc/devel/gdb/patches/patch-gdb_bsd-kvm.c:1.2
--- pkgsrc/devel/gdb/patches/patch-gdb_bsd-kvm.c:1.1 Sun Mar 15 14:56:46 2015
+++ pkgsrc/devel/gdb/patches/patch-gdb_bsd-kvm.c Mon Jun 5 11:38:51 2017
@@ -1,33 +1,15 @@
-$NetBSD: patch-gdb_bsd-kvm.c,v 1.1 2015/03/15 14:56:46 bsiegert Exp $
+$NetBSD: patch-gdb_bsd-kvm.c,v 1.2 2017/06/05 11:38:51 maya Exp $
-(1) (unknown yet)
-(2) +#include <sys/signal.h> part:
-NetBSD/i386 5.2 has following problem without sys/signal.h
-from bsd-kvm.c:36:
-/usr/include/sys/signalvar.h:56: error: field 'sd_sigact' has incomplete type
-/usr/include/sys/signalvar.h:59: error: 'NSIG' undeclared here (not in a function)
-gmake[2]: *** [bsd-kvm.o] Error 1
+need _KMEMUSER to use some headers on netbsd, else vaddr_t
+is undefined.
---- gdb/bsd-kvm.c.orig 2015-02-19 11:58:07.000000000 +0000
+--- gdb/bsd-kvm.c.orig 2017-06-04 15:51:26.000000000 +0000
+++ gdb/bsd-kvm.c
-@@ -28,7 +28,12 @@
- #include "gdbthread.h"
+@@ -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/>. */
- #include <fcntl.h>
-+#include <stddef.h>
- #include <kvm.h>
+#define _KMEMUSER 1
-+#include <sys/signal.h>
-+#include <lwp.h>
-+#include <sys/lwp.h>
- #ifdef HAVE_NLIST_H
- #include <nlist.h>
- #endif
-@@ -36,6 +41,7 @@
- #include "readline/readline.h"
- #include <sys/param.h>
- #include <sys/proc.h>
-+#include <sys/types.h>
- #include <sys/user.h>
-
- #include "bsd-kvm.h"
+ #include "defs.h"
+ #include "cli/cli-cmds.h"
+ #include "command.h"
Added files:
Index: pkgsrc/devel/gdb/patches/patch-gdb_config_i386_nbsd64.mh
diff -u /dev/null pkgsrc/devel/gdb/patches/patch-gdb_config_i386_nbsd64.mh:1.1
--- /dev/null Mon Jun 5 11:38:51 2017
+++ pkgsrc/devel/gdb/patches/patch-gdb_config_i386_nbsd64.mh Mon Jun 5 11:38:51 2017
@@ -0,0 +1,15 @@
+$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
Index: pkgsrc/devel/gdb/patches/patch-gdb_x86-bsd-nat.c
diff -u /dev/null pkgsrc/devel/gdb/patches/patch-gdb_x86-bsd-nat.c:1.1
--- /dev/null Mon Jun 5 11:38:51 2017
+++ pkgsrc/devel/gdb/patches/patch-gdb_x86-bsd-nat.c Mon Jun 5 11:38:51 2017
@@ -0,0 +1,20 @@
+$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