pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gdb: Rename to gdb-git
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Tue Oct 25 00:34:09 2016 +0200
Changeset: d70c09c8afe0b41f1554b7508ca2bf0eba26738a
Added Files:
gdb-git/DESCR
gdb-git/Makefile
gdb-git/PLIST.DragonFly
gdb-git/PLIST.Linux
gdb-git/PLIST.NetBSD
gdb-git/PLIST.common
gdb-git/TODO
gdb-git/distinfo
gdb-git/options.mk
gdb-git/patches/patch-ao
gdb-git/patches/patch-gdb_bsd-kvm.c
gdb-git/patches/patch-gdb_ppcnbsd-nat.c
gdb-git/patches/patch-opcodes_i386-dis_c
gdb-git/patches/patch-sim_ppc_emul_netbsd.c
Removed Files:
gdb/DESCR
gdb/Makefile
gdb/PLIST.DragonFly
gdb/PLIST.Linux
gdb/PLIST.NetBSD
gdb/PLIST.common
gdb/TODO
gdb/distinfo
gdb/options.mk
gdb/patches/patch-ao
gdb/patches/patch-gdb_bsd-kvm.c
gdb/patches/patch-gdb_ppcnbsd-nat.c
gdb/patches/patch-opcodes_i386-dis_c
gdb/patches/patch-sim_ppc_emul_netbsd.c
Log Message:
gdb: Rename to gdb-git
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d70c09c8afe0b41f1554b7508ca2bf0eba26738a
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
gdb-git/DESCR | 17 +++
gdb-git/Makefile | 82 +++++++++++
gdb-git/PLIST.DragonFly | 3 +
gdb-git/PLIST.Linux | 3 +
gdb-git/PLIST.NetBSD | 8 ++
gdb-git/PLIST.common | 60 ++++++++
gdb-git/TODO | 205 ++++++++++++++++++++++++++++
gdb-git/distinfo | 10 ++
gdb-git/options.mk | 13 ++
gdb-git/patches/patch-ao | 16 +++
gdb-git/patches/patch-gdb_bsd-kvm.c | 33 +++++
gdb-git/patches/patch-gdb_ppcnbsd-nat.c | 38 ++++++
gdb-git/patches/patch-opcodes_i386-dis_c | 13 ++
gdb-git/patches/patch-sim_ppc_emul_netbsd.c | 39 ++++++
gdb/DESCR | 17 ---
gdb/Makefile | 82 -----------
gdb/PLIST.DragonFly | 3 -
gdb/PLIST.Linux | 3 -
gdb/PLIST.NetBSD | 8 --
gdb/PLIST.common | 60 --------
gdb/TODO | 205 ----------------------------
gdb/distinfo | 10 --
gdb/options.mk | 13 --
gdb/patches/patch-ao | 16 ---
gdb/patches/patch-gdb_bsd-kvm.c | 33 -----
gdb/patches/patch-gdb_ppcnbsd-nat.c | 38 ------
gdb/patches/patch-opcodes_i386-dis_c | 13 --
gdb/patches/patch-sim_ppc_emul_netbsd.c | 39 ------
28 files changed, 540 insertions(+), 540 deletions(-)
diffs:
diff --git a/gdb-git/DESCR b/gdb-git/DESCR
new file mode 100644
index 0000000..c7c2207
--- /dev/null
+++ b/gdb-git/DESCR
@@ -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 --git a/gdb-git/Makefile b/gdb-git/Makefile
new file mode 100644
index 0000000..8f3ba7a
--- /dev/null
+++ b/gdb-git/Makefile
@@ -0,0 +1,82 @@
+# $NetBSD: Makefile,v 1.11 2015/03/15 14:22:19 bsiegert Exp $
+#
+
+DISTNAME= gdb-7.9
+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
+
+#NOT_FOR_PLATFORM= Darwin-*-* DragonFly-*-*
+
+BROKEN_GETTEXT_DETECTION= yes
+GNU_CONFIGURE= YES
+USE_PKGLOCALEDIR= YES
+USE_LIBTOOL= YES
+USE_TOOLS+= gmake msgfmt makeinfo
+REPLACE_LOCALEDIR_PATTERNS+= Make-in
+INSTALL_TARGET= install install-info
+TEST_TARGET= check
+INFO_FILES= yes
+CONFIGURE_ENV+= CONFIG_LDFLAGS=${LDFLAGS:M*:Q}
+
+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} == "Linux"
+USE_TOOLS+= aclocal autoheader autoconf
+pre-configure:
+ ${RUN} cd ${WRKSRC}/gdb/gdbserver && \
+ aclocal && autoheader && autoconf
+
+.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 --git a/gdb-git/PLIST.DragonFly b/gdb-git/PLIST.DragonFly
new file mode 100644
index 0000000..0dc050e
--- /dev/null
+++ b/gdb-git/PLIST.DragonFly
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST.DragonFly,v 1.1 2013/02/04 11:05:06 makoto Exp $
+bin/i386--dragonfly-gdb
+man/man1/i386--dragonfly-gdb.1
diff --git a/gdb-git/PLIST.Linux b/gdb-git/PLIST.Linux
new file mode 100644
index 0000000..8074094
--- /dev/null
+++ b/gdb-git/PLIST.Linux
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST.Linux,v 1.1 2013/02/02 05:06:43 makoto Exp $
+bin/gdbserver
+man/man1/gdbserver.1
diff --git a/gdb-git/PLIST.NetBSD b/gdb-git/PLIST.NetBSD
new file mode 100644
index 0000000..bfd094a
--- /dev/null
+++ b/gdb-git/PLIST.NetBSD
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.NetBSD,v 1.1 2013/02/04 11:28:19 makoto Exp $
+include/ansidecl.h
+include/bfd.h
+include/bfdlink.h
+include/dis-asm.h
+include/symcat.h
+lib/libbfd.la
+lib/libopcodes.la
diff --git a/gdb-git/PLIST.common b/gdb-git/PLIST.common
new file mode 100644
index 0000000..92b2765
--- /dev/null
+++ b/gdb-git/PLIST.common
@@ -0,0 +1,60 @@
+@comment $NetBSD: PLIST.common,v 1.6 2015/03/15 14:22:19 bsiegert Exp $
+bin/gdb
+include/gdb/jit-reader.h
+info/annotate.info
+info/bfd.info
+info/gdb.info
+info/stabs.info
+lib/charset.alias
+man/man1/gdb.1
+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/pretty_printers.py
+share/gdb/python/gdb/command/prompt.py
+share/gdb/python/gdb/command/type_printers.py
+share/gdb/python/gdb/function/__init__.py
+share/gdb/python/gdb/function/strfns.py
+share/gdb/python/gdb/printing.py
+share/gdb/python/gdb/prompt.py
+share/gdb/python/gdb/types.py
+share/gdb/syscalls/amd64-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/sparc-linux.xml
+share/gdb/syscalls/sparc64-linux.xml
+share/locale/da/LC_MESSAGES/bfd.mo
+share/locale/da/LC_MESSAGES/opcodes.mo
+share/locale/de/LC_MESSAGES/opcodes.mo
+share/locale/es/LC_MESSAGES/bfd.mo
+share/locale/es/LC_MESSAGES/opcodes.mo
+share/locale/fi/LC_MESSAGES/bfd.mo
+share/locale/fi/LC_MESSAGES/opcodes.mo
+share/locale/fr/LC_MESSAGES/bfd.mo
+share/locale/fr/LC_MESSAGES/opcodes.mo
+share/locale/ga/LC_MESSAGES/opcodes.mo
+share/locale/id/LC_MESSAGES/bfd.mo
+share/locale/id/LC_MESSAGES/opcodes.mo
+share/locale/it/LC_MESSAGES/opcodes.mo
+share/locale/ja/LC_MESSAGES/bfd.mo
+share/locale/nl/LC_MESSAGES/opcodes.mo
+share/locale/pt_BR/LC_MESSAGES/opcodes.mo
+share/locale/ro/LC_MESSAGES/bfd.mo
+share/locale/ro/LC_MESSAGES/opcodes.mo
+share/locale/ru/LC_MESSAGES/bfd.mo
+share/locale/rw/LC_MESSAGES/bfd.mo
+share/locale/sv/LC_MESSAGES/bfd.mo
+share/locale/sv/LC_MESSAGES/opcodes.mo
+share/locale/tr/LC_MESSAGES/bfd.mo
+share/locale/tr/LC_MESSAGES/opcodes.mo
+share/locale/uk/LC_MESSAGES/bfd.mo
+share/locale/uk/LC_MESSAGES/opcodes.mo
+share/locale/vi/LC_MESSAGES/bfd.mo
+share/locale/vi/LC_MESSAGES/opcodes.mo
+share/locale/zh_CN/LC_MESSAGES/bfd.mo
+share/locale/zh_CN/LC_MESSAGES/opcodes.mo
diff --git a/gdb-git/TODO b/gdb-git/TODO
new file mode 100644
index 0000000..152e3d4
--- /dev/null
+++ b/gdb-git/TODO
@@ -0,0 +1,205 @@
+TODO
+- Dragonfly/i386 3.2.2: list command works, but cannot run programs
+- NetBSD/i386 5.2 invocation reported as OK, but does it work ?
+- Test on Dragonfly amd64, SunOS and Linux.
+- Run make test on all platforms.
+- devel/gdb/patches/patch-* are not reviewed yet for inclusion
+- Run pkglint and do cleanup.
+- Is the addition of libpthread_dbg necessary for full functionality
+ as done by the gdb 7.3 in NetBSD src ?
+- patch-opcodes_configure
+ (This reverts to 7.5.1, why this is necessary is unknown now)
+
+DONE
+- NetBSD/amd64 6.1_RC1 and 6.99.19 OK Tested with gcc/gfortran 4.8.0
+ and make test passes more than 95 % of testcases.
+- NetBSD/i386: 6.0 OK Tested with gcc 4.7 and make test passes 90 %
+ of the testcases.
+- DragonFly 3.4.2/i386 make test results (for now)
+ -----
+ tail -12 work/gdb-7.5.1/gdb/testsuite/gdb.sum
+ === gdb Summary ===
+
+ # of expected passes 4962
+ # of unexpected failures 3053
+ # of expected failures 35
+ # of known failures 20
+ # of untested testcases 174
+ # of unresolved testcases 203
+ # of unsupported tests 149
+
+- DragonFly 3.4.2/i386 make test results (with 7.6)
+ -----
+ tail -12 work/gdb-7.6/gdb/testsuite/gdb.sum
+ === gdb Summary ===
+
+ # of expected passes 4769
+ # of unexpected failures 2826
+ # of expected failures 23
+ # of known failures 13
+ # of untested testcases 189
+ # of unresolved testcases 165
+ # of unsupported tests 161
+
+- NetBSD/macppc 6.1_RC2 make test results (with 7.5.1)
+ -----
+ tail -12 work/gdb-7.5.1/gdb/testsuite/gdb.sum
+ === gdb Summary ===
+ # of expected passes 12234
+ # of unexpected failures 297
+ # of unexpected successes 2
+ # of expected failures 38
+ # of known failures 37
+ # of untested testcases 173
+ # of unresolved testcases 6
+ # of unsupported tests 154
+
+- NetBSD/amd64 6.1_RC2 make test results (with 7.5.1)
+ -----
+ === gdb Summary ===
+ # of expected passes 12515
+ # of unexpected failures 395
+ # of unexpected successes 2
+ # of expected failures 40
+ # of known failures 52
+ # of untested testcases 172
+ # of unresolved testcases 6
+ # of unsupported tests 156
+
+- NetBSD/amd64 6.1 make test results (with 7.5.1)
+ -----
+ (but without patch-gdb_bsd-kvm.c)
+ === gdb Summary ===
+
+ # of expected passes 12515
+ # of unexpected failures 412
+ # of unexpected successes 2
+ # of expected failures 40
+ # of known failures 52
+ # of untested testcases 173
+ # of unresolved testcases 7
+ # of unsupported tests 153
+
+- NetBSD/amd64 6.1 make test results (with 7.5.1)
+ -----
+ (with patch-gdb_bsd-kvm.c)
+ === gdb Summary ===
+ # of expected passes 12520
+ # of unexpected failures 414
+ # of unexpected successes 2
+ # of expected failures 40
+ # of known failures 52
+ # of untested testcases 173
+ # of unresolved testcases 7
+ # of unsupported tests 153
+
+- NetBSD/amd64 6.1 make test results (with 7.5.1)
+ -----
+ (with new (5.2 adaptation) patch-gdb_bsd-kvm.c)
+ === gdb Summary ===
+ # of expected passes 12525
+ # of unexpected failures 413
+ # of unexpected successes 2
+ # of expected failures 40
+ # of known failures 52
+ # of untested testcases 173
+ # of unresolved testcases 6
+ # of unsupported tests 153
+
+- NetBSD/i386 5.2 make test results (with 7.5.1)
+ -----
+ (with new (5.2 adaptation) patch-gdb_bsd-kvm.c)
+ === gdb Summary ===
+ # of expected passes 11310
+ # of unexpected failures 1183
+ # of expected failures 40
+ # of known failures 47
+ # of untested testcases 176
+ # of unresolved testcases 7
+ # of unsupported tests 159
+
+- NetBSD/i386 5.2 make test results (with 7.6.1)
+ -----
+ # of expected passes 3150
+ # of unexpected failures 4161
+ # of expected failures 19
+ # of known failures 12
+ # of untested testcases 187
+ # of unresolved testcases 513
+ # of unsupported tests 136
+
+- NetBSD/amd64 5.1 (gcc 4.1.3, gdb-7.6.1)
+ -----
+ === gdb Summary ===
+ # of expected passes 3223
+ # of unexpected failures 4236
+ # of expected failures 19
+ # of known failures 11
+ # of untested testcases 189
+ # of unresolved testcases 513
+ # of unsupported tests 136
+
+kuro@makoto 12:31:56/131002(..wip/gdb)% /export/CHROOT/usr/pkgsrc/wip/gdb/work/gdb-7.6.1/gdb/testsuite/../../gdb/gdb
+ /export/CHROOT/usr/pkgsrc/wip/gdb/work/gdb-7.6.1/gdb/testsuite/gdb.mi/gdb2549
+GNU gdb (GDB) 7.6.1
+"/export/CHROOT/usr/pkgsrc/wip/gdb/work/gdb-7.6.1/gdb/testsuite/gdb.mi/gdb2549": not in executable format: Bad value
+
+file /export/CHROOT/usr/pkgsrc/wip/gdb/work/gdb-7.6.1/gdb/testsuite/gdb.mi/gdb2549
+/export/CHROOT/usr/pkgsrc/wip/gdb/work/gdb-7.6.1/gdb/testsuite/gdb.mi/gdb2549:
+ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for NetBSD 5.1, not stripped
+
+- NetBSD/amd64 6.1 (gcc-4.5.3) (with gdb-7.6.1)
+ -----
+ === gdb Summary ===
+
+ # of expected passes 3255
+ # of unexpected failures 4305
+ # of expected failures 19
+ # of known failures 11
+ # of untested testcases 181
+ # of unresolved testcases 522
+ # of unsupported tests 130
+
+- NetBSD/amd64 6.99.22 (clang 3.2) (with gdb-7.6)
+ -----
+ === gdb Summary ===
+ # of expected passes 2895
+ # of unexpected failures 3284
+ # of expected failures 14
+ # of known failures 4
+ # of untested testcases 220
+ # of unresolved testcases 359
+ # of unsupported tests 151
+
+- NetBSD/amd64 6.99.23 (clang-3.3 gdb-7.6.1)
+ === gdb Summary ===
+ # of expected passes 2896
+ # of unexpected failures 3284
+ # of expected failures 14
+ # of known failures 4
+ # of untested testcases 222
+ # of unresolved testcases 361
+ # of unsupported tests 151
+
+ runtest completed at Wed Oct 2 01:10:18 2013
+
+- NetBSD/amd64 6.99.22 (gcc-4.5.4) (with gdb-7.6)
+ -----
+ === gdb Summary ===
+ # of expected passes 3253
+ # of unexpected failures 4304
+ # of expected failures 19
+ # of known failures 11
+ # of untested testcases 181
+ # of unresolved testcases 518
+ # of unsupported tests 130
+
+- NetBSD/macppc 6.1 (gcc-4.5.3, gdb-7.6)
+ === gdb Summary ===
+ # of expected passes 3135
+ # of unexpected failures 4041
+ # of expected failures 19
+ # of known failures 11
+ # of untested testcases 182
+ # of unresolved testcases 490
+ # of unsupported tests 131
diff --git a/gdb-git/distinfo b/gdb-git/distinfo
new file mode 100644
index 0000000..f6a1c64
--- /dev/null
+++ b/gdb-git/distinfo
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.10 2015/03/15 14:22:19 bsiegert Exp $
+
+SHA1 (gdb-7.9.tar.gz) = 8f89aa6847dc87de2f720779a87ba360bdbc7efd
+RMD160 (gdb-7.9.tar.gz) = 939dda771a073e82e7d72fd584246f3d1d8e9bdc
+Size (gdb-7.9.tar.gz) = 33225783 bytes
+SHA1 (patch-ao) = fe55dc7245f438fccb7965ceb220be951f85a535
+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 --git a/gdb-git/options.mk b/gdb-git/options.mk
new file mode 100644
index 0000000..9996fd1
--- /dev/null
+++ b/gdb-git/options.mk
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2014/06/21 04:01:01 thomasklausner 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
+.include "../../lang/python/application.mk"
+.endif
diff --git a/gdb-git/patches/patch-ao b/gdb-git/patches/patch-ao
new file mode 100644
index 0000000..bedd873
--- /dev/null
+++ b/gdb-git/patches/patch-ao
@@ -0,0 +1,16 @@
+$NetBSD: patch-ao,v 1.2 2015/03/15 14:22:19 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 --git a/gdb-git/patches/patch-gdb_bsd-kvm.c b/gdb-git/patches/patch-gdb_bsd-kvm.c
new file mode 100644
index 0000000..b7d58f9
--- /dev/null
+++ b/gdb-git/patches/patch-gdb_bsd-kvm.c
@@ -0,0 +1,33 @@
+$NetBSD: patch-gdb_bsd-kvm.c,v 1.3 2015/03/15 14:22:20 bsiegert 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
+
+--- gdb/bsd-kvm.c.orig 2015-02-19 11:58:07.000000000 +0000
++++ gdb/bsd-kvm.c
+@@ -28,7 +28,12 @@
+ #include "gdbthread.h"
+
+ #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"
diff --git a/gdb-git/patches/patch-gdb_ppcnbsd-nat.c b/gdb-git/patches/patch-gdb_ppcnbsd-nat.c
new file mode 100644
index 0000000..4023259
--- /dev/null
+++ b/gdb-git/patches/patch-gdb_ppcnbsd-nat.c
@@ -0,0 +1,38 @@
+$NetBSD: patch-gdb_ppcnbsd-nat.c,v 1.2 2015/03/15 14:22:20 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 --git a/gdb-git/patches/patch-opcodes_i386-dis_c b/gdb-git/patches/patch-opcodes_i386-dis_c
new file mode 100644
index 0000000..2812dad
--- /dev/null
+++ b/gdb-git/patches/patch-opcodes_i386-dis_c
@@ -0,0 +1,13 @@
+$NetBSD: patch-opcodes_i386-dis_c,v 1.2 2015/03/15 14:22:20 bsiegert Exp $
+
+--- opcodes/i386-dis.c.orig 2015-02-19 11:58:08.000000000 +0000
++++ opcodes/i386-dis.c
+@@ -13586,7 +13586,7 @@ dofloat (int sizeflag)
+ static void
+ oappend_maybe_intel (const char *s)
+ {
+- oappend (s + intel_syntax);
++ oappend (s[(short)intel_syntax]);
+ }
+
+ static void
diff --git a/gdb-git/patches/patch-sim_ppc_emul_netbsd.c b/gdb-git/patches/patch-sim_ppc_emul_netbsd.c
new file mode 100644
index 0000000..7af4d98
--- /dev/null
+++ b/gdb-git/patches/patch-sim_ppc_emul_netbsd.c
@@ -0,0 +1,39 @@
+$NetBSD: patch-sim_ppc_emul_netbsd.c,v 1.2 2015/03/15 14:22:20 bsiegert Exp $
+
+time_t conversion compatibility, experimental.
+Please correct the naming, thank you.
+
+--- sim/ppc/emul_netbsd.c.orig 2014-06-11 16:34:42.000000000 +0000
++++ sim/ppc/emul_netbsd.c
+@@ -118,6 +118,7 @@ extern int errno;
+
+ #if WITH_NetBSD_HOST
+ #define SYS(X) ASSERT(call == (SYS_##X))
++#define SYSSYS(X) ASSERT(call == (SYS___##X50))
+ #else
+ #define SYS(X)
+ #endif
+@@ -737,7 +738,11 @@ do_gettimeofday(os_emul_data *emul,
+ if (WITH_TRACE && ppc_trace[trace_os_emul])
+ printf_filtered ("0x%lx, 0x%lx", (long)t_addr, (long)tz_addr);
+
++#if 0
+ SYS(gettimeofday);
++#else
++ SYS___gettimeofday50;
++#endif
+ emul_write_status(processor, status, err);
+ if (status == 0) {
+ if (t_addr != 0)
+@@ -767,7 +772,11 @@ do_getrusage(os_emul_data *emul,
+ if (WITH_TRACE && ppc_trace[trace_os_emul])
+ printf_filtered ("%d, 0x%lx", who, (long)rusage_addr);
+
++#if 0
+ SYS(getrusage);
++#else
++ SYS___getrusage50;
++#endif
+ emul_write_status(processor, status, err);
+ if (status == 0) {
+ if (rusage_addr != 0)
diff --git a/gdb/DESCR b/gdb/DESCR
deleted file mode 100644
index c7c2207..0000000
--- a/gdb/DESCR
+++ /dev/null
@@ -1,17 +0,0 @@
- 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 --git a/gdb/Makefile b/gdb/Makefile
deleted file mode 100644
index 8f3ba7a..0000000
--- a/gdb/Makefile
+++ /dev/null
@@ -1,82 +0,0 @@
-# $NetBSD: Makefile,v 1.11 2015/03/15 14:22:19 bsiegert Exp $
-#
-
-DISTNAME= gdb-7.9
-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
-
-#NOT_FOR_PLATFORM= Darwin-*-* DragonFly-*-*
-
-BROKEN_GETTEXT_DETECTION= yes
-GNU_CONFIGURE= YES
-USE_PKGLOCALEDIR= YES
-USE_LIBTOOL= YES
-USE_TOOLS+= gmake msgfmt makeinfo
-REPLACE_LOCALEDIR_PATTERNS+= Make-in
-INSTALL_TARGET= install install-info
-TEST_TARGET= check
-INFO_FILES= yes
-CONFIGURE_ENV+= CONFIG_LDFLAGS=${LDFLAGS:M*:Q}
-
-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} == "Linux"
-USE_TOOLS+= aclocal autoheader autoconf
-pre-configure:
- ${RUN} cd ${WRKSRC}/gdb/gdbserver && \
- aclocal && autoheader && autoconf
-
-.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 --git a/gdb/PLIST.DragonFly b/gdb/PLIST.DragonFly
deleted file mode 100644
index 0dc050e..0000000
--- a/gdb/PLIST.DragonFly
+++ /dev/null
@@ -1,3 +0,0 @@
-@comment $NetBSD: PLIST.DragonFly,v 1.1 2013/02/04 11:05:06 makoto Exp $
-bin/i386--dragonfly-gdb
-man/man1/i386--dragonfly-gdb.1
diff --git a/gdb/PLIST.Linux b/gdb/PLIST.Linux
deleted file mode 100644
index 8074094..0000000
--- a/gdb/PLIST.Linux
+++ /dev/null
@@ -1,3 +0,0 @@
-@comment $NetBSD: PLIST.Linux,v 1.1 2013/02/02 05:06:43 makoto Exp $
-bin/gdbserver
-man/man1/gdbserver.1
diff --git a/gdb/PLIST.NetBSD b/gdb/PLIST.NetBSD
deleted file mode 100644
index bfd094a..0000000
--- a/gdb/PLIST.NetBSD
+++ /dev/null
@@ -1,8 +0,0 @@
-@comment $NetBSD: PLIST.NetBSD,v 1.1 2013/02/04 11:28:19 makoto Exp $
-include/ansidecl.h
-include/bfd.h
-include/bfdlink.h
-include/dis-asm.h
-include/symcat.h
-lib/libbfd.la
-lib/libopcodes.la
diff --git a/gdb/PLIST.common b/gdb/PLIST.common
deleted file mode 100644
index 92b2765..0000000
--- a/gdb/PLIST.common
+++ /dev/null
@@ -1,60 +0,0 @@
-@comment $NetBSD: PLIST.common,v 1.6 2015/03/15 14:22:19 bsiegert Exp $
-bin/gdb
-include/gdb/jit-reader.h
-info/annotate.info
-info/bfd.info
-info/gdb.info
-info/stabs.info
-lib/charset.alias
-man/man1/gdb.1
-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/pretty_printers.py
-share/gdb/python/gdb/command/prompt.py
-share/gdb/python/gdb/command/type_printers.py
-share/gdb/python/gdb/function/__init__.py
-share/gdb/python/gdb/function/strfns.py
-share/gdb/python/gdb/printing.py
-share/gdb/python/gdb/prompt.py
-share/gdb/python/gdb/types.py
-share/gdb/syscalls/amd64-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/sparc-linux.xml
-share/gdb/syscalls/sparc64-linux.xml
-share/locale/da/LC_MESSAGES/bfd.mo
-share/locale/da/LC_MESSAGES/opcodes.mo
-share/locale/de/LC_MESSAGES/opcodes.mo
-share/locale/es/LC_MESSAGES/bfd.mo
-share/locale/es/LC_MESSAGES/opcodes.mo
-share/locale/fi/LC_MESSAGES/bfd.mo
-share/locale/fi/LC_MESSAGES/opcodes.mo
-share/locale/fr/LC_MESSAGES/bfd.mo
-share/locale/fr/LC_MESSAGES/opcodes.mo
-share/locale/ga/LC_MESSAGES/opcodes.mo
-share/locale/id/LC_MESSAGES/bfd.mo
-share/locale/id/LC_MESSAGES/opcodes.mo
-share/locale/it/LC_MESSAGES/opcodes.mo
-share/locale/ja/LC_MESSAGES/bfd.mo
-share/locale/nl/LC_MESSAGES/opcodes.mo
-share/locale/pt_BR/LC_MESSAGES/opcodes.mo
-share/locale/ro/LC_MESSAGES/bfd.mo
-share/locale/ro/LC_MESSAGES/opcodes.mo
-share/locale/ru/LC_MESSAGES/bfd.mo
-share/locale/rw/LC_MESSAGES/bfd.mo
-share/locale/sv/LC_MESSAGES/bfd.mo
-share/locale/sv/LC_MESSAGES/opcodes.mo
-share/locale/tr/LC_MESSAGES/bfd.mo
-share/locale/tr/LC_MESSAGES/opcodes.mo
-share/locale/uk/LC_MESSAGES/bfd.mo
-share/locale/uk/LC_MESSAGES/opcodes.mo
-share/locale/vi/LC_MESSAGES/bfd.mo
-share/locale/vi/LC_MESSAGES/opcodes.mo
-share/locale/zh_CN/LC_MESSAGES/bfd.mo
-share/locale/zh_CN/LC_MESSAGES/opcodes.mo
diff --git a/gdb/TODO b/gdb/TODO
deleted file mode 100644
index 152e3d4..0000000
--- a/gdb/TODO
+++ /dev/null
@@ -1,205 +0,0 @@
-TODO
-- Dragonfly/i386 3.2.2: list command works, but cannot run programs
-- NetBSD/i386 5.2 invocation reported as OK, but does it work ?
-- Test on Dragonfly amd64, SunOS and Linux.
-- Run make test on all platforms.
-- devel/gdb/patches/patch-* are not reviewed yet for inclusion
-- Run pkglint and do cleanup.
-- Is the addition of libpthread_dbg necessary for full functionality
- as done by the gdb 7.3 in NetBSD src ?
-- patch-opcodes_configure
- (This reverts to 7.5.1, why this is necessary is unknown now)
-
-DONE
-- NetBSD/amd64 6.1_RC1 and 6.99.19 OK Tested with gcc/gfortran 4.8.0
- and make test passes more than 95 % of testcases.
-- NetBSD/i386: 6.0 OK Tested with gcc 4.7 and make test passes 90 %
- of the testcases.
-- DragonFly 3.4.2/i386 make test results (for now)
- -----
- tail -12 work/gdb-7.5.1/gdb/testsuite/gdb.sum
- === gdb Summary ===
-
- # of expected passes 4962
- # of unexpected failures 3053
- # of expected failures 35
- # of known failures 20
- # of untested testcases 174
- # of unresolved testcases 203
- # of unsupported tests 149
-
-- DragonFly 3.4.2/i386 make test results (with 7.6)
- -----
- tail -12 work/gdb-7.6/gdb/testsuite/gdb.sum
- === gdb Summary ===
-
- # of expected passes 4769
- # of unexpected failures 2826
- # of expected failures 23
- # of known failures 13
- # of untested testcases 189
- # of unresolved testcases 165
- # of unsupported tests 161
-
-- NetBSD/macppc 6.1_RC2 make test results (with 7.5.1)
- -----
- tail -12 work/gdb-7.5.1/gdb/testsuite/gdb.sum
- === gdb Summary ===
- # of expected passes 12234
- # of unexpected failures 297
- # of unexpected successes 2
- # of expected failures 38
- # of known failures 37
- # of untested testcases 173
- # of unresolved testcases 6
- # of unsupported tests 154
-
-- NetBSD/amd64 6.1_RC2 make test results (with 7.5.1)
- -----
- === gdb Summary ===
- # of expected passes 12515
- # of unexpected failures 395
- # of unexpected successes 2
- # of expected failures 40
- # of known failures 52
- # of untested testcases 172
- # of unresolved testcases 6
- # of unsupported tests 156
-
-- NetBSD/amd64 6.1 make test results (with 7.5.1)
- -----
- (but without patch-gdb_bsd-kvm.c)
- === gdb Summary ===
-
- # of expected passes 12515
- # of unexpected failures 412
- # of unexpected successes 2
- # of expected failures 40
- # of known failures 52
- # of untested testcases 173
- # of unresolved testcases 7
- # of unsupported tests 153
-
-- NetBSD/amd64 6.1 make test results (with 7.5.1)
- -----
- (with patch-gdb_bsd-kvm.c)
- === gdb Summary ===
- # of expected passes 12520
- # of unexpected failures 414
- # of unexpected successes 2
- # of expected failures 40
- # of known failures 52
- # of untested testcases 173
- # of unresolved testcases 7
- # of unsupported tests 153
-
-- NetBSD/amd64 6.1 make test results (with 7.5.1)
- -----
- (with new (5.2 adaptation) patch-gdb_bsd-kvm.c)
- === gdb Summary ===
- # of expected passes 12525
- # of unexpected failures 413
- # of unexpected successes 2
- # of expected failures 40
- # of known failures 52
- # of untested testcases 173
- # of unresolved testcases 6
- # of unsupported tests 153
-
-- NetBSD/i386 5.2 make test results (with 7.5.1)
- -----
- (with new (5.2 adaptation) patch-gdb_bsd-kvm.c)
- === gdb Summary ===
- # of expected passes 11310
- # of unexpected failures 1183
- # of expected failures 40
- # of known failures 47
- # of untested testcases 176
- # of unresolved testcases 7
- # of unsupported tests 159
-
-- NetBSD/i386 5.2 make test results (with 7.6.1)
- -----
- # of expected passes 3150
- # of unexpected failures 4161
- # of expected failures 19
- # of known failures 12
- # of untested testcases 187
- # of unresolved testcases 513
- # of unsupported tests 136
-
-- NetBSD/amd64 5.1 (gcc 4.1.3, gdb-7.6.1)
- -----
- === gdb Summary ===
- # of expected passes 3223
- # of unexpected failures 4236
- # of expected failures 19
- # of known failures 11
- # of untested testcases 189
- # of unresolved testcases 513
- # of unsupported tests 136
-
-kuro@makoto 12:31:56/131002(..wip/gdb)% /export/CHROOT/usr/pkgsrc/wip/gdb/work/gdb-7.6.1/gdb/testsuite/../../gdb/gdb
- /export/CHROOT/usr/pkgsrc/wip/gdb/work/gdb-7.6.1/gdb/testsuite/gdb.mi/gdb2549
-GNU gdb (GDB) 7.6.1
-"/export/CHROOT/usr/pkgsrc/wip/gdb/work/gdb-7.6.1/gdb/testsuite/gdb.mi/gdb2549": not in executable format: Bad value
-
-file /export/CHROOT/usr/pkgsrc/wip/gdb/work/gdb-7.6.1/gdb/testsuite/gdb.mi/gdb2549
-/export/CHROOT/usr/pkgsrc/wip/gdb/work/gdb-7.6.1/gdb/testsuite/gdb.mi/gdb2549:
-ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for NetBSD 5.1, not stripped
-
-- NetBSD/amd64 6.1 (gcc-4.5.3) (with gdb-7.6.1)
- -----
- === gdb Summary ===
-
- # of expected passes 3255
- # of unexpected failures 4305
- # of expected failures 19
- # of known failures 11
- # of untested testcases 181
- # of unresolved testcases 522
- # of unsupported tests 130
-
-- NetBSD/amd64 6.99.22 (clang 3.2) (with gdb-7.6)
- -----
- === gdb Summary ===
- # of expected passes 2895
- # of unexpected failures 3284
- # of expected failures 14
- # of known failures 4
- # of untested testcases 220
- # of unresolved testcases 359
- # of unsupported tests 151
-
-- NetBSD/amd64 6.99.23 (clang-3.3 gdb-7.6.1)
- === gdb Summary ===
- # of expected passes 2896
- # of unexpected failures 3284
- # of expected failures 14
- # of known failures 4
- # of untested testcases 222
- # of unresolved testcases 361
- # of unsupported tests 151
-
- runtest completed at Wed Oct 2 01:10:18 2013
-
-- NetBSD/amd64 6.99.22 (gcc-4.5.4) (with gdb-7.6)
- -----
- === gdb Summary ===
- # of expected passes 3253
- # of unexpected failures 4304
- # of expected failures 19
- # of known failures 11
- # of untested testcases 181
- # of unresolved testcases 518
- # of unsupported tests 130
-
-- NetBSD/macppc 6.1 (gcc-4.5.3, gdb-7.6)
- === gdb Summary ===
- # of expected passes 3135
- # of unexpected failures 4041
- # of expected failures 19
- # of known failures 11
- # of untested testcases 182
- # of unresolved testcases 490
- # of unsupported tests 131
diff --git a/gdb/distinfo b/gdb/distinfo
deleted file mode 100644
index f6a1c64..0000000
--- a/gdb/distinfo
+++ /dev/null
@@ -1,10 +0,0 @@
-$NetBSD: distinfo,v 1.10 2015/03/15 14:22:19 bsiegert Exp $
-
-SHA1 (gdb-7.9.tar.gz) = 8f89aa6847dc87de2f720779a87ba360bdbc7efd
-RMD160 (gdb-7.9.tar.gz) = 939dda771a073e82e7d72fd584246f3d1d8e9bdc
-Size (gdb-7.9.tar.gz) = 33225783 bytes
-SHA1 (patch-ao) = fe55dc7245f438fccb7965ceb220be951f85a535
-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 --git a/gdb/options.mk b/gdb/options.mk
deleted file mode 100644
index 9996fd1..0000000
--- a/gdb/options.mk
+++ /dev/null
@@ -1,13 +0,0 @@
-# $NetBSD: options.mk,v 1.1 2014/06/21 04:01:01 thomasklausner 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
-.include "../../lang/python/application.mk"
-.endif
diff --git a/gdb/patches/patch-ao b/gdb/patches/patch-ao
deleted file mode 100644
index bedd873..0000000
--- a/gdb/patches/patch-ao
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-ao,v 1.2 2015/03/15 14:22:19 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 --git a/gdb/patches/patch-gdb_bsd-kvm.c b/gdb/patches/patch-gdb_bsd-kvm.c
deleted file mode 100644
index b7d58f9..0000000
--- a/gdb/patches/patch-gdb_bsd-kvm.c
+++ /dev/null
@@ -1,33 +0,0 @@
-$NetBSD: patch-gdb_bsd-kvm.c,v 1.3 2015/03/15 14:22:20 bsiegert 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
-
---- gdb/bsd-kvm.c.orig 2015-02-19 11:58:07.000000000 +0000
-+++ gdb/bsd-kvm.c
-@@ -28,7 +28,12 @@
- #include "gdbthread.h"
-
- #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"
diff --git a/gdb/patches/patch-gdb_ppcnbsd-nat.c b/gdb/patches/patch-gdb_ppcnbsd-nat.c
deleted file mode 100644
index 4023259..0000000
--- a/gdb/patches/patch-gdb_ppcnbsd-nat.c
+++ /dev/null
@@ -1,38 +0,0 @@
-$NetBSD: patch-gdb_ppcnbsd-nat.c,v 1.2 2015/03/15 14:22:20 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 --git a/gdb/patches/patch-opcodes_i386-dis_c b/gdb/patches/patch-opcodes_i386-dis_c
deleted file mode 100644
index 2812dad..0000000
--- a/gdb/patches/patch-opcodes_i386-dis_c
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-opcodes_i386-dis_c,v 1.2 2015/03/15 14:22:20 bsiegert Exp $
-
---- opcodes/i386-dis.c.orig 2015-02-19 11:58:08.000000000 +0000
-+++ opcodes/i386-dis.c
-@@ -13586,7 +13586,7 @@ dofloat (int sizeflag)
- static void
- oappend_maybe_intel (const char *s)
- {
-- oappend (s + intel_syntax);
-+ oappend (s[(short)intel_syntax]);
- }
-
- static void
diff --git a/gdb/patches/patch-sim_ppc_emul_netbsd.c b/gdb/patches/patch-sim_ppc_emul_netbsd.c
deleted file mode 100644
index 7af4d98..0000000
--- a/gdb/patches/patch-sim_ppc_emul_netbsd.c
+++ /dev/null
@@ -1,39 +0,0 @@
-$NetBSD: patch-sim_ppc_emul_netbsd.c,v 1.2 2015/03/15 14:22:20 bsiegert Exp $
-
-time_t conversion compatibility, experimental.
-Please correct the naming, thank you.
-
---- sim/ppc/emul_netbsd.c.orig 2014-06-11 16:34:42.000000000 +0000
-+++ sim/ppc/emul_netbsd.c
-@@ -118,6 +118,7 @@ extern int errno;
-
- #if WITH_NetBSD_HOST
- #define SYS(X) ASSERT(call == (SYS_##X))
-+#define SYSSYS(X) ASSERT(call == (SYS___##X50))
- #else
- #define SYS(X)
- #endif
-@@ -737,7 +738,11 @@ do_gettimeofday(os_emul_data *emul,
- if (WITH_TRACE && ppc_trace[trace_os_emul])
- printf_filtered ("0x%lx, 0x%lx", (long)t_addr, (long)tz_addr);
-
-+#if 0
- SYS(gettimeofday);
-+#else
-+ SYS___gettimeofday50;
-+#endif
- emul_write_status(processor, status, err);
- if (status == 0) {
- if (t_addr != 0)
-@@ -767,7 +772,11 @@ do_getrusage(os_emul_data *emul,
- if (WITH_TRACE && ppc_trace[trace_os_emul])
- printf_filtered ("%d, 0x%lx", who, (long)rusage_addr);
-
-+#if 0
- SYS(getrusage);
-+#else
-+ SYS___getrusage50;
-+#endif
- emul_write_status(processor, status, err);
- if (status == 0) {
- if (rusage_addr != 0)
Home |
Main Index |
Thread Index |
Old Index