summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2011-04-03 09:52:07 +0000
committerFabian Groffen <grobian@gentoo.org>2011-04-03 09:52:07 +0000
commit7bacfa0df460b1dbc55f6f0c45609225cf551423 (patch)
tree4e1bcdcc89e83b4672727b26ff404991da7d5006 /sys-devel/gdb-apple
parentRev bump, bug #346537. Mention nfs-utils in elog for NFS mounts, bug 163210 r... (diff)
downloadhistorical-7bacfa0df460b1dbc55f6f0c45609225cf551423.tar.gz
historical-7bacfa0df460b1dbc55f6f0c45609225cf551423.tar.bz2
historical-7bacfa0df460b1dbc55f6f0c45609225cf551423.zip
Version bump to version from Developer Tools 4.0
Package-Manager: portage-2.2.01.18213-prefix/cvs/Darwin powerpc
Diffstat (limited to 'sys-devel/gdb-apple')
-rw-r--r--sys-devel/gdb-apple/ChangeLog11
-rw-r--r--sys-devel/gdb-apple/Manifest16
-rw-r--r--sys-devel/gdb-apple/files/gdb-apple-1518-darwin8.patch211
-rw-r--r--sys-devel/gdb-apple/files/gdb-apple-1518-task_dyld_info.patch22
-rw-r--r--sys-devel/gdb-apple/gdb-apple-1518.ebuild62
5 files changed, 319 insertions, 3 deletions
diff --git a/sys-devel/gdb-apple/ChangeLog b/sys-devel/gdb-apple/ChangeLog
index 8eff0537dd99..a8da67ad9922 100644
--- a/sys-devel/gdb-apple/ChangeLog
+++ b/sys-devel/gdb-apple/ChangeLog
@@ -1,6 +1,13 @@
# 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.9 2010/05/23 13:40:00 grobian Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb-apple/ChangeLog,v 1.10 2011/04/03 09:52:07 grobian Exp $
+
+*gdb-apple-1518 (03 Apr 2011)
+
+ 03 Apr 2011; Fabian Groffen <grobian@gentoo.org> +gdb-apple-1518.ebuild,
+ +files/gdb-apple-1518-darwin8.patch,
+ +files/gdb-apple-1518-task_dyld_info.patch:
+ Version bump to version from Developer Tools 4.0
23 May 2010; Fabian Groffen <grobian@gentoo.org> gdb-apple-1461.ebuild,
+files/gdb-apple-no-global-gdbinit.patch:
diff --git a/sys-devel/gdb-apple/Manifest b/sys-devel/gdb-apple/Manifest
index 109dbc61d146..06cffbd757cc 100644
--- a/sys-devel/gdb-apple/Manifest
+++ b/sys-devel/gdb-apple/Manifest
@@ -1,6 +1,11 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX gdb-apple-1344-darwin8.patch 3606 RMD160 3ddc2282691ba368a18998bfa5958d7e376bb6c8 SHA1 67f4362479e15a4717cf4b70a9562bc77b4fc182 SHA256 e7be79bc996f17f11b8332c8a6f6b574c35e3343647c0b8b913d9c142302ebba
AUX gdb-apple-1461-darwin8.patch 3206 RMD160 b4db4831a5b8450d211ee0f927c027a7ce0043ee SHA1 00f590d06871411f2fae8f282d6dedd43a6000d8 SHA256 5af99b9785a5edc8a649c63b33f68b3c5f56887c3058c2d323ffebcb43e96a4c
AUX gdb-apple-1461-dyld-info.patch 503 RMD160 5243ff1ffbcc4fe9f5c066ea6ebd7fce6cb34991 SHA1 d7e34f42c747a65ccaf181bd69020b18d6d6a0cd SHA256 d0a1cf51ca0c8699a7fc06bd64e1765c4612a20a87acbcf24a98d0fb1bb6f4b1
+AUX gdb-apple-1518-darwin8.patch 5116 RMD160 5532950a1ca3318d7bee337aee26821559539378 SHA1 06bd226a96e1d2ffd411928c65c188393c06604b SHA256 dfd916f032f10823890bc7c2af85d152e747f3b3069746af060254bb45d3a5ff
+AUX gdb-apple-1518-task_dyld_info.patch 557 RMD160 629aaa17f774857c1e4d99647ff7cb834bbfd51c SHA1 3e65826cca84b822bcb222073719c35ff186acad SHA256 bc7e754ef5eb8a8a285d9ed8ec0d3476297c13456e6f76c887c4a848c4049ecb
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
@@ -12,6 +17,7 @@ AUX gdb-apple-no-global-gdbinit.patch 714 RMD160 a5ed9c68353ad3f037d7f35cd88a4ae
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-1518.tar.gz 17966113 RMD160 723dccbca46ef336a36ab2576b2aa0ec56baacd4 SHA1 0e331fba34e1646b4c795d0d9f4c3c8612c5bd48 SHA256 c3050f0be9cb60d86ffc5fd174da78bf986511a442526ef8b0eec1e77161f607
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
@@ -20,10 +26,18 @@ DIST gdb-966.tar.gz 17769429 RMD160 427db15223ea2cf09d1d77d9bf80a3fc7bb952be SHA
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 1871 RMD160 c20e8bd10d2e02623fb6f769a47fdbafbf4fe836 SHA1 d6e4a83454bb271ef141694798115b76b55abffe SHA256 0ed783c9d8d17b8cf6195cd0e94b8db89bcf1863875c9a006317c3f367a8094e
+EBUILD gdb-apple-1518.ebuild 1784 RMD160 ceea0fe674dcd2af6a78f74a36eb2643fca00507 SHA1 0808d1a91c859ed1862bd2a1ff44beb32b9c752b SHA256 6ed2e324aebd22ddecae14a7299761046931f509ae645b6f46b4aa5c33385c6a
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 4256 RMD160 354713f022911c15172b101d11d11e7675bd19c7 SHA1 193724c6715a90d2eafe4b882cd2b686c1555d2b SHA256 763158aedd400d4f8ddd109c23f64ca656a1d73e1fed77094b9983d6dda9d8c8
+MISC ChangeLog 4500 RMD160 286cea9e54f858dc319b1e5ce5d1ed038260ee19 SHA1 bede319f932bdbd6f4a7e9925af8f645674a1c06 SHA256 6a13240fb7b6292678ba644813cf6636e7a236458d30d79be4240d75a1fa9951
MISC metadata.xml 160 RMD160 baab82f4bc435813cfde4796d42840882a9a4f8f SHA1 144e248704973cfad031c92a930aad01a62a2fda SHA256 27667dd7db1d188c12342624ec5ff2155717821d646e442aef9a691c65539ac4
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (Darwin)
+
+iEYEARECAAYFAk2YQu0ACgkQX3X2B8XHTomE3wCcDIarxOKz37Yyms0j2md1VF0i
+ZBYAn0p3BaSpmADYaVGKr9a1/xErUwxK
+=bDfp
+-----END PGP SIGNATURE-----
diff --git a/sys-devel/gdb-apple/files/gdb-apple-1518-darwin8.patch b/sys-devel/gdb-apple/files/gdb-apple-1518-darwin8.patch
new file mode 100644
index 000000000000..171b7711b2ed
--- /dev/null
+++ b/sys-devel/gdb-apple/files/gdb-apple-1518-darwin8.patch
@@ -0,0 +1,211 @@
+--- src/gdb/macosx/macosx-nat-inferior.c
++++ 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"
+@@ -2692,6 +2692,7 @@
+ if (tp->private == NULL || tp->private->app_thread_port == 0)
+ return NULL;
+
++#ifdef THREAD_IDENTIFIER_INFO_COUNT
+ thread_identifier_info_data_t tident;
+ unsigned int info_count;
+ kern_return_t kret;
+@@ -2719,6 +2720,7 @@
+ }
+ }
+ }
++#endif
+ return buf;
+ }
+
+--- src/gdb/macosx/macosx-nat-info.c
++++ 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) \
+--- src/gdb/macosx/macosx-nat-infthread.c
++++ 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"
+@@ -809,6 +809,7 @@
+ print_stack_frame (get_selected_frame (NULL), 0, LOCATION);
+ switch_to_thread (current_ptid);
+
++#ifdef THREAD_IDENTIFIER_INFO_COUNT
+ thread_identifier_info_data_t tident;
+ info_count = THREAD_IDENTIFIER_INFO_COUNT;
+ kret = thread_info (tid, THREAD_IDENTIFIER_INFO, (thread_info_t) &tident,
+@@ -878,6 +879,7 @@
+ printf_filtered ("\tcurrent priority: %d\n", pth.pth_priority);
+ printf_filtered ("\tmax priority: %d\n", pth.pth_maxpriority);
+ }
++#endif
+
+ printf_filtered ("\tsuspend count: %d", info.suspend_count);
+
+@@ -1175,6 +1177,7 @@
+ ui_out_field_fmt (uiout, "mach-port-number", "0x%s",
+ paddr_nz (app_thread_name));
+
++#ifdef THREAD_IDENTIFIER_INFO_COUNT
+ thread_identifier_info_data_t tident;
+ info_count = THREAD_IDENTIFIER_INFO_COUNT;
+ kret = thread_info (tid, THREAD_IDENTIFIER_INFO, (thread_info_t) &tident,
+@@ -1207,6 +1210,7 @@
+ paddr_nz (struct_addr));
+ }
+ }
++#endif
+ }
+
+
+--- src/gdb/macosx/macosx-tdep.c
++++ src/gdb/macosx/macosx-tdep.c
+@@ -64,7 +64,6 @@
+ #include "gdbcore.h"
+
+ #include <dirent.h>
+-#include <libgen.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/param.h>
+--- src/gdb/remote.c
++++ src/gdb/remote.c
+@@ -63,7 +63,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);
+@@ -475,11 +474,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
+--- src/gdb/symfile.c
++++ 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>
+
+--- src/gdb/utils.c
++++ src/gdb/utils.c
+@@ -28,7 +28,6 @@
+ #include "event-top.h"
+ #include "exceptions.h"
+ #include "bfd.h"
+-#include <execinfo.h>
+ #include <sys/resource.h>
+ #include <uuid/uuid.h>
+
+@@ -879,6 +878,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. */
+ {
+@@ -887,6 +887,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
+--- src/gdb/macosx/macosx-nat-dyld.c
++++ src/gdb/macosx/macosx-nat-dyld.c
+@@ -2083,7 +2083,9 @@
+ case MH_DYLIB:
+ case MH_DYLINKER:
+ case MH_BUNDLE:
++#ifdef MH_KEXT_BUNDLE
+ case MH_KEXT_BUNDLE:
++#endif
+ break;
+ case MH_FVMLIB:
+ case MH_PRELOAD:
+@@ -2412,7 +2414,9 @@
+ break;
+ case MH_DYLINKER:
+ case MH_BUNDLE:
++#ifdef MH_KEXT_BUNDLE
+ case MH_KEXT_BUNDLE:
++#endif
+ entry->reason = dyld_reason_dyld;
+ break;
+ default:
+--- src/gdb/macosx/macosx-nat-dyld-process.c
++++ src/gdb/macosx/macosx-nat-dyld-process.c
+@@ -407,7 +407,9 @@
+ case MH_DYLIB:
+ break;
+ case MH_BUNDLE:
++#ifdef MH_KEXT_BUNDLE
+ case MH_KEXT_BUNDLE:
++#endif
+ break;
+ default:
+ return;
+ return;
diff --git a/sys-devel/gdb-apple/files/gdb-apple-1518-task_dyld_info.patch b/sys-devel/gdb-apple/files/gdb-apple-1518-task_dyld_info.patch
new file mode 100644
index 000000000000..633a36a7a048
--- /dev/null
+++ b/sys-devel/gdb-apple/files/gdb-apple-1518-task_dyld_info.patch
@@ -0,0 +1,22 @@
+If dyld-info is not available, don't try to compile unreachable code
+using it either.
+
+--- gdb-1518/src/gdb/macosx/macosx-nat-dyld.c
++++ gdb-1518/src/gdb/macosx/macosx-nat-dyld.c
+@@ -779,7 +779,7 @@
+ {
+ #if !defined (TASK_DYLD_INFO)
+ return 0;
+-#endif
++#else
+ if (macosx_status->task == TASK_NULL)
+ return 0;
+
+@@ -799,6 +799,7 @@
+ task_dyld_info.all_image_info_size == 0)
+ return 0;
+ s->dyld_image_infos = task_dyld_info.all_image_info_addr;
++#endif /* TASK_DYLD_INFO */
+ }
+ #endif /* NM_NEXTSTEP */
+
diff --git a/sys-devel/gdb-apple/gdb-apple-1518.ebuild b/sys-devel/gdb-apple/gdb-apple-1518.ebuild
new file mode 100644
index 000000000000..d4c4314c7a3d
--- /dev/null
+++ b/sys-devel/gdb-apple/gdb-apple-1518.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb-apple/gdb-apple-1518.ebuild,v 1.1 2011/04/03 09:52:07 grobian Exp $
+
+EAPI="3"
+
+inherit eutils flag-o-matic
+
+APPLE_PV=${PV}
+DESCRIPTION="Apple branch of the GNU Debugger, Developer Tools 4.0"
+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}-no-global-gdbinit.patch
+ epatch "${FILESDIR}"/${PN}-768-texinfo.patch
+ epatch "${FILESDIR}"/${P}-task_dyld_info.patch
+ [[ ${CHOST} == *-darwin8 ]] && epatch "${FILESDIR}"/${P}-darwin8.patch
+}
+
+src_configure() {
+ replace-flags -O? -O2
+ econf \
+ --disable-werror \
+ --disable-debug-symbols-framework \
+ $(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
+}