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.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/7d4612b1fab0
branches: trunk
changeset: 363243:7d4612b1fab0
user: maya <maya%pkgsrc.org@localhost>
date: Mon Jun 05 11:38:51 2017 +0000
description:
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.
diffstat:
devel/gdb/Makefile | 9 +++-
devel/gdb/PLIST.common | 4 +-
devel/gdb/distinfo | 16 ++++----
devel/gdb/patches/patch-gdb_amd64bsd-nat.c | 15 --------
devel/gdb/patches/patch-gdb_bsd-kvm.c | 40 ++++++----------------
devel/gdb/patches/patch-gdb_config_i386_nbsd64.mh | 15 ++++++++
devel/gdb/patches/patch-gdb_ppcnbsd-nat.c | 38 ---------------------
devel/gdb/patches/patch-gdb_x86-bsd-nat.c | 20 +++++++++++
8 files changed, 63 insertions(+), 94 deletions(-)
diffs (233 lines):
diff -r ca928c309cc5 -r 7d4612b1fab0 devel/gdb/Makefile
--- a/devel/gdb/Makefile Mon Jun 05 10:42:12 2017 +0000
+++ b/devel/gdb/Makefile Mon Jun 05 11:38:51 2017 +0000
@@ -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 @@
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 @@
.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
diff -r ca928c309cc5 -r 7d4612b1fab0 devel/gdb/PLIST.common
--- a/devel/gdb/PLIST.common Mon Jun 05 10:42:12 2017 +0000
+++ b/devel/gdb/PLIST.common Mon Jun 05 11:38:51 2017 +0000
@@ -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/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/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
diff -r ca928c309cc5 -r 7d4612b1fab0 devel/gdb/distinfo
--- a/devel/gdb/distinfo Mon Jun 05 10:42:12 2017 +0000
+++ b/devel/gdb/distinfo Mon Jun 05 11:38:51 2017 +0000
@@ -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
diff -r ca928c309cc5 -r 7d4612b1fab0 devel/gdb/patches/patch-gdb_amd64bsd-nat.c
--- a/devel/gdb/patches/patch-gdb_amd64bsd-nat.c Mon Jun 05 10:42:12 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-gdb_amd64bsd-nat.c,v 1.1 2017/02/18 17:43:37 kamil Exp $
-
---- gdb/amd64bsd-nat.c.orig 2016-02-10 03:19:39.000000000 +0000
-+++ gdb/amd64bsd-nat.c
-@@ -167,6 +167,10 @@ amd64bsd_target (void)
-
- #ifdef HAVE_PT_GETDBREGS
-
-+#ifndef DBREG_DRX
-+#define DBREG_DRX(d,x) ((d)->dr[(x)])
-+#endif
-+
- static unsigned long
- amd64bsd_dr_get (ptid_t ptid, int regnum)
- {
diff -r ca928c309cc5 -r 7d4612b1fab0 devel/gdb/patches/patch-gdb_bsd-kvm.c
--- a/devel/gdb/patches/patch-gdb_bsd-kvm.c Mon Jun 05 10:42:12 2017 +0000
+++ b/devel/gdb/patches/patch-gdb_bsd-kvm.c Mon Jun 05 11:38:51 2017 +0000
@@ -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 $
+
+need _KMEMUSER to use some headers on netbsd, else vaddr_t
+is undefined.
-(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
-
---- 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"
diff -r ca928c309cc5 -r 7d4612b1fab0 devel/gdb/patches/patch-gdb_config_i386_nbsd64.mh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb/patches/patch-gdb_config_i386_nbsd64.mh Mon Jun 05 11:38:51 2017 +0000
@@ -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
diff -r ca928c309cc5 -r 7d4612b1fab0 devel/gdb/patches/patch-gdb_ppcnbsd-nat.c
--- a/devel/gdb/patches/patch-gdb_ppcnbsd-nat.c Mon Jun 05 10:42:12 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-$NetBSD: patch-gdb_ppcnbsd-nat.c,v 1.1 2015/03/15 14:56:46 bsiegert Exp $
-
-Absorb membername difference.
-
---- gdb/ppcnbsd-nat.c.orig 2015-02-19 11:58:07.000000000 +0000
-+++ gdb/ppcnbsd-nat.c
-@@ -160,20 +160,20 @@ ppcnbsd_supply_pcb (struct regcache *reg
- return 0;
-
- read_memory (pcb->pcb_sp, (gdb_byte *)&sf, sizeof sf);
-- regcache_raw_supply (regcache, tdep->ppc_cr_regnum, &sf.cr);
-- regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 2, &sf.fixreg2);
-+ regcache_raw_supply (regcache, tdep->ppc_cr_regnum, &sf.sf_cr);
-+ regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 2, &sf.sf_fixreg2);
- for (i = 0 ; i < 19 ; i++)
- regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 13 + i,
-- &sf.fixreg[i]);
-+ &sf.sf_fixreg[i]);
-
-- read_memory(sf.sp, (gdb_byte *)&cf, sizeof(cf));
-- regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 30, &cf.r30);
-- regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 31, &cf.r31);
-- regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 1, &cf.sp);
--
-- read_memory(cf.sp, (gdb_byte *)&cf, sizeof(cf));
-- regcache_raw_supply (regcache, tdep->ppc_lr_regnum, &cf.lr);
-- regcache_raw_supply (regcache, gdbarch_pc_regnum (gdbarch), &cf.lr);
-+ read_memory(sf.sf_sp, (gdb_byte *)&cf, sizeof(cf));
-+ regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 30, &cf.cf_r30);
-+ regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 31, &cf.cf_r31);
-+ regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 1, &cf.cf_sp);
-+
-+ read_memory(cf.cf_sp, (gdb_byte *)&cf, sizeof(cf));
-+ regcache_raw_supply (regcache, tdep->ppc_lr_regnum, &cf.cf_lr);
-+ regcache_raw_supply (regcache, gdbarch_pc_regnum (gdbarch), &cf.cf_lr);
-
- return 1;
- }
diff -r ca928c309cc5 -r 7d4612b1fab0 devel/gdb/patches/patch-gdb_x86-bsd-nat.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb/patches/patch-gdb_x86-bsd-nat.c Mon Jun 05 11:38:51 2017 +0000
@@ -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