aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2012-08-24 10:54:50 +0800
committerbdrewery <bdrewery@FreeBSD.org>2012-08-24 10:54:50 +0800
commit26deaef64e387f56133ac6a5d98e70f00314730f (patch)
tree986c4023ac6d37056044fad5a26799686f3493e5
parent86f238b0e941d09527149685f0995f73f4521a06 (diff)
downloadfreebsd-ports-gnome-26deaef64e387f56133ac6a5d98e70f00314730f.tar.gz
freebsd-ports-gnome-26deaef64e387f56133ac6a5d98e70f00314730f.tar.zst
freebsd-ports-gnome-26deaef64e387f56133ac6a5d98e70f00314730f.zip
- Update to 7.5
- Remove patches integrated upstream PR: ports/170913 Submitted by: Luca Pizzammiglio <luca.pizzamiglio@gmail.com> (maintainer) Approved by: eadler (mentor)
-rw-r--r--devel/gdb/Makefile4
-rw-r--r--devel/gdb/distinfo4
-rw-r--r--devel/gdb/files/amd64bsd-nat.h38
-rw-r--r--devel/gdb/files/extrapatch-gdb-Makefile.in16
-rw-r--r--devel/gdb/files/extrapatch-gdb-configure.tgt16
-rw-r--r--devel/gdb/files/fbsd-threads.c8
-rw-r--r--devel/gdb/files/patch-gdb-Makefile.in20
-rw-r--r--devel/gdb/files/patch-gdb-amd64bsd-nat.c91
-rw-r--r--devel/gdb/files/patch-gdb-amd64fbsd-nat.c37
-rw-r--r--devel/gdb/files/patch-gdb-config-i386-fbsd64.mh10
-rw-r--r--devel/gdb/files/patch-gdb-configure11
-rw-r--r--devel/gdb/pkg-plist1
12 files changed, 28 insertions, 228 deletions
diff --git a/devel/gdb/Makefile b/devel/gdb/Makefile
index 8db05ec32c1b..09d9a9804ee1 100644
--- a/devel/gdb/Makefile
+++ b/devel/gdb/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= gdb
-PORTVERSION= 7.4.1
-PORTREVISION= 4
+PORTVERSION= 7.5
CATEGORIES= devel
MASTER_SITES= GNU
@@ -95,7 +94,6 @@ post-patch:
.if ${PORT_OPTIONS:MTHREADS}
@${CP} ${FILESDIR}/fbsd-threads.c ${WRKSRC}/gdb/
.endif
- @${CP} ${FILESDIR}/amd64bsd-nat.h ${WRKSRC}/gdb
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb ${PREFIX}/bin/gdb${VER}
diff --git a/devel/gdb/distinfo b/devel/gdb/distinfo
index b4c672bb5689..818ba3af5f2c 100644
--- a/devel/gdb/distinfo
+++ b/devel/gdb/distinfo
@@ -1,2 +1,2 @@
-SHA256 (gdb-7.4.1.tar.bz2) = a081343c017732ab4dd30a4730da83667aa01b0b37d1ad3700c3f05a5da0f9f6
-SIZE (gdb-7.4.1.tar.bz2) = 20619200
+SHA256 (gdb-7.5.tar.bz2) = d178c45c328369ae4f24f9a0ec53b7d009e2bfa1d41b7027280b24f58ae61932
+SIZE (gdb-7.5.tar.bz2) = 21327195
diff --git a/devel/gdb/files/amd64bsd-nat.h b/devel/gdb/files/amd64bsd-nat.h
deleted file mode 100644
index 4b517b840b20..000000000000
--- a/devel/gdb/files/amd64bsd-nat.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Native-dependent code for amd64 BSD's.
-
- Copyright (C) 2011 Free Software Foundation, Inc.
-
- This file is part of GDB.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef AMD64BSD_NAT_H
-#define AMD64BSD_NAT_H
-
-/* Create a prototype *BSD/amd64 target. The client can override it
- with local methods. */
-
-extern struct target_ops *amd64bsd_target (void);
-
-/* low level amd64 debug register functions used in amd64fbsd-nat.c. */
-
-extern void amd64bsd_dr_set_control (unsigned long control);
-
-extern void amd64bsd_dr_set_addr (int regnum, CORE_ADDR addr);
-
-extern void amd64bsd_dr_reset_addr (int regnum);
-
-extern unsigned long amd64bsd_dr_get_status (void);
-
-#endif /* amd64bsd-nat.h */
diff --git a/devel/gdb/files/extrapatch-gdb-Makefile.in b/devel/gdb/files/extrapatch-gdb-Makefile.in
index ed14d55468c1..1f06679e0068 100644
--- a/devel/gdb/files/extrapatch-gdb-Makefile.in
+++ b/devel/gdb/files/extrapatch-gdb-Makefile.in
@@ -1,6 +1,6 @@
---- gdb/Makefile.in.orig 2011-03-30 07:55:39.000000000 +0100
-+++ gdb/Makefile.in 2011-10-29 08:02:29.600973609 +0100
-@@ -571,7 +571,7 @@
+--- gdb/Makefile.in.orig 2012-07-02 17:29:33.000000000 +0200
++++ gdb/Makefile.in 2012-08-22 16:50:26.000000000 +0200
+@@ -572,7 +572,7 @@
xstormy16-tdep.o \
xtensa-config.o xtensa-tdep.o xtensa-linux-tdep.o \
glibc-tdep.o \
@@ -8,9 +8,9 @@
+ fbsd-threads.o \
nbsd-tdep.o obsd-tdep.o \
sol2-tdep.o \
- solib-frv.o solib-irix.o solib-svr4.o solib-target.o \
-@@ -782,7 +782,7 @@
- gnulib/stdint.in.h remote.h gdb.h sparc-nat.h \
+ solib-frv.o solib-irix.o solib-svr4.o \
+@@ -779,7 +779,7 @@
+ gnulib/import/stdint.in.h remote.h gdb.h sparc-nat.h \
gdbthread.h dwarf2-frame.h dwarf2-frame-tailcall.h nbsd-nat.h dcache.h \
amd64-nat.h s390-tdep.h arm-linux-tdep.h exceptions.h macroscope.h \
-gdbarch.h bsd-uthread.h gdb_stat.h memory-map.h memrange.h \
@@ -18,12 +18,12 @@
mdebugread.h m88k-tdep.h stabsread.h hppa-linux-offsets.h linux-fork.h \
ser-unix.h inf-ptrace.h terminal.h ui-out.h frame-base.h \
f-lang.h dwarf2loc.h value.h sparc-tdep.h defs.h target-descriptions.h \
-@@ -1452,7 +1452,7 @@
+@@ -1429,7 +1429,7 @@
armnbsd-nat.c armbsd-tdep.c armnbsd-tdep.c armobsd-tdep.c \
avr-tdep.c \
bfin-linux-tdep.c bfin-tdep.c \
- bsd-uthread.c bsd-kvm.c \
+ fbsd-threads.c bsd-kvm.c \
- core-regset.c corelow.c \
+ core-regset.c \
dcache.c dicos-tdep.c darwin-nat.c \
exec.c \
diff --git a/devel/gdb/files/extrapatch-gdb-configure.tgt b/devel/gdb/files/extrapatch-gdb-configure.tgt
index 71c875e8e063..9b2b69877366 100644
--- a/devel/gdb/files/extrapatch-gdb-configure.tgt
+++ b/devel/gdb/files/extrapatch-gdb-configure.tgt
@@ -1,20 +1,20 @@
---- gdb/configure.tgt.orig 2010-09-30 13:38:12.841406000 -0400
-+++ gdb/configure.tgt 2010-09-30 13:38:49.131127000 -0400
-@@ -169,7 +169,7 @@
+--- gdb/configure.tgt.orig 2012-08-01 21:48:44.000000000 +0200
++++ gdb/configure.tgt 2012-08-22 16:47:02.000000000 +0200
+@@ -176,7 +176,7 @@
i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
# Target: FreeBSD/i386
gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
-- bsd-uthread.o corelow.o solib.o solib-svr4.o"
-+ fbsd-threads.o corelow.o solib.o solib-svr4.o"
+- bsd-uthread.o solib-svr4.o"
++ fbsd-threads.o solib-svr4.o"
;;
i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
# Target: NetBSD/i386
-@@ -579,7 +579,7 @@
+@@ -606,7 +606,7 @@
# Target: FreeBSD/amd64
gdb_target_obs="amd64-tdep.o amd64fbsd-tdep.o i386-tdep.o \
i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
-- bsd-uthread.o corelow.o solib.o solib-svr4.o"
-+ fbsd-threads.o corelow.o solib.o solib-svr4.o"
+- bsd-uthread.o solib-svr4.o"
++ fbsd-threads.o solib-svr4.o"
;;
x86_64-*-mingw*)
# Target: MingW/amd64
diff --git a/devel/gdb/files/fbsd-threads.c b/devel/gdb/files/fbsd-threads.c
index cf33b641d888..21ebcb92fbe4 100644
--- a/devel/gdb/files/fbsd-threads.c
+++ b/devel/gdb/files/fbsd-threads.c
@@ -529,7 +529,7 @@ resume_thread_callback (const td_thrhandle_t *th_p, void *data)
static void
fbsd_thread_resume (struct target_ops *ops,
- ptid_t ptid, int step, enum target_signal signo)
+ ptid_t ptid, int step, enum gdb_signal signo)
{
struct target_ops *beneath = find_target_beneath (ops);
td_thrhandle_t th;
@@ -584,7 +584,7 @@ fbsd_thread_resume (struct target_ops *ops,
if (lwp)
{
int req = step ? PT_SETSTEP : PT_CLEARSTEP;
- if (ptrace (req, (pid_t) lwp, (caddr_t) 1, target_signal_to_host(signo)))
+ if (ptrace (req, (pid_t) lwp, (caddr_t) 1, gdb_signal_to_host(signo)))
perror_with_name ("PT_SETSTEP/PT_CLEARSTEP");
}
@@ -623,7 +623,7 @@ fbsd_thread_resume (struct target_ops *ops,
/* now continue the process, suspended thread wont run */
if (ptrace (PT_CONTINUE, proc_handle.pid , (caddr_t)1,
- target_signal_to_host(signo)))
+ gdb_signal_to_host(signo)))
perror_with_name ("PT_CONTINUE");
}
@@ -734,7 +734,7 @@ fbsd_thread_wait (struct target_ops *ops,
*/
attach_thread(ret, &th, &ti, 1);
}
- if (ourstatus->value.sig == TARGET_SIGNAL_TRAP)
+ if (ourstatus->value.sig == GDB_SIGNAL_TRAP)
check_event(ret);
/* this is a hack, if an event won't cause gdb to stop, for example,
SIGALRM, gdb resumes the process immediatly without setting
diff --git a/devel/gdb/files/patch-gdb-Makefile.in b/devel/gdb/files/patch-gdb-Makefile.in
deleted file mode 100644
index f352d0b57914..000000000000
--- a/devel/gdb/files/patch-gdb-Makefile.in
+++ /dev/null
@@ -1,20 +0,0 @@
---- gdb/Makefile.in.orig 2011-03-30 07:55:39.000000000 +0100
-+++ gdb/Makefile.in 2011-10-29 08:02:29.600973609 +0100
-@@ -758,7 +758,7 @@
- osf-share/cma_deb_core.h osf-share/AT386/cma_thread_io.h \
- osf-share/cma_sched.h proc-utils.h arm-tdep.h ax-gdb.h ppcnbsd-tdep.h \
- cli-out.h gdb_expat.h breakpoint.h infcall.h obsd-tdep.h \
--exec.h m32r-tdep.h osabi.h gdbcore.h solib-som.h \
-+exec.h m32r-tdep.h osabi.h gdbcore.h solib-som.h amd64bsd-nat.h \
- i386bsd-nat.h xml-support.h xml-tdesc.h alphabsd-tdep.h gdb_obstack.h \
- ia64-tdep.h ada-lang.h varobj.h frv-tdep.h nto-tdep.h serial.h \
- c-lang.h d-lang.h frame.h event-loop.h block.h cli/cli-setshow.h \
-@@ -1161,7 +1161,7 @@
- # Removing the old gdb first works better if it is running, at least on SunOS.
- gdb$(EXEEXT): gdb.o libgdb.a $(ADD_DEPS) $(CDEPS) $(TDEPLIBS)
- rm -f gdb$(EXEEXT)
-- $(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \
-+ $(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) -Wl,-E \
- -o gdb$(EXEEXT) gdb.o libgdb.a \
- $(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES)
-
diff --git a/devel/gdb/files/patch-gdb-amd64bsd-nat.c b/devel/gdb/files/patch-gdb-amd64bsd-nat.c
deleted file mode 100644
index dd488502a9ea..000000000000
--- a/devel/gdb/files/patch-gdb-amd64bsd-nat.c
+++ /dev/null
@@ -1,91 +0,0 @@
---- gdb/amd64bsd-nat.c.orig 2011-09-23 01:35:24.211306143 +0100
-+++ gdb/amd64bsd-nat.c 2011-09-23 01:28:28.444487431 +0100
-@@ -33,6 +33,7 @@
-
- #include "amd64-tdep.h"
- #include "amd64-nat.h"
-+#include "amd64bsd-nat.h"
- #include "inf-ptrace.h"
-
-
-@@ -126,3 +127,80 @@
- t->to_store_registers = amd64bsd_store_inferior_registers;
- return t;
- }
-+
-+
-+/* Support for debug registers. */
-+
-+#ifdef HAVE_PT_GETDBREGS
-+
-+/* 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])
-+#endif
-+
-+static void
-+amd64bsd_dr_set (int regnum, unsigned long value)
-+{
-+ struct dbreg dbregs;
-+
-+ if (ptrace (PT_GETDBREGS, PIDGET (inferior_ptid),
-+ (PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
-+ perror_with_name (_("Couldn't get debug registers"));
-+
-+ /* For some mysterious reason, some of the reserved bits in the
-+ debug control register get set. Mask these off, otherwise the
-+ ptrace call below will fail. */
-+ DBREG_DRX ((&dbregs), 7) &= ~(0x0000fc00);
-+
-+ DBREG_DRX ((&dbregs), regnum) = value;
-+
-+ if (ptrace (PT_SETDBREGS, PIDGET (inferior_ptid),
-+ (PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
-+ perror_with_name (_("Couldn't write debug registers"));
-+}
-+
-+void
-+amd64bsd_dr_set_control (unsigned long control)
-+{
-+ amd64bsd_dr_set (7, control);
-+}
-+
-+void
-+amd64bsd_dr_set_addr (int regnum, CORE_ADDR addr)
-+{
-+ gdb_assert (regnum >= 0 && regnum <= 4);
-+
-+ amd64bsd_dr_set (regnum, addr);
-+}
-+
-+void
-+amd64bsd_dr_reset_addr (int regnum)
-+{
-+ gdb_assert (regnum >= 0 && regnum <= 4);
-+
-+ amd64bsd_dr_set (regnum, 0);
-+}
-+
-+unsigned long
-+amd64bsd_dr_get_status (void)
-+{
-+ struct dbreg dbregs;
-+
-+ /* FIXME: kettenis/2001-03-31: Calling perror_with_name if the
-+ ptrace call fails breaks debugging remote targets. The correct
-+ way to fix this is to add the hardware breakpoint and watchpoint
-+ stuff to the target vector. For now, just return zero if the
-+ ptrace call fails. */
-+ if (ptrace (PT_GETDBREGS, PIDGET (inferior_ptid),
-+ (PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
-+#if 0
-+ perror_with_name (_("Couldn't read debug registers"));
-+#else
-+ return 0;
-+#endif
-+
-+ return DBREG_DRX ((&dbregs), 6);
-+}
-+
-+#endif /* PT_GETDBREGS */
diff --git a/devel/gdb/files/patch-gdb-amd64fbsd-nat.c b/devel/gdb/files/patch-gdb-amd64fbsd-nat.c
index 12723c3af44b..42e1ccfdc9fd 100644
--- a/devel/gdb/files/patch-gdb-amd64fbsd-nat.c
+++ b/devel/gdb/files/patch-gdb-amd64fbsd-nat.c
@@ -1,6 +1,6 @@
---- gdb/amd64fbsd-nat.c.orig 2010-02-03 15:30:25.000000000 +0000
-+++ gdb/amd64fbsd-nat.c 2011-09-23 03:08:51.942111416 +0100
-@@ -27,6 +27,7 @@
+--- gdb/amd64fbsd-nat.c.orig 2012-02-09 17:06:44.000000000 +0100
++++ gdb/amd64fbsd-nat.c 2012-08-22 23:51:38.000000000 +0200
+@@ -26,6 +26,7 @@
#include <signal.h>
#include <stddef.h>
#include <sys/types.h>
@@ -8,16 +8,7 @@
#include <sys/ptrace.h>
#include <sys/sysctl.h>
#include <machine/reg.h>
-@@ -34,6 +35,8 @@
- #include "fbsd-nat.h"
- #include "amd64-tdep.h"
- #include "amd64-nat.h"
-+#include "amd64bsd-nat.h"
-+#include "i386-nat.h"
-
-
- /* Offset in `struct reg' where MEMBER is stored. */
-@@ -92,6 +95,47 @@
+@@ -93,6 +94,47 @@
};
@@ -65,23 +56,3 @@
/* Support for debugging kernel virtual memory images. */
#include <sys/types.h>
-@@ -155,6 +199,19 @@
-
- /* Add some extra features to the common *BSD/i386 target. */
- t = amd64bsd_target ();
-+
-+#ifdef HAVE_PT_GETDBREGS
-+
-+ i386_use_watchpoints (t);
-+
-+ i386_dr_low.set_control = amd64bsd_dr_set_control;
-+ i386_dr_low.set_addr = amd64bsd_dr_set_addr;
-+ i386_dr_low.reset_addr = amd64bsd_dr_reset_addr;
-+ i386_dr_low.get_status = amd64bsd_dr_get_status;
-+ i386_set_debug_register_length (8);
-+
-+#endif /* HAVE_PT_GETDBREGS */
-+
- t->to_pid_to_exec_file = fbsd_pid_to_exec_file;
- t->to_find_memory_regions = fbsd_find_memory_regions;
- t->to_make_corefile_notes = fbsd_make_corefile_notes;
diff --git a/devel/gdb/files/patch-gdb-config-i386-fbsd64.mh b/devel/gdb/files/patch-gdb-config-i386-fbsd64.mh
deleted file mode 100644
index 80f5becb3dea..000000000000
--- a/devel/gdb/files/patch-gdb-config-i386-fbsd64.mh
+++ /dev/null
@@ -1,10 +0,0 @@
---- gdb/config/i386/fbsd64.mh.orig 2011-09-23 03:15:43.254648862 +0100
-+++ gdb/config/i386/fbsd64.mh 2011-09-23 03:14:06.843804785 +0100
-@@ -1,6 +1,6 @@
- # Host: FreeBSD/amd64
- NATDEPFILES= fork-child.o inf-ptrace.o \
-- fbsd-nat.o amd64-nat.o amd64bsd-nat.o amd64fbsd-nat.o \
-+ fbsd-nat.o i386-nat.o amd64-nat.o amd64bsd-nat.o amd64fbsd-nat.o \
- bsd-kvm.o
-
- LOADLIBES= -lkvm
diff --git a/devel/gdb/files/patch-gdb-configure b/devel/gdb/files/patch-gdb-configure
deleted file mode 100644
index 2b9cf049470b..000000000000
--- a/devel/gdb/files/patch-gdb-configure
+++ /dev/null
@@ -1,11 +0,0 @@
---- gdb/configure.orig 2012-01-24 16:59:13.000000000 +0100
-+++ gdb/configure 2012-01-24 16:59:40.000000000 +0100
-@@ -15294,7 +15294,7 @@
- OLD_LDFLAGS=$LDFLAGS
- OLD_LIBS=$LIBS
- CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
--LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
-+LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
- intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
- # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
- if test "$plugins" = "yes"; then
diff --git a/devel/gdb/pkg-plist b/devel/gdb/pkg-plist
index 775051a71165..2d51a35aba0d 100644
--- a/devel/gdb/pkg-plist
+++ b/devel/gdb/pkg-plist
@@ -8,6 +8,7 @@ bin/gdbtui%%VER%%
%%PYTHON%%share/gdb%%VER%%/python/gdb/command/__init__.py
%%PYTHON%%share/gdb%%VER%%/python/gdb/command/pretty_printers.py
%%PYTHON%%share/gdb%%VER%%/python/gdb/command/prompt.py
+%%PYTHON%%share/gdb%%VER%%/python/gdb/command/explore.py
%%PYTHON%%@dirrm share/gdb%%VER%%/python/gdb/command
%%PYTHON%%@dirrm share/gdb%%VER%%/python/gdb
%%PYTHON%%@dirrm share/gdb%%VER%%/python