summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2010-05-21 16:03:55 +0000
committerFabian Groffen <grobian@gentoo.org>2010-05-21 16:03:55 +0000
commitafb5a111b9e1942e00d96b00ac359bae79dd3c2e (patch)
tree2bc521adf4410fee18b89025cd5acd902fd1e520 /sys-devel/gdb-apple
parentVersion bump. (diff)
downloadhistorical-afb5a111b9e1942e00d96b00ac359bae79dd3c2e.tar.gz
historical-afb5a111b9e1942e00d96b00ac359bae79dd3c2e.tar.bz2
historical-afb5a111b9e1942e00d96b00ac359bae79dd3c2e.zip
Version bump to Developer Tools 3.2.2 version
Package-Manager: portage-2.2.00.15842-prefix/cvs/Darwin powerpc
Diffstat (limited to 'sys-devel/gdb-apple')
-rw-r--r--sys-devel/gdb-apple/ChangeLog8
-rw-r--r--sys-devel/gdb-apple/Manifest5
-rw-r--r--sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch147
-rw-r--r--sys-devel/gdb-apple/gdb-apple-1461.ebuild62
4 files changed, 220 insertions, 2 deletions
diff --git a/sys-devel/gdb-apple/ChangeLog b/sys-devel/gdb-apple/ChangeLog
index 250486663204..39dc2634c479 100644
--- a/sys-devel/gdb-apple/ChangeLog
+++ b/sys-devel/gdb-apple/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-devel/gdb-apple
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb-apple/ChangeLog,v 1.7 2010/03/05 16:25:26 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb-apple/ChangeLog,v 1.8 2010/05/21 16:03:55 grobian Exp $
+
+*gdb-apple-1461 (21 May 2010)
+
+ 21 May 2010; Fabian Groffen <grobian@gentoo.org> +gdb-apple-1461.ebuild,
+ +files/gdb-apple-1461-darwin8.patch:
+ Version bump to Developer Tools 3.2.2 version
05 Mar 2010; Fabian Groffen <grobian@gentoo.org> gdb-apple-563.ebuild,
gdb-apple-768-r1.ebuild, gdb-apple-960.ebuild, gdb-apple-962.ebuild,
diff --git a/sys-devel/gdb-apple/Manifest b/sys-devel/gdb-apple/Manifest
index a9cc5f8d53b7..a7b3b241b61e 100644
--- a/sys-devel/gdb-apple/Manifest
+++ b/sys-devel/gdb-apple/Manifest
@@ -1,4 +1,5 @@
AUX gdb-apple-1344-darwin8.patch 3606 RMD160 3ddc2282691ba368a18998bfa5958d7e376bb6c8 SHA1 67f4362479e15a4717cf4b70a9562bc77b4fc182 SHA256 e7be79bc996f17f11b8332c8a6f6b574c35e3343647c0b8b913d9c142302ebba
+AUX gdb-apple-1461-darwin8.patch 3622 RMD160 cfaea36a561dc8dabb05ec79e9e5fee48d55078c SHA1 373ab6ff237c55e6f89c732fe95629dc1c495dff SHA256 eb89f2a37c30b60dfc5c9d4de712dbafd2655255aad20add9ad7a389cdd78275
AUX gdb-apple-563-darwin7.patch 3329 RMD160 e6192a08fdd01bdf34f12455a66e7195e2ba9fda SHA1 d5afb3aa2970b22ddd60bb1704a75699bbb3401d SHA256 7d20fb2e241060f220a179a14d14a0062528ddee1ec60ce213ea80a1b85e8921
AUX gdb-apple-563-no-64bit.patch 767 RMD160 629ef816ec94f95879c161daef4a1a5148e19cb4 SHA1 5a4a886f55498064ca47f4456cdc6f53b8832eaa SHA256 3eb672bb4bc08d74f01bd33008140177b9906fc06969852d013ee9440a8d6c97
AUX gdb-apple-768-darwin-arch.patch 571 RMD160 c5c0420a96e9ca186e098b44a7d7de34b0571d96 SHA1 143cfddfb451141d6530737b5dd2d4a6042f385d SHA256 afd10f60857900824fb36d3109e2c4fa0c87ca95fab1c4411cd8316d3d566ab6
@@ -8,6 +9,7 @@ AUX gdb-apple-962-darwin8.patch 402 RMD160 240ee95585a819ec0b10147a55a3a053713db
AUX gdb-apple-962-demangle.patch 708 RMD160 265da82c589bc321c7d38680db05b1af174d2277 SHA1 d9f614d7282d3c8cd9b019e76506be2c75c2d0f1 SHA256 35d10612776db1cae9aca99ba72973ab1c6629dd6a9f1d16f1ec8322684c26ab
DIST gdb-1344.tar.gz 17916770 RMD160 9e21209fe0243a9011e636c7c3b1a80f74cf90f2 SHA1 8287721341456523405c831ec9d83e539f1d8f06 SHA256 96c37c4bd4e8446e7f22411ca3972ccb240e5cfc256fe0593b012f12fdbcb7a1
DIST gdb-1346.tar.gz 17913352 RMD160 c197c1958e0f7b1e714d02719f6c03cd9aaad36c SHA1 b32be464a1af1c5ab740ca6f9ce6361000ff6e89 SHA256 1bda1693366e052150ce680d80a81df70cb8e61fe29fb3f9f3556e52ae141387
+DIST gdb-1461.2.tar.gz 17951571 RMD160 808c4ec8c07de0fcf791bf1dd210e46ff9ea1236 SHA1 32ad338b729b69a7933ec332e64de4946af7e603 SHA256 91d8cdbcd9cf36377d9c2d425921141085b5c79a6dce312a3dc0b6960f8e02f9
DIST gdb-563.tar.gz 17130626 RMD160 cbefa5b829e4e70685cf77c9a0e2171f243cc463 SHA1 913f19713a1bc5de4f96ee2920314e7caad31ac5 SHA256 a41177e2edbac8982e01ca01dbd52bef65bd1604fb3a65278dd0f44509bb7179
DIST gdb-768.tar.gz 17727326 RMD160 b61164d22e9e9b4f9f0ee2bb20129e8e06531b04 SHA1 adeffd19caf9270a9a297633f716e6485ebc8536 SHA256 2342cbbf7c57dcc08011736c9823d5ca374156666ba73c4b67d9984ed944f24d
DIST gdb-960.tar.gz 17875803 RMD160 d14638dfda8578110d9525723344665f816d73b1 SHA1 ec4afa508ae451b07c9e1307a2b8eb6212102c46 SHA256 921cb5317b934008bd5f7669cca811a0377c40b779277e9326198f4919f22d97
@@ -15,10 +17,11 @@ DIST gdb-962.tar.gz 17876280 RMD160 53380455ed7c91c4564091f1564926a76ccd4840 SHA
DIST gdb-966.tar.gz 17769429 RMD160 427db15223ea2cf09d1d77d9bf80a3fc7bb952be SHA1 0391e88d14e52446c68140d8f05b5cbc01ae17f4 SHA256 fc51d13dd4153e4ac6140fa5199699dc26387189fb0e37277bb50944410a445f
EBUILD gdb-apple-1344.ebuild 1713 RMD160 4f3d50531ffabd7cedee9f2f390ea52c8a30b075 SHA1 dabf7a75452a5822fc242ced28d2b0f9dfff6b50 SHA256 0523eac112098b4fd9a0c6d147063e3ddeaab91acc5682642e2d313239d49a8f
EBUILD gdb-apple-1346.ebuild 1715 RMD160 bd0935e7e4475825e08dbd4fa9dbd2a8e897de29 SHA1 26ad1f542e34fdbfcfabfb16aee8de872b533fdc SHA256 927b554c84002e5c840649931091098547063df564940b1e4fd40c9f908181cf
+EBUILD gdb-apple-1461.ebuild 1738 RMD160 f594f27f01cbb4a81b72fd502382c3af1562159f SHA1 6d52daf1edcdbfd5d8540c071421823d0b0bebf1 SHA256 64d8813aae1eeb256e2f5ac46880d52f171b0ad250509d103c8dbdde6a94411d
EBUILD gdb-apple-563.ebuild 1245 RMD160 9fd8e67e6a70dde0fd64e712b9ee4def7ab3810d SHA1 d7352f0427ac1909c120f7bbe4cb9c20af29d789 SHA256 2b10acd7ede1a5cbbad076f3951e1b26f1090d7b5541eb778c6404716146693f
EBUILD gdb-apple-768-r1.ebuild 1200 RMD160 73607f6f2243be5404bbc062e0d4ac7848ae9f99 SHA1 cdac2d3619f0319a662a71f6050c0758354cb515 SHA256 9b2901740f47dd3878dd9b3c9a211e9dc3bb038729d0b4e29b82be3e00a7cae9
EBUILD gdb-apple-960.ebuild 1216 RMD160 79552138d77808d2b62ce6d359bb8ef5136ff8ed SHA1 f14bab1da6908b695455432161bf7ca72a24c918 SHA256 6c96cda74e7c998f57e0fab2b0257f7eea5b788c5977345bffd8ec1522d9d9cd
EBUILD gdb-apple-962.ebuild 1816 RMD160 fe70183e9312f9b55ff46ee33dad772ec350d76a SHA1 ba6e89c48a4ea6167be6608843a1b52e972162c4 SHA256 fe82dbe3024422bc3477c0b9c3ce6cd55f0f7d84a23f2275546afe94bf52ce83
EBUILD gdb-apple-966.ebuild 1820 RMD160 4373222a90ed6e35a9ec6a0b50604a4495f000a0 SHA1 186b53299ba1f74938324b1d2c689a7135c02292 SHA256 39b67161814637968e7089dfb0cdf6c07e89b366db75e89f4cfae67eb1e1b81c
-MISC ChangeLog 3454 RMD160 d27736d60d659e198fe05d10221413ea3ec8a9f3 SHA1 86d218b26e60bd820c023ca4670e2c0b0e6d3bd1 SHA256 59b5c2265c12932555450ba695a5965dabd52a3c9af076fd346649688efb93fa
+MISC ChangeLog 3648 RMD160 0533005eacf9d7a6093c7e377adc3631c7d1ab57 SHA1 5fb1040e4d1efd1ace5d1d4a101a69770d1f2c5c SHA256 17089b0f53cb8ea6499509c1ea6b211b635983c72f9a1ef790c4386dc7b2586c
MISC metadata.xml 160 RMD160 baab82f4bc435813cfde4796d42840882a9a4f8f SHA1 144e248704973cfad031c92a930aad01a62a2fda SHA256 27667dd7db1d188c12342624ec5ff2155717821d646e442aef9a691c65539ac4
diff --git a/sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch b/sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch
new file mode 100644
index 000000000000..93aded6e2e8b
--- /dev/null
+++ b/sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch
@@ -0,0 +1,147 @@
+--- gdb-1461.2/src/gdb/macosx/macosx-nat-dyld.c
++++ gdb-1461.2/src/gdb/macosx/macosx-nat-dyld.c
+@@ -731,7 +731,7 @@
+ {
+ #if !defined (TASK_DYLD_INFO) || !defined (NM_NEXTSTEP)
+ return 0;
+-#endif
++#else
+
+ if (target_is_remote () || value == NULL)
+ return 0;
+@@ -791,6 +791,7 @@
+ }
+ #endif /* NM_NEXTSTEP */
+ return 0;
++#endif
+ }
+
+ /* Searches the target address space for dyld itself, returning it in
+--- gdb-1461.2/src/gdb/macosx/macosx-nat-inferior.c
++++ gdb-1461.2/src/gdb/macosx/macosx-nat-inferior.c
+@@ -60,13 +60,17 @@
+ #include <sys/sysctl.h>
+ #include <sys/proc.h>
+ #include <mach/mach_error.h>
++#if defined(TARGET_ARM)
+ #include <spawn.h>
++#endif
+
+ #include <semaphore.h>
+
+ #include <dlfcn.h>
++#if 0
+ #include <libproc.h>
+ #include <sys/proc_info.h>
++#endif
+
+ #include "macosx-nat-dyld.h"
+ #include "macosx-nat-inferior.h"
+--- gdb-1461.2/src/gdb/macosx/macosx-nat-info.c
++++ gdb-1461.2/src/gdb/macosx/macosx-nat-info.c
+@@ -45,6 +45,22 @@
+ #include "macosx-nat-inferior.h"
+ #include "macosx-nat-inferior-debug.h"
+
++#ifdef __ppc__
++#ifndef __darwin_ppc_thread_state
++#define __darwin_ppc_thread_state ppc_thread_state
++#define __r0 r0
++#define __srr0 srr0
++#define __srr1 srr1
++#define __cr cr
++#define __xer xer
++#define __lr lr
++#define __ctr ctr
++#endif
++#ifndef __darwin_ppc_exception_state
++#define __darwin_ppc_exception_state ppc_exception_state
++#endif
++#endif
++
+ extern macosx_inferior_status *macosx_status;
+
+ #define CHECK_ARGS(what, args) \
+--- gdb-1461.2/src/gdb/macosx/macosx-nat-infthread.c
++++ gdb-1461.2/src/gdb/macosx/macosx-nat-infthread.c
+@@ -36,8 +36,10 @@
+ #include <sys/dir.h>
+ #include <inttypes.h>
+
++#if 0
+ #include <libproc.h>
+ #include <sys/proc_info.h>
++#endif
+
+ #include "macosx-nat-inferior.h"
+ #include "macosx-nat-inferior-util.h"
+--- gdb-1461.2/src/gdb/macosx/macosx-tdep.c
++++ gdb-1461.2/src/gdb/macosx/macosx-tdep.c
+@@ -63,7 +63,6 @@
+ #include "gdbcore.h"
+
+ #include <dirent.h>
+-#include <libgen.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/param.h>
+--- gdb-1461.2/src/gdb/remote.c
++++ gdb-1461.2/src/gdb/remote.c
+@@ -62,7 +62,6 @@
+ #include "macosx-nat-dyld.h"
+ #include "macosx-nat-dyld-process.h"
+ #endif
+-#include <execinfo.h>
+
+ /* Prototypes for local functions. */
+ static void cleanup_sigint_signal_handler (void *dummy);
+@@ -474,11 +473,13 @@
+ static void
+ remote_backtrace_self (const char *message)
+ {
++#if 0
+ void *bt_buffer[100];
+ int count = backtrace (bt_buffer, 100);
+ if (message && message[0])
+ fprintf_filtered (gdb_stderr, "%s", message);
+ backtrace_symbols_fd (bt_buffer, count, STDERR_FILENO);
++#endif
+ }
+
+ static void
+--- gdb-1461.2/src/gdb/symfile.c
++++ gdb-1461.2/src/gdb/symfile.c
+@@ -67,7 +67,6 @@
+ #include <ctype.h>
+ #include <time.h>
+ #include <sys/time.h>
+-#include <libgen.h>
+
+ #include <sys/mman.h>
+
+--- gdb-1461.2/src/gdb/utils.c
++++ gdb-1461.2/src/gdb/utils.c
+@@ -27,7 +27,6 @@
+ #include "gdb_string.h"
+ #include "event-top.h"
+ #include "exceptions.h"
+-#include <execinfo.h>
+
+ #ifdef TUI
+ #include "tui/tui.h" /* For tui_get_command_dimension. */
+@@ -874,6 +873,7 @@
+ target_terminal_ours ();
+ begin_line ();
+
++#if 0
+ /* APPLE LOCAL: Do a stack crawl of how we got here so we're more likely
+ to get useful bug reports. */
+ {
+@@ -882,6 +882,7 @@
+ fprintf (stderr, "gdb stack crawl at point of internal error:\n");
+ backtrace_symbols_fd (bt_buffer, count, STDERR_FILENO);
+ }
++#endif
+
+ /* Create a string containing the full error/warning message. Need
+ to call query with this full string, as otherwize the reason
diff --git a/sys-devel/gdb-apple/gdb-apple-1461.ebuild b/sys-devel/gdb-apple/gdb-apple-1461.ebuild
new file mode 100644
index 000000000000..4e45db0f5af0
--- /dev/null
+++ b/sys-devel/gdb-apple/gdb-apple-1461.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb-apple/gdb-apple-1461.ebuild,v 1.1 2010/05/21 16:03:55 grobian Exp $
+
+EAPI="3"
+
+inherit eutils flag-o-matic
+
+APPLE_PV=${PV}.2
+DESCRIPTION="Apple branch of the GNU Debugger, Developer Tools 3.2.2"
+HOMEPAGE="http://sources.redhat.com/gdb/"
+SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/gdb-${APPLE_PV}.tar.gz"
+
+LICENSE="APSL-2 GPL-2"
+SLOT="0"
+
+KEYWORDS="~ppc-macos ~x64-macos ~x86-macos"
+
+IUSE="nls"
+
+RDEPEND=">=sys-libs/ncurses-5.2-r2
+ =dev-db/sqlite-3*"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/gdb-${APPLE_PV}/src
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-768-texinfo.patch
+ [[ ${CHOST} == *-darwin8 ]] && epatch "${FILESDIR}"/${P}-darwin8.patch
+
+ # for FSF gcc / gcc-apple:42
+ sed -e 's/-Wno-long-double//' -i gdb/config/*/macosx.mh
+}
+
+src_configure() {
+ replace-flags -O? -O2
+ econf \
+ --disable-werror \
+ $(use_enable nls) \
+ || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" libdir=/nukeme includedir=/nukeme install || die
+ rm -R "${D}"/nukeme || die
+ rm -Rf "${ED}"/usr/${CHOST} || die
+ mv "${ED}"/usr/bin/gdb ${ED}/
+ rm -f "${ED}"/usr/bin/*
+ mv "${ED}"/gdb "${ED}"/usr/bin/
+}
+
+pkg_postinst() {
+ if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -ge 9 ]] ; then
+ ewarn "Due to increased security measures in 10.5 and up, gdb is"
+ ewarn "not able to get a mach task port when installed by Prefix"
+ ewarn "Portage, unprivileged. To make gdb fully functional you'll"
+ ewarn "have to perform the following steps:"
+ ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
+ ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
+ fi
+}