From 03ca854695bdb9ed363b0b32593acbdd0f3d04cc Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 10 Jan 2019 15:28:05 +0100 Subject: sys-devel/gdb-apple: remove obviated versions Signed-off-by: Fabian Groffen Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- .../gdb-apple/files/gdb-apple-1461-darwin8.patch | 128 --------------------- .../gdb-apple/files/gdb-apple-1461-dyld-info.patch | 22 ---- .../files/gdb-apple-768-darwin-arch.patch | 15 --- .../gdb-apple/files/gdb-apple-962-darwin64.patch | 17 --- .../gdb-apple/files/gdb-apple-962-darwin8.patch | 15 --- .../gdb-apple/files/gdb-apple-962-demangle.patch | 22 ---- 6 files changed, 219 deletions(-) delete mode 100644 sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch delete mode 100644 sys-devel/gdb-apple/files/gdb-apple-1461-dyld-info.patch delete mode 100644 sys-devel/gdb-apple/files/gdb-apple-768-darwin-arch.patch delete mode 100644 sys-devel/gdb-apple/files/gdb-apple-962-darwin64.patch delete mode 100644 sys-devel/gdb-apple/files/gdb-apple-962-darwin8.patch delete mode 100644 sys-devel/gdb-apple/files/gdb-apple-962-demangle.patch (limited to 'sys-devel/gdb-apple/files') diff --git a/sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch b/sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch deleted file mode 100644 index c89c82a0d18c..000000000000 --- a/sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch +++ /dev/null @@ -1,128 +0,0 @@ ---- a/gdb/macosx/macosx-nat-inferior.c -+++ b/gdb/macosx/macosx-nat-inferior.c -@@ -60,13 +60,17 @@ - #include - #include - #include -+#if defined(TARGET_ARM) - #include -+#endif - - #include - - #include -+#if 0 - #include - #include -+#endif - - #include "macosx-nat-dyld.h" - #include "macosx-nat-inferior.h" ---- a/gdb/macosx/macosx-nat-info.c -+++ b/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) \ ---- a/gdb/macosx/macosx-nat-infthread.c -+++ b/gdb/macosx/macosx-nat-infthread.c -@@ -36,8 +36,10 @@ - #include - #include - -+#if 0 - #include - #include -+#endif - - #include "macosx-nat-inferior.h" - #include "macosx-nat-inferior-util.h" ---- a/gdb/macosx/macosx-tdep.c -+++ b/gdb/macosx/macosx-tdep.c -@@ -63,7 +63,6 @@ - #include "gdbcore.h" - - #include --#include - #include - #include - #include ---- a/gdb/remote.c -+++ b/gdb/remote.c -@@ -62,7 +62,6 @@ - #include "macosx-nat-dyld.h" - #include "macosx-nat-dyld-process.h" - #endif --#include - - /* 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 ---- a/gdb/symfile.c -+++ b/gdb/symfile.c -@@ -67,7 +67,6 @@ - #include - #include - #include --#include - - #include - ---- a/gdb/utils.c -+++ b/gdb/utils.c -@@ -27,7 +27,6 @@ - #include "gdb_string.h" - #include "event-top.h" - #include "exceptions.h" --#include - - #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/files/gdb-apple-1461-dyld-info.patch b/sys-devel/gdb-apple/files/gdb-apple-1461-dyld-info.patch deleted file mode 100644 index fb9ca9c74115..000000000000 --- a/sys-devel/gdb-apple/files/gdb-apple-1461-dyld-info.patch +++ /dev/null @@ -1,22 +0,0 @@ -If dyld-info is not available, don't try to compile unreachable code -using it either. - ---- a/gdb/macosx/macosx-nat-dyld.c -+++ b/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 diff --git a/sys-devel/gdb-apple/files/gdb-apple-768-darwin-arch.patch b/sys-devel/gdb-apple/files/gdb-apple-768-darwin-arch.patch deleted file mode 100644 index 5442ba8ba636..000000000000 --- a/sys-devel/gdb-apple/files/gdb-apple-768-darwin-arch.patch +++ /dev/null @@ -1,15 +0,0 @@ -* configure checks for /usr/bin/arch to determine whether "arch" is ok - to use, so don't rely on the path at runtime, since GNU arch doesn't - understand -arch at all (and only returns the current arch name) - ---- src/gdb/fork-child.c -+++ src/gdb/fork-child.c -@@ -243,7 +243,7 @@ - arch_string = "x86_64"; - #endif - if (arch_string != NULL) -- sprintf (shell_command, "%s exec arch -arch %s ", shell_command, arch_string); -+ sprintf (shell_command, "%s exec /usr/bin/arch -arch %s ", shell_command, arch_string); - else - strcat (shell_command, "exec "); - } diff --git a/sys-devel/gdb-apple/files/gdb-apple-962-darwin64.patch b/sys-devel/gdb-apple/files/gdb-apple-962-darwin64.patch deleted file mode 100644 index 4417cee76e4d..000000000000 --- a/sys-devel/gdb-apple/files/gdb-apple-962-darwin64.patch +++ /dev/null @@ -1,17 +0,0 @@ -* todo: extend for powerpc64 also - ---- src/bfd/config.bfd.orig 2009-06-23 11:05:43 +0200 -+++ src/bfd/config.bfd 2009-06-23 11:05:47 +0200 -@@ -500,6 +500,12 @@ - targ_archs="bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch" - targ_underscore=yes - ;; -+ x86_64-*-darwin*) -+ targ_defvec=mach_o_le_vec -+ targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec" -+ targ_archs="bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch" -+ targ_underscore=yes -+ ;; - i[3-7]86-sequent-bsd*) - targ_defvec=i386dynix_vec - targ_underscore=yes diff --git a/sys-devel/gdb-apple/files/gdb-apple-962-darwin8.patch b/sys-devel/gdb-apple/files/gdb-apple-962-darwin8.patch deleted file mode 100644 index 05a088b93fb3..000000000000 --- a/sys-devel/gdb-apple/files/gdb-apple-962-darwin8.patch +++ /dev/null @@ -1,15 +0,0 @@ -* 10.4 doesn't have posix spawn, but fortunately it's only used on ARM - (iPhone), so we can still compile it - ---- src/gdb/macosx/macosx-nat-inferior.c -+++ src/gdb/macosx/macosx-nat-inferior.c -@@ -58,7 +58,9 @@ - #include - #include - #include -+#ifdef TARGET_ARM - #include -+#endif - - #include "macosx-nat-dyld.h" - #include "macosx-nat-inferior.h" diff --git a/sys-devel/gdb-apple/files/gdb-apple-962-demangle.patch b/sys-devel/gdb-apple/files/gdb-apple-962-demangle.patch deleted file mode 100644 index a302ce56ec91..000000000000 --- a/sys-devel/gdb-apple/files/gdb-apple-962-demangle.patch +++ /dev/null @@ -1,22 +0,0 @@ -in 32-bits mode this goes /just/ right, in 64-bits mode Portage aborts -because objc_demangle is implicitly turned into a pointer - ---- src/gdb/maint.c.orig 2009-06-23 11:12:15 +0200 -+++ src/gdb/maint.c 2009-06-23 11:19:58 +0200 -@@ -31,6 +31,7 @@ - #include "symtab.h" - #include "gdbtypes.h" - #include "demangle.h" -+#include "objc-lang.h" - #include "gdbcore.h" - #include "expression.h" /* For language.h */ - #include "language.h" -@@ -167,7 +168,7 @@ - switch (current_language->la_language) - { - case language_objc: -- demangled = objc_demangle (args); -+ demangled = objc_demangle (args, 0); - break; - case language_objcplus: - case language_cplus: -- cgit v1.2.3-65-gdbad