diff options
Diffstat (limited to 'sys-devel/gdb-apple/files')
-rw-r--r-- | sys-devel/gdb-apple/files/gdb-apple-962-darwin64.patch | 17 | ||||
-rw-r--r-- | sys-devel/gdb-apple/files/gdb-apple-962-demangle.patch | 22 |
2 files changed, 39 insertions, 0 deletions
diff --git a/sys-devel/gdb-apple/files/gdb-apple-962-darwin64.patch b/sys-devel/gdb-apple/files/gdb-apple-962-darwin64.patch new file mode 100644 index 000000000000..4417cee76e4d --- /dev/null +++ b/sys-devel/gdb-apple/files/gdb-apple-962-darwin64.patch @@ -0,0 +1,17 @@ +* 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-demangle.patch b/sys-devel/gdb-apple/files/gdb-apple-962-demangle.patch new file mode 100644 index 000000000000..a302ce56ec91 --- /dev/null +++ b/sys-devel/gdb-apple/files/gdb-apple-962-demangle.patch @@ -0,0 +1,22 @@ +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: |