pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/gdb gdb: Upgrade to 10.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/ac1ac9821b27
branches: trunk
changeset: 441032:ac1ac9821b27
user: kamil <kamil%pkgsrc.org@localhost>
date: Sat Oct 24 18:22:08 2020 +0000
description:
gdb: Upgrade to 10.1
October 24th, 2020: GDB 10.1 Released!
The latest version of GDB, version 10.1, is available for download.
This version of GDB includes the following changes and enhancements:
Support for debugging new targets:
BPF (bpf-unknown-none)
GDBserver support for the following targets:
ARC GNU/Linux
RISC-V GNU/Linux
Multi-target debugging support (experimental)
Support for debuginfod, an HTTP server for distributing ELF/DWARF debugging information as well as source code.
Support for debugging a 32-bit Windows program using a 64-bit Windows GDB.
Support for building GDB with GNU Guile 3.0 and 2.2 (in addition to 2.0)
Improved performance during startup through the use of threading during symbol table loading (an optional feature in GDB 9, now enabled by default in GDB 10).
Various enhancements to the Python and Guile APIs
Various TUI Mode fixes and enhancements.
Other miscellaneous enhancements:
Detection when attaching to a process of a mismatch between this process and the executable previously loaded into GDB.
Support for default arguments for "alias" commands.
GDBserver support for the following host triplets has been removed:
i[34567]86-*-lynxos*
powerpc-*-lynxos*
i[34567]86-*-nto*
bfin-*-*linux*
crisv32-*-linux*
cris-*-linux*
m32r*-*-linux*
tilegx-*-linux*
arm*-*-mingw32ce*
i[34567]86-*-mingw32ce*
See the NEWS file for a more complete and detailed list of what this release includes.
---
From: Joel Brobecker
Subject: GDB 9.1 released!
Date: Sat, 8 Feb 2020 18:56:59 +0400 (+04)
GDB 9.1 includes the following changes and enhancements:
* Building GDB and GDBserver now requires GNU make >= 3.82.
* If you choose to build GDB without using the GNU readline version bundled
with the GDB sources, building GDB new requires GNU readline >= 7.0.
* Removed targets and native configurations:
- GDB no longer supports debugging the Cell Broadband Engine;
- GDB no longer supports Solaris 10.
* New TI PRU Simulator (pru-*-elf).
* Python Enhancements:
- GDB can now be compiled with Python 3 on Windows;
- Various Python API enhancements;
* Usability enhancements:
- [experimental] Multithreaded symbol loading for higher performance
(turned off by default, use 'maint set worker-threads unlimited'
to turn this feature on);
- Command names can now use the '.' character;
- GDB can now place breakpoints on nested functions and subroutines
in Fortran;
- GDB now shows the Ada task names at more places, e.g. in task switching
messages.
- Styling enhancements to various commands to improve readability.
- GDB now has a standard infrastructure to support dash-style command
options ('-OPT'). One benefit is that commands that use it can
easily support completion of command line arguments. Try "CMD
-[TAB]" or "help CMD" to find options supported by a command. Over
time, we intend to migrate most commands to this infrastructure.
* Enhancements to existing commands:
- "printf" and "eval" can now print C-style and Ada-style strings
without calling functions in the program;
- "info sources" has been enhance to allow only printing files
whose name match a REGEXP;
- New value "presence" for the "set print frame-arguments" setting,
to only indicate the presence of arguments with '...' instead
of printing the argument names and values;
- The "focus", "winheight", "+", "-", ">", "<" TUI commands are
now case sensitive;
- New options support for the following commands that allow overriding
a number of relevant global settings (as set by e.g. "set print
[...]" commands): "print", "compile print", "backtrace", "frame
apply", "tfaas", "faas";
- "info types" support for "-q" to disable printing of some header
information;
- In settings, "unlimited" can now be abbreviated with "u".
* New commands:
- "define-prefix" to define user-defined prefix commands;
- "|" or "pipe" to execute a command and send its output to
a shell command.
- "with" to run a given command with a setting temporarily changed
to a given value;
- "set may-call-functions" to control whether subprogram can be
called from GDB;
- "set print finish [on|off]" to control whether the returned value
should be printed when using the "finish" command;
- "set print max-depth" to simplify the printing of deeply nested
structures;
- "set print raw-values [on|off]" to turn on and off pretty printers;
- "set logging debugredirect [on|off]" to control whether to redirect
debug output to the log file;
- Various new "set style" commands;
- "set print frame-info [...]" to control what information to print
when printing a frame.
- "set tui compact-source" to enable the "compact" mode for the TUI
source window;
- "info modules [...]" to query information about Fortran modules;
- The "set/show print raw-frame-arguments" commands replace
the "set/show print raw frame-arguments" (now with a dash instead of
a space). The latter is now deprecated and may be removed in
a future release.
* New GDB/MI commands
- "-complete" to list possible completions;
- "-catch-throw", "-catch-rethrow", and "-catch-catch", the GDB/MI
equivalent of the "catch throw", "catch rethrow", and "catch catch"
commands (respectively);
- "-symbol-info-functions", "-symbol-info-types", and
"-symbol-info-variables", the GDB/MI equivalent of the "info functions",
"info types", and "info variables" commands (respectively);
- "-symbol-info-modules", "-symbol-info-module-functions",
and "-symbol-info-module-variables", the GDB/MI equivalent of
"info modules", "info module functions" and "info module variables".
* Other MI changes
- The default version of the MI interpreter is now 3 (-i=mi3);
- The output of information about multi-location breakpoints (which is
syntactically incorrect in MI 2) has changed in MI 3;
- Backtraces and frames include a new optional field "addr_flags".
* Several new builtin convenience variables
- $_gdb_major and $_gdb_minor;
- $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting and
$_gdb_maint_setting_str
- $_cimag and $_creal
- $_shell_exitcode and $_shell_exitsignal
* Miscellaneous enhancements:
- Support for a new configure option "--with-system-gdbinit-dir",
where system gdbinit files are to be loaded from at startup;
- 'thread-exited' event is now available in the annotations interface;
- The TUI SingleKey keymap is now named "SingleKey" (requires
GNU readline >= 8.0).
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-9.1-release
diffstat:
devel/gdb/Makefile | 42 +++++++---------------
devel/gdb/PLIST.Linux | 3 +-
devel/gdb/PLIST.common | 4 +-
devel/gdb/distinfo | 13 ++----
devel/gdb/options.mk | 4 +-
devel/gdb/patches/patch-Makefile.in | 32 -----------------
devel/gdb/patches/patch-gdb_testsuite_Makefile.in | 22 ------------
devel/gdb/patches/patch-sim_ppc_emul_netbsd.c | 39 ---------------------
8 files changed, 25 insertions(+), 134 deletions(-)
diffs (262 lines):
diff -r 26ca254b4a6e -r ac1ac9821b27 devel/gdb/Makefile
--- a/devel/gdb/Makefile Sat Oct 24 16:53:41 2020 +0000
+++ b/devel/gdb/Makefile Sat Oct 24 18:22:08 2020 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.72 2020/10/07 04:34:01 mcf Exp $
+# $NetBSD: Makefile,v 1.73 2020/10/24 18:22:08 kamil Exp $
-DISTNAME= gdb-8.3.1
-PKGREVISION= 2
+DISTNAME= gdb-10.1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=gdb/}
@@ -19,7 +18,7 @@
USE_LIBTOOL= yes
USE_TOOLS+= gmake msgfmt makeinfo perl:build bash:run
REPLACE_LOCALEDIR_PATTERNS+= Make-in
-INSTALL_TARGET= install install-info
+INSTALL_TARGET= install-gdb install-gdbsupport
TEST_TARGET= check
INFO_FILES= yes
CONFIGURE_ENV+= CONFIG_LDFLAGS=${LDFLAGS:M*:Q}
@@ -28,7 +27,9 @@
SUBST_CLASSES+= fix-depcomp
SUBST_STAGE.fix-depcomp+= pre-configure
SUBST_MESSAGE.fix-depcomp+= Read depcomp directly
-SUBST_FILES.fix-depcomp+= gdb/configure
+SUBST_FILES.fix-depcomp+= gdb/configure gdbserver/configure
+SUBST_FILES.fix-depcomp+= gdbsupport/configure
+SUBST_FILES.fix-depcomp+= gnulib/configure libctf/configure
SUBST_SED.fix-depcomp+= -e 's,< ./depcomp,${_OVERRIDE_PATH.depcomp},'
CONFIGURE_ARGS+= --disable-binutils
@@ -39,8 +40,6 @@
CONFIGURE_ARGS+= --enable-targets=all
-AUTO_MKDIRS= yes
-
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
@@ -54,17 +53,19 @@
PLIST.gcore= yes
.endif
+PLIST_VARS+= gdbserver
+.if ${OPSYS} == "Linux" || \
+ (${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "x86_64")
+INSTALL_TARGET+= install-gdbserver
+PLIST.gdbserver= yes
+.endif
+
.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
-
+CONFIGURE_ARGS+= --with-curses
CONFIGURE_ARGS+= --with-separate-debug-dir=/usr/libdata/debug
.endif
@@ -74,21 +75,6 @@
post-extract:
${MKDIR} ${WRKDIR}/build
-post-install:
- ${RM} -f ${DESTDIR}/${PREFIX}/lib/charset.alias
-#
-# 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 26ca254b4a6e -r ac1ac9821b27 devel/gdb/PLIST.Linux
--- a/devel/gdb/PLIST.Linux Sat Oct 24 16:53:41 2020 +0000
+++ b/devel/gdb/PLIST.Linux Sat Oct 24 18:22:08 2020 +0000
@@ -1,3 +1,2 @@
-@comment $NetBSD: PLIST.Linux,v 1.5 2018/01/31 20:33:11 maya Exp $
-bin/gdbserver
+@comment $NetBSD: PLIST.Linux,v 1.6 2020/10/24 18:22:08 kamil Exp $
lib/libinproctrace.so
diff -r 26ca254b4a6e -r ac1ac9821b27 devel/gdb/PLIST.common
--- a/devel/gdb/PLIST.common Sat Oct 24 16:53:41 2020 +0000
+++ b/devel/gdb/PLIST.common Sat Oct 24 18:22:08 2020 +0000
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST.common,v 1.16 2020/10/07 04:34:01 mcf Exp $
+@comment $NetBSD: PLIST.common,v 1.17 2020/10/24 18:22:08 kamil Exp $
${PLIST.gcore}bin/gcore
bin/gdb
bin/gdb-add-index
+${PLIST.gdbserver}bin/gdbserver
include/gdb/jit-reader.h
info/annotate.info
info/gdb.info
@@ -43,6 +44,7 @@
share/gdb/syscalls/mips-n32-linux.xml
share/gdb/syscalls/mips-n64-linux.xml
share/gdb/syscalls/mips-o32-linux.xml
+share/gdb/syscalls/netbsd.xml
share/gdb/syscalls/ppc-linux.xml
share/gdb/syscalls/ppc64-linux.xml
share/gdb/syscalls/s390-linux.xml
diff -r 26ca254b4a6e -r ac1ac9821b27 devel/gdb/distinfo
--- a/devel/gdb/distinfo Sat Oct 24 16:53:41 2020 +0000
+++ b/devel/gdb/distinfo Sat Oct 24 18:22:08 2020 +0000
@@ -1,11 +1,8 @@
-$NetBSD: distinfo,v 1.35 2020/10/07 04:34:01 mcf Exp $
+$NetBSD: distinfo,v 1.36 2020/10/24 18:22:08 kamil Exp $
-SHA1 (gdb-8.3.1.tar.gz) = 8e68fc5d524caeb6684a8b6ed24e75396e40c471
-RMD160 (gdb-8.3.1.tar.gz) = 82c6d7d2c96b4716f9f338b116122b7395b07e90
-SHA512 (gdb-8.3.1.tar.gz) = e81949fa011046b07ee6886a378bcbd420e4571367005035007dc70f0d28d975d08fb7d9062b49f0a3e6d2ca8149ea60f9ab485ea98a04198d1ca49d38dbd2fe
-Size (gdb-8.3.1.tar.gz) = 38130999 bytes
-SHA1 (patch-Makefile.in) = 48f65798f96fdda2a35eb8b18a7cc2993023bcc7
+SHA1 (gdb-10.1.tar.gz) = 5218b83c33acd27ec4e62690baaf555503fdccd5
+RMD160 (gdb-10.1.tar.gz) = 87163d96863e4923691f0c1bd34f58e30f2685e8
+SHA512 (gdb-10.1.tar.gz) = 41b50955f82780a1935294669a14eca40e58574ad4aa6d476903b729605f09930e5bb651b4de0c49b948d65fdf521a4b7f22c5d3b1f83dd6c9a15957c9d52370
+Size (gdb-10.1.tar.gz) = 40245323 bytes
SHA1 (patch-gdb_doc_Makefile.in) = f7205fe715779e8aed05d230d43320286f74fdd0
-SHA1 (patch-gdb_testsuite_Makefile.in) = 295fa86f16e520a7df907743988cc3dbdb606c2a
SHA1 (patch-opcodes_i386-dis_c) = 57b2b2ce85567faf112ec9f435b9aed0ffc943fb
-SHA1 (patch-sim_ppc_emul_netbsd.c) = 34fcb884c3c82e8eae6cd6f8c87ce42e9354c347
diff -r 26ca254b4a6e -r ac1ac9821b27 devel/gdb/options.mk
--- a/devel/gdb/options.mk Sat Oct 24 16:53:41 2020 +0000
+++ b/devel/gdb/options.mk Sat Oct 24 18:22:08 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.8 2020/10/06 21:13:38 mcf Exp $
+# $NetBSD: options.mk,v 1.9 2020/10/24 18:22:08 kamil Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gdb
PKG_SUPPORTED_OPTIONS= python
@@ -9,7 +9,7 @@
.if !empty(PKG_OPTIONS:Mpython)
CONFIGURE_ARGS+= --with-python=${PYTHONBIN}
-PYTHON_VERSIONS_ACCEPTED= 27
+PYTHON_VERSIONS_ACCEPTED= 27 # Newer supported, but needs more tweaking
.include "../../lang/python/application.mk"
PLIST.python= yes
.endif
diff -r 26ca254b4a6e -r ac1ac9821b27 devel/gdb/patches/patch-Makefile.in
--- a/devel/gdb/patches/patch-Makefile.in Sat Oct 24 16:53:41 2020 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-$NetBSD: patch-Makefile.in,v 1.2 2016/04/14 08:40:44 fhajny 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 26ca254b4a6e -r ac1ac9821b27 devel/gdb/patches/patch-gdb_testsuite_Makefile.in
--- a/devel/gdb/patches/patch-gdb_testsuite_Makefile.in Sat Oct 24 16:53:41 2020 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-$NetBSD: patch-gdb_testsuite_Makefile.in,v 1.1 2020/04/11 12:47:28 bsiegert Exp $
-
---- gdb/testsuite/Makefile.in.orig 2019-09-20 22:04:41.000000000 +0000
-+++ gdb/testsuite/Makefile.in
-@@ -202,7 +202,7 @@ check-single-racy:
- -rm -rf cache racy_outputs temp
- mkdir -p racy_outputs; \
- racyiter="$(RACY_ITER)"; \
-- test "x$$racyiter" == "x" && \
-+ test "x$$racyiter" = "x" && \
- racyiter=$(DEFAULT_RACY_ITER); \
- if test $$racyiter -lt 2 ; then \
- echo "RACY_ITER must be at least 2."; \
-@@ -232,7 +232,7 @@ check-parallel:
- check-parallel-racy:
- -rm -rf cache racy_outputs temp
- racyiter="$(RACY_ITER)"; \
-- test "x$$racyiter" == "x" && \
-+ test "x$$racyiter" = "x" && \
- racyiter=$(DEFAULT_RACY_ITER); \
- if test $$racyiter -lt 2 ; then \
- echo "RACY_ITER must be at least 2."; \
diff -r 26ca254b4a6e -r ac1ac9821b27 devel/gdb/patches/patch-sim_ppc_emul_netbsd.c
--- a/devel/gdb/patches/patch-sim_ppc_emul_netbsd.c Sat Oct 24 16:53:41 2020 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-$NetBSD: patch-sim_ppc_emul_netbsd.c,v 1.1 2015/03/15 14:56:46 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