You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-devel/gdb-apple/files/gdb-apple-563-no-64bit.patch

20 lines
767 B

* 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