pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/gdb7 Add gdb7. it's currently identical to devel...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/04e18e5e5a90
branches:  trunk
changeset: 363241:04e18e5e5a90
user:      maya <maya%pkgsrc.org@localhost>
date:      Mon Jun 05 10:41:28 2017 +0000

description:
Add gdb7. it's currently identical to devel/gdb, but not for long.

diffstat:

 devel/gdb7/DESCR                               |  17 +++++
 devel/gdb7/Makefile                            |  81 ++++++++++++++++++++++++++
 devel/gdb7/PLIST.DragonFly                     |   3 +
 devel/gdb7/PLIST.Linux                         |   5 +
 devel/gdb7/PLIST.SunOS                         |   3 +
 devel/gdb7/PLIST.common                        |  47 +++++++++++++++
 devel/gdb7/distinfo                            |  13 ++++
 devel/gdb7/options.mk                          |  13 ++++
 devel/gdb7/patches/patch-Makefile.in           |  32 ++++++++++
 devel/gdb7/patches/patch-ao                    |  16 +++++
 devel/gdb7/patches/patch-gdb_amd64bsd-nat.c    |  15 ++++
 devel/gdb7/patches/patch-gdb_bsd-kvm.c         |  33 ++++++++++
 devel/gdb7/patches/patch-gdb_ppcnbsd-nat.c     |  38 ++++++++++++
 devel/gdb7/patches/patch-opcodes_i386-dis_c    |  13 ++++
 devel/gdb7/patches/patch-sim_ppc_emul_netbsd.c |  39 ++++++++++++
 15 files changed, 368 insertions(+), 0 deletions(-)

diffs (truncated from 428 to 300 lines):

