diff options
author | Fabian Groffen <grobian@gentoo.org> | 2009-06-21 10:38:26 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2009-06-21 10:38:26 +0000 |
commit | 249ffb5932c74d7696c953bbead259a6c0bb4ec2 (patch) | |
tree | 957d1318801cfb2acb9d24e6d70f10a12691acb0 /sys-devel/gdb-apple/files/gdb-apple-563-no-64bit.patch | |
parent | drop tl 2007 install support as all ebuilds are gone now (diff) | |
download | gentoo-2-249ffb5932c74d7696c953bbead259a6c0bb4ec2.tar.gz gentoo-2-249ffb5932c74d7696c953bbead259a6c0bb4ec2.tar.bz2 gentoo-2-249ffb5932c74d7696c953bbead259a6c0bb4ec2.zip |
add sys-devel/gdb-apple from Gentoo Prefix tree
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'sys-devel/gdb-apple/files/gdb-apple-563-no-64bit.patch')
-rw-r--r-- | sys-devel/gdb-apple/files/gdb-apple-563-no-64bit.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sys-devel/gdb-apple/files/gdb-apple-563-no-64bit.patch b/sys-devel/gdb-apple/files/gdb-apple-563-no-64bit.patch new file mode 100644 index 000000000000..952f5b337871 --- /dev/null +++ b/sys-devel/gdb-apple/files/gdb-apple-563-no-64bit.patch @@ -0,0 +1,19 @@ +* Fabian Groffen <grobian@gentoo.org> + On Gentoo, when the user doesn't have a 64-bits capable CPU, we + compile GCC without multi-lib support. Hence, 64-bits defines are not + available so we better not use them if we don't have __ppc64__ + defined. + +--- gdb/macosx/macosx-nat-dyld.c ++++ gdb/macosx/macosx-nat-dyld.c +@@ -619,8 +619,10 @@ + structures. */ + if (header.cputype == CPU_TYPE_POWERPC || header.cputype == CPU_TYPE_I386) + osabi_seen_in_attached_dyld = GDB_OSABI_DARWIN; ++#if defined(__ppc64__) + if (header.cputype == CPU_TYPE_POWERPC64 || header.cputype == GDB_CPU_TYPE_X86_64) + osabi_seen_in_attached_dyld = GDB_OSABI_DARWIN64; ++#endif + } + + /* Once we know the address at which dyld was loaded, we can try to |