diff options
author | rakuco <rakuco@FreeBSD.org> | 2013-09-02 06:31:44 +0800 |
---|---|---|
committer | rakuco <rakuco@FreeBSD.org> | 2013-09-02 06:31:44 +0800 |
commit | 565fea401d48f6bdae37fb931420eee2f0ee46b7 (patch) | |
tree | 65ea53a478e82d2958ff98740f0a9116596c7543 /devel | |
parent | bcd2bb56fd408f937805b9e89bbe46dc3b88e0e4 (diff) | |
download | freebsd-ports-gnome-565fea401d48f6bdae37fb931420eee2f0ee46b7.tar.gz freebsd-ports-gnome-565fea401d48f6bdae37fb931420eee2f0ee46b7.tar.zst freebsd-ports-gnome-565fea401d48f6bdae37fb931420eee2f0ee46b7.zip |
Enable PowerPC support.
The latest gdb, 7.6, brings native PowerPC FreeBSD support. We just need
enable it in ports.
There is a minor glitch which needs patching gdb itself. Namely,
ALL_TARGET_OBJ is missing ppcfbsd-tdep.o. This part is already sent
upstream.
PR: ports/178784
Submitted by: andreast
Approved by: Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/gdb/Makefile | 2 | ||||
-rw-r--r-- | devel/gdb/files/extrapatch-gdb-Makefile.in | 19 | ||||
-rw-r--r-- | devel/gdb/files/extrapatch-gdb-configure.tgt | 17 |
3 files changed, 29 insertions, 9 deletions
diff --git a/devel/gdb/Makefile b/devel/gdb/Makefile index 2be99ba3af56..d320dfd6df31 100644 --- a/devel/gdb/Makefile +++ b/devel/gdb/Makefile @@ -31,7 +31,7 @@ VER= ${PORTVERSION:S/.//g} PLIST_SUB= VER=${VER} MAN1= gdb${VER}.1 -ONLY_FOR_ARCHS= i386 amd64 # untested elsewhere, might work +ONLY_FOR_ARCHS= i386 amd64 powerpc powerpc64 # untested elsewhere, might work OPTIONS_DEFINE= DEBUG EXPAT PYTHON THREADS TUI GDB_LINK OPTIONS_SINGLE_READLINE= BASE_READLINE BUNDLED_READLINE PORT_READLINE diff --git a/devel/gdb/files/extrapatch-gdb-Makefile.in b/devel/gdb/files/extrapatch-gdb-Makefile.in index 6db1f36a359a..0e1632e6373a 100644 --- a/devel/gdb/files/extrapatch-gdb-Makefile.in +++ b/devel/gdb/files/extrapatch-gdb-Makefile.in @@ -1,9 +1,20 @@ ---- gdb/Makefile.in.orig 2012-07-02 17:29:33.000000000 +0200 -+++ gdb/Makefile.in 2012-08-26 21:01:45.589052997 +0200 -@@ -573,6 +573,7 @@ +--- gdb/Makefile.in.orig 2013-04-02 19:38:43.000000000 +0200 ++++ gdb/Makefile.in 2013-05-18 13:08:47.000000000 +0200 +@@ -566,8 +566,8 @@ + moxie-tdep.o \ + mt-tdep.o \ + nto-tdep.o \ +- ppc-linux-tdep.o ppcnbsd-tdep.o ppcobsd-tdep.o ppc-sysv-tdep.o \ +- ppc64-tdep.o rl78-tdep.o \ ++ ppc-linux-tdep.o ppcfbsd-tdep.o ppcnbsd-tdep.o ppcobsd-tdep.o \ ++ ppc-sysv-tdep.o ppc64-tdep.o rl78-tdep.o \ + rs6000-aix-tdep.o rs6000-tdep.o ppc-ravenscar-thread.o \ + rs6000-lynx178-tdep.o \ + rx-tdep.o \ +@@ -585,6 +585,7 @@ xtensa-config.o xtensa-tdep.o xtensa-linux-tdep.o \ glibc-tdep.o \ - bsd-uthread.o \ + bsd-uthread.o \ + fbsd-threads.o \ nbsd-tdep.o obsd-tdep.o \ sol2-tdep.o \ diff --git a/devel/gdb/files/extrapatch-gdb-configure.tgt b/devel/gdb/files/extrapatch-gdb-configure.tgt index 9b2b69877366..5b40cdfd4810 100644 --- a/devel/gdb/files/extrapatch-gdb-configure.tgt +++ b/devel/gdb/files/extrapatch-gdb-configure.tgt @@ -1,6 +1,6 @@ ---- 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 @@ +--- gdb/configure.tgt.orig 2013-03-05 14:37:10.000000000 +0100 ++++ gdb/configure.tgt 2013-05-18 13:11:06.000000000 +0200 +@@ -188,7 +188,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 \ @@ -9,7 +9,16 @@ ;; i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu) # Target: NetBSD/i386 -@@ -606,7 +606,7 @@ +@@ -398,7 +398,7 @@ + powerpc*-*-freebsd*) + # Target: FreeBSD/powerpc + gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \ +- ppcfbsd-tdep.o solib-svr4.o \ ++ ppcfbsd-tdep.o solib-svr4.o fbsd-threads.o \ + ravenscar-thread.o ppc-ravenscar-thread.o" + ;; + +@@ -650,7 +650,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 \ |