diff -r 5a22a34aa6b6 -r 04e18e5e5a90 devel/gdb7/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb7/DESCR  Mon Jun 05 10:41:28 2017 +0000
@@ -0,0 +1,17 @@
+   The purpose of a debugger such as GDB is to allow you to see what
+is going on "inside" another program while it executes--or what
+another program was doing at the moment it crashed.
+
+   GDB can do four main kinds of things (plus other things in support
+of these) to help you catch bugs in the act:
+
+   * Start your program, specifying anything that might affect its
+     behavior.
+
+   * Make your program stop on specified conditions.
+
+   * Examine what has happened, when your program has stopped.
+
+   * Change things in your program, so you can experiment with
+     correcting the effects of one bug and go on to learn about
+     another.
diff -r 5a22a34aa6b6 -r 04e18e5e5a90 devel/gdb7/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb7/Makefile       Mon Jun 05 10:41:28 2017 +0000
@@ -0,0 +1,81 @@
+# $NetBSD: Makefile,v 1.1 2017/06/05 10:41:28 maya Exp $
+
+DISTNAME=      gdb-7.11
+PKGREVISION=   3
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GNU:=gdb/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.gnu.org/software/gdb/gdb.html
+COMMENT=       Symbolic debugger for multiple language frontends
+LICENSE=       gnu-gpl-v3
+
+BROKEN_GETTEXT_DETECTION=      yes
+GNU_CONFIGURE=         YES
+USE_PKGLOCALEDIR=      YES
+USE_LIBTOOL=           YES
+USE_TOOLS+=            gmake msgfmt makeinfo perl:build
+REPLACE_LOCALEDIR_PATTERNS+=   Make-in
+INSTALL_TARGET=                install install-info
+TEST_TARGET=           check
+INFO_FILES=            yes
+CONFIGURE_ENV+=                CONFIG_LDFLAGS=${LDFLAGS:M*:Q}
+
+# In gdb/configure, depcomp is parsed with sed.
+SUBST_CLASSES+=                        fix-depcomp
+SUBST_STAGE.fix-depcomp+=      pre-configure
+SUBST_MESSAGE.fix-depcomp+=    Read depcomp directly
+SUBST_FILES.fix-depcomp+=      gdb/configure
+SUBST_SED.fix-depcomp+=                -e 's,< ./depcomp,${_OVERRIDE_PATH.depcomp},'
+
+AUTO_MKDIRS=           yes
+
+.include "options.mk"
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+# Work around a bug in gdb's configure
+CONFIGURE_ENV+=                ac_cv_header_curses_h=yes
+.elif ${OPSYS} == "NetBSD"
+.include "../../mk/curses.buildlink3.mk"
+CONFIGURE_ARGS+= -with-curses
+CONFIGURE_ENV+= gdb_cv_var_elf=yes
+MAKE_ENV+= gdb_cv_var_elf=yes
+CONFIGURE_ENV+= gdb_cv_struct_lwp=yes
+MAKE_ENV+= gdb_cv_struct_lwp=yes
+
+.elif ${OPSYS} == "DragonFly"
+TARGET_STR=            ${MACHINE_ARCH}--dragonfly
+BUILD_DEFS+=           ${TARGET_STR}
+## Remove "-pc" string, without this, getting following message:
+##        *** Gdb does not support native target i386-pc-dragonfly"
+CONFIGURE_ARGS+=               --target=${TARGET_STR}
+TEST_ENV=              DEJAGNU=${WRKDIR}/../files/dragonfly-default.exp
+.endif
+
+post-install:
+.if ${OPSYS} == "DragonFly"
+# Following are installed by binutils
+#. for f in ansidecl.h bfdlink.h dis-asm.h symcat.h
+#      (cd ${WRKSRC}/include; ${INSTALL_DATA} ${f}  ${DESTDIR}${PREFIX}/include)
+#. endfor
+       (cd ${DESTDIR}${PREFIX}/bin;               ${LN} ${TARGET_STR}-gdb gdb)
+       (cd ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; ${LN} ${TARGET_STR}-gdb.1 gdb.1)
+.endif
+#
+# PATH of libiberty.a differs between clang and gcc: (and conflicts to other toolchain)
+# Rename to avoid conflict to native and other toolchain
+# and clang differs its path so, (the same as avr-binutils).
+
+       (cd ${DESTDIR}${PREFIX};                                \
+       for d in ${MACHINE_ARCH}/libiberty.a libiberty.a;       \
+         do if [ -f lib/$$d ]; then                            \
+               ${MV}   lib/$$d  lib/gdb/libiberty.a;           \
+               break;                                          \
+            fi;                                                \
+         done; )
+
+.include "../../mk/termcap.buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 5a22a34aa6b6 -r 04e18e5e5a90 devel/gdb7/PLIST.DragonFly
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb7/PLIST.DragonFly        Mon Jun 05 10:41:28 2017 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST.DragonFly,v 1.1 2017/06/05 10:41:28 maya Exp $
+bin/i386--dragonfly-gdb
+man/man1/i386--dragonfly-gdb.1
diff -r 5a22a34aa6b6 -r 04e18e5e5a90 devel/gdb7/PLIST.Linux
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb7/PLIST.Linux    Mon Jun 05 10:41:28 2017 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST.Linux,v 1.1 2017/06/05 10:41:28 maya Exp $
+bin/gdbserver
+bin/gcore
+lib/libinproctrace.so
+man/man1/gcore.1
diff -r 5a22a34aa6b6 -r 04e18e5e5a90 devel/gdb7/PLIST.SunOS
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb7/PLIST.SunOS    Mon Jun 05 10:41:28 2017 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST.SunOS,v 1.1 2017/06/05 10:41:28 maya Exp $
+bin/gcore
+man/man1/gcore.1
diff -r 5a22a34aa6b6 -r 04e18e5e5a90 devel/gdb7/PLIST.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb7/PLIST.common   Mon Jun 05 10:41:28 2017 +0000
@@ -0,0 +1,47 @@
+@comment $NetBSD: PLIST.common,v 1.1 2017/06/05 10:41:28 maya Exp $
+bin/gdb
+include/gdb/jit-reader.h
+info/annotate.info
+info/gdb.info
+info/stabs.info
+man/man1/gdb.1
+man/man1/gdbserver.1
+man/man5/gdbinit.5
+share/gdb/python/gdb/FrameDecorator.py
+share/gdb/python/gdb/FrameIterator.py
+share/gdb/python/gdb/__init__.py
+share/gdb/python/gdb/command/__init__.py
+share/gdb/python/gdb/command/explore.py
+share/gdb/python/gdb/command/frame_filters.py
+share/gdb/python/gdb/command/pretty_printers.py
+share/gdb/python/gdb/command/prompt.py
+share/gdb/python/gdb/command/type_printers.py
+share/gdb/python/gdb/command/unwinders.py
+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/caller_is.py
+share/gdb/python/gdb/function/strfns.py
+share/gdb/python/gdb/printer/__init__.py
+share/gdb/python/gdb/printer/bound_registers.py
+share/gdb/python/gdb/printing.py
+share/gdb/python/gdb/prompt.py
+share/gdb/python/gdb/types.py
+share/gdb/python/gdb/unwinder.py
+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/gdb-syscalls.dtd
+share/gdb/syscalls/i386-linux.xml
+share/gdb/syscalls/mips-n32-linux.xml
+share/gdb/syscalls/mips-n64-linux.xml
+share/gdb/syscalls/mips-o32-linux.xml
+share/gdb/syscalls/ppc-linux.xml
+share/gdb/syscalls/ppc64-linux.xml
+share/gdb/syscalls/s390-linux.xml
+share/gdb/syscalls/s390x-linux.xml
+share/gdb/syscalls/sparc-linux.xml
+share/gdb/syscalls/sparc64-linux.xml
+share/gdb/system-gdbinit/elinos.py
+share/gdb/system-gdbinit/wrs-linux.py
diff -r 5a22a34aa6b6 -r 04e18e5e5a90 devel/gdb7/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb7/distinfo       Mon Jun 05 10:41:28 2017 +0000
@@ -0,0 +1,13 @@
+$NetBSD: distinfo,v 1.1 2017/06/05 10:41:28 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 (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-opcodes_i386-dis_c) = 57b2b2ce85567faf112ec9f435b9aed0ffc943fb
+SHA1 (patch-sim_ppc_emul_netbsd.c) = 34fcb884c3c82e8eae6cd6f8c87ce42e9354c347
diff -r 5a22a34aa6b6 -r 04e18e5e5a90 devel/gdb7/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb7/options.mk     Mon Jun 05 10:41:28 2017 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2017/06/05 10:41:28 maya Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.gdb
+PKG_SUPPORTED_OPTIONS= python
+PKG_SUGGESTED_OPTIONS= python
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpython)
+CONFIGURE_ARGS+=       --with-python=${PYTHONBIN}
+PYTHON_VERSIONS_INCOMPATIBLE=  34 35 36
+.include "../../lang/python/application.mk"
+.endif
diff -r 5a22a34aa6b6 -r 04e18e5e5a90 devel/gdb7/patches/patch-Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb7/patches/patch-Makefile.in      Mon Jun 05 10:41:28 2017 +0000
@@ -0,0 +1,32 @@
+$NetBSD: patch-Makefile.in,v 1.1 2017/06/05 10:41:28 maya Exp $
+
+Do not install bfd and opcodes. Conflicts with devel/binutils.
+
+--- Makefile.in.orig   2016-02-24 09:57:08.000000000 +0000
++++ Makefile.in
+@@ -1596,7 +1596,6 @@ do-install-info:
+ 
+ .PHONY: install-info-host
+ 
+-install-info-host: maybe-install-info-bfd
+ install-info-host: maybe-install-info-opcodes
+ install-info-host: maybe-install-info-binutils
+ install-info-host: maybe-install-info-bison
+@@ -2482,8 +2481,6 @@ install:
+ 
+ .PHONY: install-host-nogcc
+ install-host-nogcc:  \
+-    maybe-install-bfd \
+-    maybe-install-opcodes \
+     maybe-install-binutils \
+     maybe-install-bison \
+     maybe-install-cgen \
+@@ -2530,8 +2527,6 @@ install-host-nogcc:  \
+ 
+ .PHONY: install-host
+ install-host:  \
+-    maybe-install-bfd \
+-    maybe-install-opcodes \
+     maybe-install-binutils \
+     maybe-install-bison \
+     maybe-install-cgen \
diff -r 5a22a34aa6b6 -r 04e18e5e5a90 devel/gdb7/patches/patch-ao
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb7/patches/patch-ao       Mon Jun 05 10:41:28 2017 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ao,v 1.1 2017/06/05 10:41:28 maya 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 5a22a34aa6b6 -r 04e18e5e5a90 devel/gdb7/patches/patch-gdb_amd64bsd-nat.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb7/patches/patch-gdb_amd64bsd-nat.c       Mon Jun 05 10:41:28 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-gdb_amd64bsd-nat.c,v 1.1 2017/06/05 10:41:28 maya 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 5a22a34aa6b6 -r 04e18e5e5a90 devel/gdb7/patches/patch-gdb_bsd-kvm.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb7/patches/patch-gdb_bsd-kvm.c    Mon Jun 05 10:41:28 2017 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-gdb_bsd-kvm.c,v 1.1 2017/06/05 10:41:28 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



Home | Main Index | Thread Index | Old Index