svn commit: r450895 - in head/devel/gdb: . files files/kgdb
Luca Pizzamiglio
pizzamig at FreeBSD.org
Fri Sep 29 14:50:02 UTC 2017
Author: pizzamig
Date: Fri Sep 29 14:49:58 2017
New Revision: 450895
URL: https://svnweb.freebsd.org/changeset/ports/450895
Log:
devel/gdb: Update to gdb 8.0.1
Resolve tons of warnings.
Fix the type of literal string as char const *
Fix Makefile's variables order and adding the license file
Rework patches to make portlint happy
Reviewed by: jhb
Approved by: lme (mentor)
Differential Revision: https://reviews.freebsd.org/D12525
Added:
head/devel/gdb/files/patch-gdb_amd64-bsd-nat.c
- copied, changed from r450893, head/devel/gdb/files/patch-gdb-amd64-bsd-nat.c
head/devel/gdb/files/patch-gdb_common_common-defs.h (contents, props changed)
head/devel/gdb/files/patch-gdb_configure
- copied, changed from r450893, head/devel/gdb/files/patch-gdb-configure
head/devel/gdb/files/patch-gdb_configure.host
- copied, changed from r450893, head/devel/gdb/files/patch-gdb-configure.host
head/devel/gdb/files/patch-gdb_corelow.c
- copied, changed from r450893, head/devel/gdb/files/patch-gdb-corelow.c
head/devel/gdb/files/patch-gdb_fbsd-nat.c
- copied, changed from r450893, head/devel/gdb/files/patch-gdb-fbsd-nat.c
head/devel/gdb/files/patch-gdb_gdb__wchar.h
- copied, changed from r450893, head/devel/gdb/files/patch-gdb-gdb_wchar.h
head/devel/gdb/files/patch-gdb_gnulib_import_stddef.in.h
- copied, changed from r450893, head/devel/gdb/files/patch-gdb-gnulib-import-stddef.in.h
head/devel/gdb/files/patch-gdb_i386-fbsd-nat.c
- copied, changed from r450893, head/devel/gdb/files/patch-gdb-i386-fbsd-nat.c
head/devel/gdb/files/patch-gdb_python_python-config.py
- copied, changed from r450893, head/devel/gdb/files/patch-gdb-python-python-config.py
head/devel/gdb/files/patch-include_libiberty.h
- copied, changed from r450893, head/devel/gdb/files/patch-libiberty-basename
head/devel/gdb/files/patch-libiberty_configure (contents, props changed)
Deleted:
head/devel/gdb/files/patch-gdb-amd64-bsd-nat.c
head/devel/gdb/files/patch-gdb-configure
head/devel/gdb/files/patch-gdb-configure.host
head/devel/gdb/files/patch-gdb-corelow.c
head/devel/gdb/files/patch-gdb-fbsd-nat.c
head/devel/gdb/files/patch-gdb-gdb_wchar.h
head/devel/gdb/files/patch-gdb-gnulib-import-stddef.in.h
head/devel/gdb/files/patch-gdb-i386-fbsd-nat.c
head/devel/gdb/files/patch-gdb-python-python-config.py
head/devel/gdb/files/patch-libiberty-basename
Modified:
head/devel/gdb/Makefile
head/devel/gdb/distinfo
head/devel/gdb/files/kgdb/kgdb-main.c
head/devel/gdb/files/patch-aarch64-fbsd
head/devel/gdb/files/patch-armfbsd
head/devel/gdb/files/patch-fixes
head/devel/gdb/files/patch-nowarning
head/devel/gdb/files/patch-unified
Modified: head/devel/gdb/Makefile
==============================================================================
--- head/devel/gdb/Makefile Fri Sep 29 14:45:48 2017 (r450894)
+++ head/devel/gdb/Makefile Fri Sep 29 14:49:58 2017 (r450895)
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= gdb
-PORTVERSION= 8.0
-PORTREVISION= 3
+PORTVERSION= 8.0.1
CATEGORIES= devel
MASTER_SITES= GNU
@@ -11,7 +10,11 @@ MAINTAINER= pizzamig at FreeBSD.org
COMMENT= GNU GDB of newer version than comes with the system
LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING3
+# untested on sparc64, might work
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 i386 mips powerpc powerpc64
+
TEST_DEPENDS= runtest:misc/dejagnu
TEST_TARGET= check
@@ -54,9 +57,6 @@ LIB_DEPENDS+= libexpat.so:textproc/expat2
VER= ${PORTVERSION:S/.//g}
PLIST_SUB= VER=${VER}
-
-# untested elsewhere, might work
-ONLY_FOR_ARCHS= aarch64 amd64 armv6 i386 mips powerpc powerpc64
OPTIONS_DEFINE= DEBUG GDB_LINK GUILE KGDB PYTHON TUI
Modified: head/devel/gdb/distinfo
==============================================================================
--- head/devel/gdb/distinfo Fri Sep 29 14:45:48 2017 (r450894)
+++ head/devel/gdb/distinfo Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1498935083
-SHA256 (gdb-8.0.tar.xz) = f6a24ffe4917e67014ef9273eb8b547cb96a13e5ca74895b06d683b391f3f4ee
-SIZE (gdb-8.0.tar.xz) = 19588616
+TIMESTAMP = 1505207991
+SHA256 (gdb-8.0.1.tar.xz) = 3dbd5f93e36ba2815ad0efab030dcd0c7b211d7b353a40a53f4c02d7d56295e3
+SIZE (gdb-8.0.1.tar.xz) = 19583920
Modified: head/devel/gdb/files/kgdb/kgdb-main.c
==============================================================================
--- head/devel/gdb/files/kgdb/kgdb-main.c Fri Sep 29 14:45:48 2017 (r450894)
+++ head/devel/gdb/files/kgdb/kgdb-main.c Fri Sep 29 14:49:58 2017 (r450895)
@@ -203,7 +203,7 @@ verify_remote(void)
}
static void
-add_arg(struct captured_main_args *args, char *arg)
+add_arg(struct captured_main_args *args, char const *arg)
{
args->argc++;
@@ -211,7 +211,7 @@ add_arg(struct captured_main_args *args, char *arg)
sizeof(char *));
if (args->argv == NULL)
err(1, "Out of memory building argument list");
- args->argv[args->argc] = arg;
+ args->argv[args->argc] = (char *)arg;
}
int
@@ -239,9 +239,9 @@ main(int argc, char *argv[])
if (s[0] == '-')
s++;
if (strcmp(s, "quiet") == 0)
- argv[a] = "-q";
+ argv[a] = (char *)"-q";
else if (strcmp(s, "fullname") == 0)
- argv[a] = "-f";
+ argv[a] = (char *)"-f";
}
}
Modified: head/devel/gdb/files/patch-aarch64-fbsd
==============================================================================
--- head/devel/gdb/files/patch-aarch64-fbsd Fri Sep 29 14:45:48 2017 (r450894)
+++ head/devel/gdb/files/patch-aarch64-fbsd Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,6 +1,4 @@
-diff --git gdb/Makefile.in gdb/Makefile.in
-index 1d2dbaf3f7..d8e2b49523 100644
---- gdb/Makefile.in
+--- gdb/Makefile.in.orig 2017-09-14 09:28:17 UTC
+++ gdb/Makefile.in
@@ -745,6 +745,7 @@ TARGET_OBS = @TARGET_OBS@
# All target-dependent objects files that require 64-bit CORE_ADDR
Modified: head/devel/gdb/files/patch-armfbsd
==============================================================================
--- head/devel/gdb/files/patch-armfbsd Fri Sep 29 14:45:48 2017 (r450894)
+++ head/devel/gdb/files/patch-armfbsd Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,7 +1,4 @@
-diff --git gdb/arm-fbsd-nat.c gdb/arm-fbsd-nat.c
-new file mode 100644
-index 0000000000..b883411ceb
---- /dev/null
+--- gdb/arm-fbsd-nat.c.orig 2017-09-14 09:28:17 UTC
+++ gdb/arm-fbsd-nat.c
@@ -0,0 +1,215 @@
+/* Native-dependent code for BSD Unix running on ARM's, for GDB.
Modified: head/devel/gdb/files/patch-fixes
==============================================================================
--- head/devel/gdb/files/patch-fixes Fri Sep 29 14:45:48 2017 (r450894)
+++ head/devel/gdb/files/patch-fixes Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,6 +1,4 @@
-diff --git gdb/compile/compile-loc2c.c gdb/compile/compile-loc2c.c
-index a53214f2e5..67af62bb58 100644
---- gdb/compile/compile-loc2c.c
+--- gdb/compile/compile-loc2c.c.orig 2017-09-14 09:28:17 UTC
+++ gdb/compile/compile-loc2c.c
@@ -669,6 +669,7 @@ do_compile_dwarf_expr_to_c (int indent, string_file &stream,
uint64_t uoffset, reg;
Copied and modified: head/devel/gdb/files/patch-gdb_amd64-bsd-nat.c (from r450893, head/devel/gdb/files/patch-gdb-amd64-bsd-nat.c)
==============================================================================
--- head/devel/gdb/files/patch-gdb-amd64-bsd-nat.c Fri Sep 29 14:11:33 2017 (r450893, copy source)
+++ head/devel/gdb/files/patch-gdb_amd64-bsd-nat.c Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,6 +1,4 @@
-diff --git gdb/amd64-bsd-nat.c gdb/amd64-bsd-nat.c
-index ca61a3551b..0f875f8296 100644
---- gdb/amd64-bsd-nat.c
+--- gdb/amd64-bsd-nat.c.orig 2017-09-14 09:28:17 UTC
+++ gdb/amd64-bsd-nat.c
@@ -28,6 +28,7 @@
#include <sys/types.h>
Added: head/devel/gdb/files/patch-gdb_common_common-defs.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/gdb/files/patch-gdb_common_common-defs.h Fri Sep 29 14:49:58 2017 (r450895)
@@ -0,0 +1,18 @@
+--- gdb/common/common-defs.h.orig 2017-09-12 12:25:12 UTC
++++ gdb/common/common-defs.h
+@@ -44,9 +44,15 @@
+
+ Must do this before including any system header, since other system
+ headers may include stdint.h/inttypes.h. */
++#ifndef __STDC_CONSTANT_MACROS
+ #define __STDC_CONSTANT_MACROS 1
++#endif
++#ifndef __STDC_LIMIT_MACROS
+ #define __STDC_LIMIT_MACROS 1
++#endif
++#ifndef __STDC_FORMAT_MACROS
+ #define __STDC_FORMAT_MACROS 1
++#endif
+
+ #include <stdarg.h>
+ #include <stdio.h>
Copied and modified: head/devel/gdb/files/patch-gdb_configure (from r450893, head/devel/gdb/files/patch-gdb-configure)
==============================================================================
--- head/devel/gdb/files/patch-gdb-configure Fri Sep 29 14:11:33 2017 (r450893, copy source)
+++ head/devel/gdb/files/patch-gdb_configure Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,6 +1,4 @@
-diff --git gdb/configure gdb/configure
-index 9f05b4bb7e..e14886b67d 100755
---- gdb/configure
+--- gdb/configure.orig 2017-09-14 09:28:17 UTC
+++ gdb/configure
@@ -15103,12 +15103,10 @@ if test "${ERROR_ON_WARNING}" = yes ; then
WERROR_CFLAGS="-Werror"
@@ -14,7 +12,7 @@ index 9f05b4bb7e..e14886b67d 100755
--Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
--Wno-sign-compare -Wno-narrowing"
+-Wno-unused -Wno-switch -Wno-char-subscripts \
-+-Wempty-body -Wno-sign-compare -Wno-narrowing"
++-Wempty-body -Wno-sign-compare -Wno-narrowing -Wno-mismatched-tags"
# Enable -Wno-format by default when using gcc on mingw since many
# GCC versions complain about %I64.
Copied and modified: head/devel/gdb/files/patch-gdb_configure.host (from r450893, head/devel/gdb/files/patch-gdb-configure.host)
==============================================================================
--- head/devel/gdb/files/patch-gdb-configure.host Fri Sep 29 14:11:33 2017 (r450893, copy source)
+++ head/devel/gdb/files/patch-gdb_configure.host Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,6 +1,4 @@
-diff --git gdb/configure.host gdb/configure.host
-index 48714f4..53989d3 100644
---- gdb/configure.host
+--- gdb/configure.host.orig 2017-09-14 09:28:17 UTC
+++ gdb/configure.host
@@ -90,6 +90,7 @@ alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
gdb_host=nbsd ;;
Copied and modified: head/devel/gdb/files/patch-gdb_corelow.c (from r450893, head/devel/gdb/files/patch-gdb-corelow.c)
==============================================================================
--- head/devel/gdb/files/patch-gdb-corelow.c Fri Sep 29 14:11:33 2017 (r450893, copy source)
+++ head/devel/gdb/files/patch-gdb_corelow.c Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,5 +1,5 @@
---- gdb/corelow.c.orig 2017-07-29 11:06:52.922688000 -0700
-+++ gdb/corelow.c 2017-07-29 11:07:23.883255000 -0700
+--- gdb/corelow.c.orig 2017-07-29 11:06:52 UTC
++++ gdb/corelow.c
@@ -517,7 +517,7 @@ get_core_register_section (struct regcache *regcache,
bool variable_size_section = (regset != NULL
&& regset->flags & REGSET_VARIABLE_SIZE);
Copied and modified: head/devel/gdb/files/patch-gdb_fbsd-nat.c (from r450893, head/devel/gdb/files/patch-gdb-fbsd-nat.c)
==============================================================================
--- head/devel/gdb/files/patch-gdb-fbsd-nat.c Fri Sep 29 14:11:33 2017 (r450893, copy source)
+++ head/devel/gdb/files/patch-gdb_fbsd-nat.c Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,6 +1,4 @@
-diff --git gdb/fbsd-nat.c gdb/fbsd-nat.c
-index ef5ad1ec92..dedb1ba59c 100644
---- gdb/fbsd-nat.c
+--- gdb/fbsd-nat.c.orig 2017-09-14 09:28:17 UTC
+++ gdb/fbsd-nat.c
@@ -682,6 +682,14 @@ fbsd_resume (struct target_ops *ops,
struct thread_info *tp;
Copied and modified: head/devel/gdb/files/patch-gdb_gdb__wchar.h (from r450893, head/devel/gdb/files/patch-gdb-gdb_wchar.h)
==============================================================================
--- head/devel/gdb/files/patch-gdb-gdb_wchar.h Fri Sep 29 14:11:33 2017 (r450893, copy source)
+++ head/devel/gdb/files/patch-gdb_gdb__wchar.h Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,6 +1,4 @@
-diff --git gdb/gdb_wchar.h gdb/gdb_wchar.h
-index 868fe04..1311080 100644
---- gdb/gdb_wchar.h
+--- gdb/gdb_wchar.h.orig 2017-09-14 09:28:17 UTC
+++ gdb/gdb_wchar.h
@@ -59,7 +59,7 @@
iconvlist. */
Copied and modified: head/devel/gdb/files/patch-gdb_gnulib_import_stddef.in.h (from r450893, head/devel/gdb/files/patch-gdb-gnulib-import-stddef.in.h)
==============================================================================
--- head/devel/gdb/files/patch-gdb-gnulib-import-stddef.in.h Fri Sep 29 14:11:33 2017 (r450893, copy source)
+++ head/devel/gdb/files/patch-gdb_gnulib_import_stddef.in.h Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,6 +1,4 @@
-diff --git gdb/gnulib/import/stddef.in.h gdb/gnulib/import/stddef.in.h
-index f4c4a1070d..023ea2064d 100644
---- gdb/gnulib/import/stddef.in.h
+--- gdb/gnulib/import/stddef.in.h.orig 2017-09-14 09:28:17 UTC
+++ gdb/gnulib/import/stddef.in.h
@@ -84,7 +84,7 @@
/* Some platforms lack max_align_t. The check for _GCC_MAX_ALIGN_T is
Copied and modified: head/devel/gdb/files/patch-gdb_i386-fbsd-nat.c (from r450893, head/devel/gdb/files/patch-gdb-i386-fbsd-nat.c)
==============================================================================
--- head/devel/gdb/files/patch-gdb-i386-fbsd-nat.c Fri Sep 29 14:11:33 2017 (r450893, copy source)
+++ head/devel/gdb/files/patch-gdb_i386-fbsd-nat.c Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,6 +1,4 @@
-diff --git gdb/i386-fbsd-nat.c gdb/i386-fbsd-nat.c
-index dca6c0162b..6629950feb 100644
---- gdb/i386-fbsd-nat.c
+--- gdb/i386-fbsd-nat.c 2017-09-14 09:28:17 UTC
+++ gdb/i386-fbsd-nat.c
@@ -163,7 +163,6 @@ _initialize_i386fbsd_nat (void)
t->to_read_description = i386fbsd_read_description;
Copied and modified: head/devel/gdb/files/patch-gdb_python_python-config.py (from r450893, head/devel/gdb/files/patch-gdb-python-python-config.py)
==============================================================================
--- head/devel/gdb/files/patch-gdb-python-python-config.py Fri Sep 29 14:11:33 2017 (r450893, copy source)
+++ head/devel/gdb/files/patch-gdb_python_python-config.py Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,6 +1,4 @@
-diff --git gdb/python/python-config.py gdb/python/python-config.py
-index c2b2969..39af8d9 100644
---- gdb/python/python-config.py
+--- gdb/python/python-config.py 2017-09-14 09:28:17 UTC
+++ gdb/python/python-config.py
@@ -59,6 +59,8 @@ for opt in opt_flags:
Copied and modified: head/devel/gdb/files/patch-include_libiberty.h (from r450893, head/devel/gdb/files/patch-libiberty-basename)
==============================================================================
--- head/devel/gdb/files/patch-libiberty-basename Fri Sep 29 14:11:33 2017 (r450893, copy source)
+++ head/devel/gdb/files/patch-include_libiberty.h Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,4 +1,4 @@
---- include/libiberty.h
+--- include/libiberty.h 2017-09-14 09:28:17 UTC
+++ include/libiberty.h
@@ -109,7 +109,7 @@
|| defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) \
Added: head/devel/gdb/files/patch-libiberty_configure
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/gdb/files/patch-libiberty_configure Fri Sep 29 14:49:58 2017 (r450895)
@@ -0,0 +1,12 @@
+--- libiberty/configure.orig 2017-09-12 12:10:11 UTC
++++ libiberty/configure
+@@ -4398,8 +4398,7 @@
+ ac_libiberty_warn_cflags=
+ save_CFLAGS="$CFLAGS"
+ for real_option in -W -Wall -Wwrite-strings -Wc++-compat \
+- -Wstrict-prototypes \
+- -Wshadow=local; do
++ -Wstrict-prototypes ; do
+ # Do the check with the no- prefix removed since gcc silently
+ # accepts any -Wno-* option on purpose
+ case $real_option in
Modified: head/devel/gdb/files/patch-nowarning
==============================================================================
--- head/devel/gdb/files/patch-nowarning Fri Sep 29 14:45:48 2017 (r450894)
+++ head/devel/gdb/files/patch-nowarning Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,5 +1,5 @@
---- gdb/arm-tdep.c.orig 2016-07-08 15:42:17.131392993 +0200
-+++ gdb/arm-tdep.c 2016-07-08 15:44:10.506386463 +0200
+--- gdb/arm-tdep.c.orig 2016-07-08 15:42:17 UTC
++++ gdb/arm-tdep.c
@@ -9880,7 +9880,7 @@
&& !INSN_RECORDED(arm_insn_r))
{
Modified: head/devel/gdb/files/patch-unified
==============================================================================
--- head/devel/gdb/files/patch-unified Fri Sep 29 14:45:48 2017 (r450894)
+++ head/devel/gdb/files/patch-unified Fri Sep 29 14:49:58 2017 (r450895)
@@ -1,6 +1,4 @@
-diff --git gdb/gdb.c gdb/gdb.c
-index e554015..dcb9925 100644
---- gdb/gdb.c
+--- gdb/gdb.c.orig 2017-09-14 09:28:17 UTC
+++ gdb/gdb.c
@@ -28,6 +28,12 @@ main (int argc, char **argv)
memset (&args, 0, sizeof args);
More information about the svn-ports-head
mailing list