grub2: bring back build of aros-side grub2 tools
[AROS.git] / tools / crosstools / gdb-7.9-aros.diff
blob4cb3b7a77d5c6506d5af69f1a4d154cda8800c01
1 diff -ruN gdb-7.9/bfd/config.bfd gdb-7.9.aros/bfd/config.bfd
2 --- gdb-7.9/bfd/config.bfd 2015-02-20 12:11:44.000000000 -0500
3 +++ gdb-7.9.aros/bfd/config.bfd 2015-06-18 23:37:27.756746819 -0400
4 @@ -339,7 +339,7 @@
5 ;;
6 arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
7 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
8 - arm*-*-eabi* )
9 + arm*-*-eabi* | arm*-*-aros)
10 targ_defvec=arm_elf32_le_vec
11 targ_selvecs=arm_elf32_be_vec
13 @@ -652,6 +652,10 @@
14 targ_selvecs="i386_elf32_vec l1om_elf64_vec k1om_elf64_vec"
15 want64=true
17 + x86_64-*-aros)
18 + targ_defvec=x86_64_elf64_vec
19 + want64=true
20 + ;;
21 x86_64-*-elf*)
22 targ_defvec=x86_64_elf64_vec
23 targ_selvecs="i386_elf32_vec x86_64_elf32_vec l1om_elf64_vec k1om_elf64_vec"
24 @@ -848,7 +852,7 @@
25 targ_selvecs="core_cisco_be_vec ieee_vec"
26 targ_underscore=yes
28 - m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*)
29 + m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux* | m68*-*-aros)
30 targ_defvec=m68k_elf32_vec
31 targ_selvecs="m68k_coff_vec ieee_vec"
33 @@ -1265,7 +1269,7 @@
35 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
36 powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
37 - powerpc-*-chorus*)
38 + powerpc-*-chorus* | powerpc-*-aros)
39 targ_defvec=powerpc_elf32_vec
40 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
41 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
42 diff -ruN gdb-7.9/configure gdb-7.9.aros/configure
43 --- gdb-7.9/configure 2015-02-20 12:11:44.000000000 -0500
44 +++ gdb-7.9.aros/configure 2015-06-18 23:37:27.756746819 -0400
45 @@ -2763,7 +2763,7 @@
46 # binutils, gas and ld appear in that order because it makes sense to run
47 # "make check" in that particular order.
48 # If --enable-gold is used, "gold" may replace "ld".
49 -host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
50 +host_tools="flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
52 # libgcj represents the runtime libraries only used by gcj.
53 libgcj="target-libffi \
54 @@ -2962,7 +2962,7 @@
55 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
56 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
57 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
58 - | *-*-solaris2* | *-*-nto* | *-*-nacl*)
59 + | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-aros)
60 case "${target}" in
61 *-*-linux*aout* | *-*-linux*oldld*)
63 diff -ruN gdb-7.9/configure.ac gdb-7.9.aros/configure.ac
64 --- gdb-7.9/configure.ac 2015-02-20 12:14:33.000000000 -0500
65 +++ gdb-7.9.aros/configure.ac 2015-06-18 23:37:27.756746819 -0400
66 @@ -318,7 +318,7 @@
67 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
68 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
69 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
70 - | *-*-solaris2* | *-*-nto* | *-*-nacl*)
71 + | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-aros)
72 case "${target}" in
73 *-*-linux*aout* | *-*-linux*oldld*)
75 diff -ruN gdb-7.9/gdb/configure.tgt gdb-7.9.aros/gdb/configure.tgt
76 --- gdb-7.9/gdb/configure.tgt 2015-02-19 06:58:27.000000000 -0500
77 +++ gdb-7.9.aros/gdb/configure.tgt 2015-06-18 23:37:27.756746819 -0400
78 @@ -306,7 +306,7 @@
81 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
82 -fido-*-elf*)
83 +fido-*-elf* | m68*-*-aros*)
84 # Target: Motorola m68k embedded (e.g. bug monitors)
85 gdb_target_obs="m68k-tdep.o monitor.o dbug-rom.o dsrec.o"
87 @@ -640,6 +640,11 @@
88 gdb_target_obs="vax-tdep.o"
91 +x86_64-*-aros*)
92 + # Target: AROS/x86-64
93 + gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o"
94 + ;;
96 x86_64-*-darwin*)
97 # Target: Darwin/x86-64
98 gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \