Commit | Line | Data |
---|---|---|
c906108c SS |
1 | # Mappings from configurations to GDB target definitions. This is |
2 | # invoked from the autoconf generated configure script. | |
3 | ||
4 | # This file sets the following shell variables: | |
5 | # gdb_target_cpu generic name of CPU | |
6 | # gdb_target name of GDB target definition to use | |
7 | ||
8 | # This file may also modify configdirs. | |
9 | ||
10 | # Map target cpu into the config cpu subdirectory name. | |
11 | # The default is $target_cpu. | |
12 | ||
13 | case "${target_cpu}" in | |
14 | ||
15 | alpha*) gdb_target_cpu=alpha ;; | |
ed9a39eb | 16 | arm*) gdb_target_cpu=arm ;; |
8818c391 | 17 | avr*) gdb_target_cpu=avr ;; |
c906108c SS |
18 | hppa*) gdb_target_cpu=pa ;; |
19 | i[3456]86*) gdb_target_cpu=i386 ;; | |
78073dd8 | 20 | m68hc11*|m6811*) gdb_target_cpu=m68hc11 ;; |
c906108c | 21 | m68*) gdb_target_cpu=m68k ;; |
c906108c | 22 | mips*) gdb_target_cpu=mips ;; |
c906108c | 23 | powerpc*) gdb_target_cpu=powerpc ;; |
c906108c SS |
24 | sparc*) gdb_target_cpu=sparc ;; |
25 | thumb*) gdb_target_cpu=arm ;; | |
4009c677 | 26 | s390*) gdb_target_cpu=s390 ;; |
13a38d45 | 27 | sh*) gdb_target_cpu=sh ;; |
c906108c | 28 | strongarm*) gdb_target_cpu=arm ;; |
7cf6486b | 29 | xscale*) gdb_target_cpu=arm ;; |
c906108c | 30 | v850*) gdb_target_cpu=v850 ;; |
abf22e64 | 31 | x86_64*) gdb_target_cpu=i386 ;; |
c906108c SS |
32 | *) gdb_target_cpu=$target_cpu ;; |
33 | ||
34 | esac | |
35 | ||
36 | # map target info into gdb names. | |
37 | ||
38 | case "${target}" in | |
39 | ||
05e17ccd DB |
40 | *-*-freebsd*) gdb_target=fbsd |
41 | ;; | |
42 | ||
c906108c SS |
43 | alpha*-*-osf*) gdb_target=alpha-osf1 ;; |
44 | alpha*-*-linux*) gdb_target=alpha-linux ;; | |
da8ca43d | 45 | alpha*-*-netbsd*) gdb_target=nbsd ;; |
32089c7c | 46 | alpha*-*-*) gdb_target=alpha ;; |
c906108c | 47 | |
091be84d | 48 | arm*-wince-pe) gdb_target=wince ;; |
a85f51e7 DJ |
49 | arm*-*-linux*) gdb_target=linux |
50 | build_gdbserver=yes | |
41c49b06 | 51 | ;; |
93247f88 RE |
52 | arm*-*-netbsd*) gdb_target=nbsd |
53 | gdb_multi_arch=yes ;; | |
ed9a39eb JM |
54 | arm*-*-* | thumb*-*-* | strongarm*-*-*) |
55 | gdb_target=embed | |
7be570e7 | 56 | configdirs="$configdirs rdi-share" |
7cf6486b NC |
57 | ;; |
58 | xscale-*-*) gdb_target=embed | |
59 | configdirs="$configdirs rdi-share" | |
7be570e7 | 60 | ;; |
c906108c | 61 | |
8818c391 TR |
62 | avr-*-*) gdb_target=avr |
63 | gdb_multi_arch=yes | |
64 | ;; | |
65 | ||
29134980 OF |
66 | cris*) gdb_target=cris ;; |
67 | ||
c906108c | 68 | d10v-*-*) gdb_target=d10v ;; |
c906108c SS |
69 | |
70 | h8300-*-*) gdb_target=h8300 ;; | |
fd2299bd | 71 | # OBSOLETE h8500-*-*) gdb_target=h8500 ;; |
c906108c | 72 | |
0fda6bd2 | 73 | |
456f8b9d | 74 | frv-*-*) gdb_target=frv ;; |
adf40b2e | 75 | |
56056df7 AC |
76 | # OBSOLETE hppa*-*-bsd*) gdb_target=hppabsd ;; |
77 | # OBSOLETE hppa*-*-pro*) gdb_target=hppapro ;; | |
5ec846f9 | 78 | hppa*64*-*-hpux11*) gdb_target=hppa64 ;; |
c906108c SS |
79 | hppa*-*-hpux*) gdb_target=hppahpux ;; |
80 | hppa*-*-hiux*) gdb_target=hppahpux ;; | |
56056df7 | 81 | # OBSOLETE hppa*-*-osf*) gdb_target=hppaosf ;; |
61d8d407 | 82 | hppa*-*-*) gdb_target=hppa ;; |
c906108c | 83 | |
2fbce691 AC |
84 | # OBSOLETE i[3456]86-sequent-bsd*) gdb_target=symmetry ;; |
85 | # OBSOLETE i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;; | |
86 | # OBSOLETE i[3456]86-sequent-sysv*) gdb_target=ptx ;; | |
c906108c | 87 | i[3456]86-ncr-*) gdb_target=ncr3000 ;; |
c906108c | 88 | i[3456]86-*-bsd*) gdb_target=i386bsd ;; |
704a27c4 | 89 | i[3456]86-*-netbsd*) gdb_target=nbsd ;; |
005328e3 | 90 | i[3456]86-*-openbsd*) gdb_target=obsd ;; |
c906108c | 91 | i[3456]86-*-go32*) gdb_target=i386aout ;; |
7a292a7a | 92 | i[3456]86-*-msdosdjgpp*) gdb_target=go32 ;; |
a85f51e7 | 93 | i[3456]86-*-lynxos*) gdb_target=i386lynx ;; |
c906108c | 94 | i[3456]86-*-solaris*) gdb_target=i386sol2 ;; |
c906108c SS |
95 | i[3456]86-*-sco*) gdb_target=i386v ;; |
96 | i[3456]86-*-sysv*) gdb_target=i386v ;; | |
97 | i[3456]86-*-linux*) gdb_target=linux | |
a85f51e7 DJ |
98 | build_gdbserver=yes |
99 | ;; | |
c906108c | 100 | i[3456]86-*-isc*) gdb_target=i386v ;; |
c906108c SS |
101 | i[3456]86-*-gnu*) gdb_target=i386gnu ;; |
102 | i[3456]86-*-netware*) gdb_target=i386nw | |
103 | configdirs="${configdirs} nlm" ;; | |
c906108c | 104 | i[3456]86-*-cygwin*) gdb_target=cygwin ;; |
adf40b2e | 105 | i[3456]86-*-vxworks*) gdb_target=vxworks ;; |
c1bab85b | 106 | i[3456]86-*-*) gdb_target=embed ;; |
7a292a7a | 107 | |
596c9d4b | 108 | ia64-*-aix*) gdb_target=aix ;; |
a85f51e7 DJ |
109 | ia64-*-linux*) gdb_target=linux |
110 | build_gdbserver=yes | |
111 | ;; | |
32089c7c | 112 | ia64*-*-*) gdb_target=ia64 ;; |
eafb8301 | 113 | |
05d57f6f | 114 | # OBSOLETE m32r-*-elf*) gdb_target=m32r ;; |
c906108c | 115 | |
78073dd8 AC |
116 | m68hc11*-*-*|m6811*-*-*) gdb_target=m68hc11 ;; |
117 | ||
c906108c SS |
118 | m68000-*-sunos3*) gdb_target=sun2os3 ;; |
119 | m68000-*-sunos4*) gdb_target=sun2os4 ;; | |
120 | ||
c906108c | 121 | m68*-bull-sysv*) gdb_target=dpx2 ;; |
c906108c SS |
122 | m68*-att-*) gdb_target=3b1 ;; |
123 | m68*-cisco*-*) gdb_target=cisco ;; | |
c906108c SS |
124 | m68*-motorola-*) gdb_target=delta68 ;; |
125 | m68*-netx-*) gdb_target=vxworks68 ;; | |
c906108c | 126 | m68*-tandem-*) gdb_target=st2000 ;; |
c906108c SS |
127 | m68*-*-aout*) gdb_target=monitor ;; |
128 | m68*-*-coff*) gdb_target=monitor ;; | |
129 | m68*-*-elf*) gdb_target=monitor ;; | |
130 | m68*-*-linux*) gdb_target=linux | |
a85f51e7 DJ |
131 | build_gdbserver=yes |
132 | ;; | |
133 | m68*-*-lynxos*) gdb_target=m68klynx ;; | |
9eeef8ef | 134 | m68*-*-netbsd*) gdb_target=nbsdaout ;; |
c906108c SS |
135 | m68*-*-os68k*) gdb_target=os68k ;; |
136 | m68*-*-sunos3*) gdb_target=sun3os3 ;; | |
a85f51e7 | 137 | m68*-*-sunos4*) gdb_target=sun3os4 ;; |
c906108c SS |
138 | m68*-*-sysv4*) gdb_target=m68kv4 ;; |
139 | m68*-*-vxworks*) gdb_target=vxworks68 ;; | |
140 | ||
96baa820 | 141 | mcore*-*-*) gdb_target=mcore ;; |
c906108c SS |
142 | mips64*-big-*) gdb_target=bigmips64 ;; |
143 | mips*-big-*) gdb_target=bigmips ;; | |
c906108c | 144 | mips*-dec-*) gdb_target=decstation ;; |
091be84d | 145 | mips*-*-pe) gdb_target=wince ;; |
c906108c SS |
146 | mips64*el-*-ecoff*) gdb_target=embedl64 ;; |
147 | mips64*-*-ecoff*) gdb_target=embed64 ;; | |
c2d11a7d JM |
148 | mips64*vr4xxx*el-*-elf*)gdb_target=vr4xxxel ;; |
149 | mips64*vr4xxx*-*-elf*) gdb_target=vr4xxx ;; | |
c906108c SS |
150 | mips64*vr4300*el-*-elf*) gdb_target=vr4300el ;; |
151 | mips64*vr4300*-*-elf*) gdb_target=vr4300 ;; | |
152 | mips64*vr4100*el-*-elf*) gdb_target=vr4300el ;; | |
153 | mips64*vr4100*-*-elf*) gdb_target=vr4100 ;; | |
154 | mips64*vr5000*el-*-elf*) gdb_target=vr5000el ;; | |
a85f51e7 | 155 | mips64*vr5000*-*-elf*) gdb_target=vr5000 ;; |
c906108c SS |
156 | mips*tx39*el*-elf*) gdb_target=tx39l ;; |
157 | mips*tx39*-elf*) gdb_target=tx39 ;; | |
158 | mips64*el-*-elf*) gdb_target=embedl64 ;; | |
159 | mips64*-*-elf*) gdb_target=embed64 ;; | |
96f026fc | 160 | mips64*-*-linux*) gdb_target=linux64 ;; |
c906108c SS |
161 | mips*el-*-ecoff*) gdb_target=embedl ;; |
162 | mips*-*-ecoff*) gdb_target=embed ;; | |
163 | mips*el-*-elf*) gdb_target=embedl ;; | |
164 | mips*-*-elf*) gdb_target=embed ;; | |
165 | mips*-little-*) gdb_target=littlemips ;; | |
166 | mips*-*-lnews*) gdb_target=embedl ;; | |
167 | mips*-sgi-irix5*) gdb_target=irix5 ;; | |
1d06468c | 168 | mips*-sgi-irix6*) gdb_target=irix6 ;; |
c906108c SS |
169 | mips*-sgi-*) gdb_target=irix3 ;; |
170 | mips*-sony-*) gdb_target=bigmips ;; | |
a85f51e7 DJ |
171 | mips*-*-linux*) gdb_target=linux |
172 | build_gdbserver=yes | |
173 | ;; | |
45888261 | 174 | mips*-*-netbsd*) gdb_target=nbsd ;; |
78c43945 | 175 | # OBSOLETE mips*-*-mach3*) gdb_target=mipsm3 ;; |
c906108c SS |
176 | mips*-*-sysv4*) gdb_target=mipsv4 ;; |
177 | mips*-*-sysv*) gdb_target=bigmips ;; | |
178 | mips*-*-riscos*) gdb_target=bigmips ;; | |
179 | mips*-*-vxworks*) gdb_target=vxmips ;; | |
c1bab85b | 180 | mips*-*-*) gdb_target=embed ;; |
c906108c | 181 | |
67f16606 | 182 | # OBSOLETE mn10200-*-*) gdb_target=mn10200 ;; |
c906108c SS |
183 | mn10300-*-*) gdb_target=mn10300 ;; |
184 | ||
185 | none-*-*) gdb_target=none ;; | |
186 | ||
9eeef8ef | 187 | ns32k-*-netbsd*) gdb_target=nbsdaout ;; |
c906108c | 188 | |
a85f51e7 | 189 | powerpc-*-netbsd*) gdb_target=nbsd ;; |
c906108c | 190 | powerpc-*-aix*) gdb_target=aix ;; |
a85f51e7 DJ |
191 | powerpc-*-linux*) gdb_target=linux |
192 | build_gdbserver=yes | |
193 | ;; | |
adf40b2e | 194 | powerpc-*-vxworks*) gdb_target=vxworks ;; |
ea47855f AC |
195 | powerpc*-*-*) if test -f ../sim/ppc/Makefile; then |
196 | gdb_target=ppc-sim | |
197 | else | |
198 | gdb_target=ppc-eabi | |
199 | fi ;; | |
c906108c | 200 | |
a85f51e7 | 201 | rs6000-*-lynxos*) gdb_target=rs6000lynx ;; |
c906108c SS |
202 | rs6000-*-aix4*) gdb_target=aix4 ;; |
203 | rs6000-*-*) gdb_target=rs6000 ;; | |
204 | ||
265f716b DJ |
205 | s390-*-*) gdb_target=s390 |
206 | build_gdbserver=yes | |
207 | ;; | |
208 | s390x-*-*) gdb_target=s390x | |
209 | build_gdbserver=yes | |
210 | ;; | |
4009c677 | 211 | |
091be84d | 212 | sh*-*-pe) gdb_target=wince ;; |
10214f55 C |
213 | sh-*-coff*) gdb_target=embed ;; |
214 | sh-*-elf*) gdb_target=embed ;; | |
a85f51e7 DJ |
215 | sh-*-linux*) gdb_target=linux |
216 | build_gdbserver=yes | |
217 | ;; | |
13a38d45 | 218 | sh*-*-netbsdelf*) gdb_target=nbsd ;; |
843fedf4 | 219 | sh*) gdb_target=embed ;; |
cce74817 | 220 | |
c906108c SS |
221 | sparc-*-aout*) gdb_target=sparc-em ;; |
222 | sparc-*-coff*) gdb_target=sparc-em ;; | |
223 | sparc-*-elf*) gdb_target=sparc-em ;; | |
224 | sparc-*-linux*) gdb_target=linux ;; | |
a85f51e7 | 225 | sparc-*-lynxos*) gdb_target=sparclynx ;; |
9ce5c36a | 226 | sparc-*-netbsd*) gdb_target=nbsd ;; |
c906108c | 227 | sparc-*-solaris2*) gdb_target=sun4sol2 ;; |
a85f51e7 | 228 | sparc-*-sunos4*) gdb_target=sun4os4 ;; |
c906108c SS |
229 | sparc-*-sunos5*) gdb_target=sun4sol2 ;; |
230 | sparc-*-vxworks*) gdb_target=vxsparc ;; | |
231 | sparc-*-*) gdb_target=sun4os4 ;; | |
232 | sparclet-*-*) gdb_target=sparclet;; | |
233 | sparclite-*-*) gdb_target=sparclite ;; | |
234 | sparc86x-*-*) gdb_target=sparclite ;; | |
235 | # It's not clear what the right solution for "v8plus" systems is yet. | |
236 | # For now, stick with sparc-sun-solaris2 since that's what config.guess | |
237 | # should return. Work is still needed to get gdb to print the 64 bit | |
238 | # regs (some of which are usable in v8plus) so sp64sol.mt hasn't been | |
239 | # deleted though presumably it should be eventually. | |
240 | #sparc64-*-solaris2*) gdb_target=sp64sol2 ;; | |
86168def | 241 | sparc64-*-linux*) gdb_target=sp64linux ;; |
9ce5c36a | 242 | sparc64-*-netbsd*) gdb_target=nbsd64 ;; |
ea87b71b | 243 | sparcv9-*-* | sparc64-*-*) gdb_target=sp64 ;; |
c906108c | 244 | |
0c884e17 CV |
245 | xstormy16-*-*) gdb_target=xstormy16 ;; |
246 | ||
c906108c SS |
247 | vax-*-*) gdb_target=vax ;; |
248 | ||
c906108c | 249 | v850*-*-*) gdb_target=v850 |
cce74817 JM |
250 | case ${gdb_host} in |
251 | cygwin*) | |
252 | CONFIG_OBS="${CONFIG_OBS} v850ice.o" ;; | |
253 | * ) ;; | |
254 | esac | |
c906108c SS |
255 | ;; |
256 | ||
58caa3dc DJ |
257 | x86_64-*-linux*) gdb_target=x86-64linux |
258 | build_gdbserver=yes | |
259 | ;; | |
abf22e64 | 260 | |
8b0e5691 | 261 | # OBSOLETE z8k-*-coff*) gdb_target=z8k ;; |
c906108c SS |
262 | |
263 | esac | |
2acceee2 | 264 | |
78073dd8 AC |
265 | |
266 | # map GDB target onto multi-arch support | |
267 | ||
268 | case "${gdb_target}" in | |
21624696 | 269 | d10v) gdb_multi_arch=yes ;; |
78073dd8 | 270 | m68hc11) gdb_multi_arch=yes ;; |
6ca173e3 | 271 | mn10300) gdb_multi_arch=yes ;; |
abf22e64 | 272 | x86-64linux) gdb_multi_arch=yes ;; |
bf5f1a52 | 273 | v850) gdb_multi_arch=yes ;; |
0c884e17 | 274 | xstormy16) gdb_multi_arch=yes ;; |
3bb912e8 | 275 | mcore) gdb_multi_arch=yes ;; |
78073dd8 | 276 | esac |
b00a8037 DJ |
277 | |
278 | # map target onto default OS ABI | |
279 | ||
280 | case "${target}" in | |
281 | *-*-linux*) gdb_osabi=GDB_OSABI_LINUX ;; | |
282 | *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;; | |
5b729aa5 | 283 | *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;; |
b00a8037 | 284 | esac |