]>
Commit | Line | Data |
---|---|---|
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_obs target-specific object files to use | |
6 | # gdb_sim simulator library for target | |
7 | # gdb_osabi default OS ABI to use with target | |
8 | # build_gdbserver set to "yes" if gdbserver supports target | |
9 | # gdb_have_gcore set to "true"/"false" if this target can run gcore | |
10 | ||
11 | # NOTE: Every file added to a gdb_target_obs variable for any target here | |
12 | # must also be added to either ALL_TARGET_OBS or ALL_64_TARGET_OBS | |
13 | # in Makefile.in! | |
14 | ||
15 | case $targ in | |
16 | *-*-irix* | \ | |
17 | alpha*-*-osf* | \ | |
18 | alpha*-*-freebsd* | \ | |
19 | alpha*-*-kfreebsd*-gnu | \ | |
20 | d10v-*-* | \ | |
21 | hppa*-*-hiux* | \ | |
22 | i[34567]86-ncr-* | \ | |
23 | m68*-cisco*-* | \ | |
24 | m68*-tandem-* | \ | |
25 | m68*-*-os68k* | \ | |
26 | mips*-*-pe | \ | |
27 | rs6000-*-lynxos* | \ | |
28 | sh*-*-pe | \ | |
29 | hppa*-*-hpux* | \ | |
30 | ia64-*-hpux* | \ | |
31 | *-*-vxworks* | \ | |
32 | null) | |
33 | echo "*** Configuration $targ is obsolete." >&2 | |
34 | echo "*** Support has been REMOVED." >&2 | |
35 | exit 1 | |
36 | ;; | |
37 | esac | |
38 | ||
39 | i386_tobjs="i386-tdep.o arch/i386.o i387-tdep.o" | |
40 | amd64_tobjs="amd64-tdep.o arch/amd64.o" | |
41 | ||
42 | # Here are three sections to get a list of target specific object | |
43 | # files according to target triplet $TARG. | |
44 | ||
45 | # 1. Get the objects per cpu in $TARG. | |
46 | ||
47 | case "${targ}" in | |
48 | aarch64*-*-*) | |
49 | cpu_obs="aarch64-tdep.o arch/aarch64-insn.o";; | |
50 | ||
51 | alpha*-*-*) | |
52 | # Target: Alpha | |
53 | cpu_obs="alpha-tdep.o" | |
54 | ;; | |
55 | ||
56 | arc*-*-*) | |
57 | # Target: Unidentified ARC target | |
58 | cpu_obs="arc-tdep.o" | |
59 | ;; | |
60 | ||
61 | arm*-*-*) | |
62 | cpu_obs="arch/arm.o arch/arm-get-next-pcs.o arm-tdep.o";; | |
63 | ||
64 | hppa*-*-*) | |
65 | # Target: HP PA-RISC | |
66 | cpu_obs="hppa-tdep.o" | |
67 | ;; | |
68 | ||
69 | i[34567]86-*-*) | |
70 | cpu_obs="${i386_tobjs}" | |
71 | if test "x$enable_64_bit_bfd" = "xyes"; then | |
72 | cpu_obs="${amd64_tobjs} ${cpu_obs}" | |
73 | fi | |
74 | ;; | |
75 | ||
76 | ia64*-*-*) | |
77 | # Target: Intel IA-64 | |
78 | cpu_obs="ia64-tdep.o" | |
79 | ;; | |
80 | ||
81 | x86_64-*-*) | |
82 | cpu_obs="${i386_tobjs} ${amd64_tobjs}";; | |
83 | ||
84 | xtensa*) | |
85 | # Target: Tensilica Xtensa processors | |
86 | cpu_obs="xtensa-tdep.o xtensa-config.o solib-svr4.o" | |
87 | ;; | |
88 | ||
89 | esac | |
90 | ||
91 | # 2. Get the objects per os in $TARG. | |
92 | ||
93 | case "${targ}" in | |
94 | *-*-freebsd* | *-*-kfreebsd*-gnu) | |
95 | os_obs="fbsd-tdep.o solib-svr4.o";; | |
96 | *-*-netbsd* | *-*-knetbsd*-gnu) | |
97 | os_obs="nbsd-tdep.o solib-svr4.o";; | |
98 | *-*-openbsd*) | |
99 | os_obs="obsd-tdep.o solib-svr4.o";; | |
100 | esac | |
101 | ||
102 | # 3. Get the rest of objects. | |
103 | ||
104 | case "${targ}" in | |
105 | aarch64*-*-elf | aarch64*-*-rtems*) | |
106 | # Target: AArch64 embedded system | |
107 | gdb_target_obs="aarch64-newlib-tdep.o" | |
108 | ;; | |
109 | ||
110 | aarch64*-*-freebsd*) | |
111 | # Target: FreeBSD/aarch64 | |
112 | gdb_target_obs="aarch64-fbsd-tdep.o" | |
113 | ;; | |
114 | ||
115 | aarch64*-*-linux*) | |
116 | # Target: AArch64 linux | |
117 | gdb_target_obs="aarch64-linux-tdep.o arch/aarch64.o\ | |
118 | arch/arm.o arch/arm-linux.o arch/arm-get-next-pcs.o \ | |
119 | arm-tdep.o arm-linux-tdep.o \ | |
120 | glibc-tdep.o linux-tdep.o solib-svr4.o \ | |
121 | symfile-mem.o linux-record.o" | |
122 | build_gdbserver=yes | |
123 | ;; | |
124 | ||
125 | alpha*-*-linux*) | |
126 | # Target: Little-endian Alpha running Linux | |
127 | gdb_target_obs="alpha-mdebug-tdep.o alpha-linux-tdep.o \ | |
128 | linux-tdep.o solib-svr4.o" | |
129 | ;; | |
130 | alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) | |
131 | # Target: NetBSD/alpha | |
132 | gdb_target_obs="alpha-mdebug-tdep.o alpha-bsd-tdep.o \ | |
133 | alpha-nbsd-tdep.o" | |
134 | ;; | |
135 | alpha*-*-openbsd*) | |
136 | # Target: OpenBSD/alpha | |
137 | gdb_target_obs="alpha-mdebug-tdep.o alpha-bsd-tdep.o \ | |
138 | alpha-nbsd-tdep.o alpha-obsd-tdep.o nbsd-tdep.o" | |
139 | ;; | |
140 | ||
141 | am33_2.0*-*-linux*) | |
142 | # Target: Matsushita mn10300 (AM33) running Linux | |
143 | gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o linux-tdep.o \ | |
144 | solib-svr4.o" | |
145 | ;; | |
146 | ||
147 | arc*-*-elf32) | |
148 | # Target: baremetal ARC elf32 (newlib) target | |
149 | gdb_target_obs="arc-newlib-tdep.o" | |
150 | ;; | |
151 | ||
152 | arm*-wince-pe | arm*-*-mingw32ce*) | |
153 | # Target: ARM based machine running Windows CE (win32) | |
154 | gdb_target_obs="arm-wince-tdep.o windows-tdep.o" | |
155 | build_gdbserver=yes | |
156 | ;; | |
157 | arm*-*-linux*) | |
158 | # Target: ARM based machine running GNU/Linux | |
159 | gdb_target_obs="arch/arm-linux.o arm-linux-tdep.o glibc-tdep.o \ | |
160 | solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o" | |
161 | build_gdbserver=yes | |
162 | ;; | |
163 | arm*-*-freebsd*) | |
164 | # Target: FreeBSD/arm | |
165 | gdb_target_obs="arm-fbsd-tdep.o" | |
166 | ;; | |
167 | arm*-*-netbsd* | arm*-*-knetbsd*-gnu) | |
168 | # Target: NetBSD/arm | |
169 | gdb_target_obs="arm-nbsd-tdep.o" | |
170 | ;; | |
171 | arm*-*-openbsd*) | |
172 | # Target: OpenBSD/arm | |
173 | gdb_target_obs="arm-bsd-tdep.o arm-obsd-tdep.o" | |
174 | ;; | |
175 | arm*-*-symbianelf*) | |
176 | # Target: SymbianOS/arm | |
177 | gdb_target_obs="arm-symbian-tdep.o" | |
178 | ;; | |
179 | arm*-*-*) | |
180 | # Target: ARM embedded system | |
181 | gdb_sim=../sim/arm/libsim.a | |
182 | ;; | |
183 | ||
184 | avr-*-*) | |
185 | # Target: AVR | |
186 | gdb_target_obs="avr-tdep.o" | |
187 | gdb_sim=../sim/avr/libsim.a | |
188 | ;; | |
189 | ||
190 | bfin-*-*linux*) | |
191 | # Target: Blackfin Linux | |
192 | gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o" | |
193 | gdb_sim=../sim/bfin/libsim.a | |
194 | build_gdbserver=yes | |
195 | ;; | |
196 | bfin-*-*) | |
197 | # Target: Blackfin processor | |
198 | gdb_target_obs="bfin-tdep.o" | |
199 | gdb_sim=../sim/bfin/libsim.a | |
200 | ;; | |
201 | ||
202 | cris*) | |
203 | # Target: CRIS | |
204 | gdb_target_obs="cris-tdep.o cris-linux-tdep.o linux-tdep.o solib-svr4.o" | |
205 | ;; | |
206 | ||
207 | frv-*-*) | |
208 | # Target: Fujitsu FRV processor | |
209 | gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o" | |
210 | gdb_sim=../sim/frv/libsim.a | |
211 | ;; | |
212 | ||
213 | moxie-*-elf | moxie-*-moxiebox | moxie-*-rtems*) | |
214 | gdb_target_obs="moxie-tdep.o" | |
215 | gdb_sim=../sim/moxie/libsim.a | |
216 | ;; | |
217 | ||
218 | h8300-*-*) | |
219 | # Target: H8300 processor | |
220 | gdb_target_obs="h8300-tdep.o" | |
221 | gdb_sim=../sim/h8300/libsim.a | |
222 | ;; | |
223 | ||
224 | hppa*-*-linux*) | |
225 | # Target: HP PA-RISC running Linux | |
226 | gdb_target_obs="hppa-linux-tdep.o glibc-tdep.o \ | |
227 | linux-tdep.o solib-svr4.o symfile-mem.o" | |
228 | ;; | |
229 | hppa*-*-netbsd*) | |
230 | # Target: NetBSD/hppa | |
231 | gdb_target_obs="hppa-bsd-tdep.o hppa-nbsd-tdep.o solib-svr4.o" | |
232 | ;; | |
233 | hppa*-*-openbsd*) | |
234 | # Target: OpenBSD/hppa | |
235 | gdb_target_obs="hppa-bsd-tdep.o hppa-obsd-tdep.o solib-svr4.o" | |
236 | ;; | |
237 | ||
238 | i[34567]86-*-darwin*) | |
239 | # Target: Darwin/i386 | |
240 | gdb_target_obs="i386-darwin-tdep.o solib-darwin.o" | |
241 | if test "x$enable_64_bit_bfd" = "xyes"; then | |
242 | # Target: GNU/Linux x86-64 | |
243 | gdb_target_obs="amd64-darwin-tdep.o ${gdb_target_obs}" | |
244 | fi | |
245 | ;; | |
246 | i[34567]86-*-dicos*) | |
247 | # Target: DICOS/i386 | |
248 | gdb_target_obs="dicos-tdep.o i386-dicos-tdep.o" | |
249 | ;; | |
250 | i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu) | |
251 | # Target: FreeBSD/i386 | |
252 | gdb_target_obs="i386-bsd-tdep.o i386-fbsd-tdep.o " | |
253 | ;; | |
254 | i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu) | |
255 | # Target: NetBSD/i386 | |
256 | gdb_target_obs="i386-bsd-tdep.o i386-nbsd-tdep.o " | |
257 | ;; | |
258 | i[34567]86-*-openbsd*) | |
259 | # Target: OpenBSD/i386 | |
260 | gdb_target_obs="i386-bsd-tdep.o i386-obsd-tdep.o bsd-uthread.o" | |
261 | ;; | |
262 | i[34567]86-*-nto*) | |
263 | # Target: Intel 386 running qnx6. | |
264 | gdb_target_obs="solib-svr4.o \ | |
265 | i386-nto-tdep.o nto-tdep.o" | |
266 | build_gdbserver=yes | |
267 | ;; | |
268 | i[34567]86-*-solaris2* | x86_64-*-solaris2*) | |
269 | # Target: Solaris x86_64 | |
270 | gdb_target_obs="${i386_tobjs} ${amd64_tobjs} \ | |
271 | amd64-sol2-tdep.o i386-sol2-tdep.o sol2-tdep.o \ | |
272 | solib-svr4.o" | |
273 | ;; | |
274 | i[34567]86-*-linux*) | |
275 | # Target: Intel 386 running GNU/Linux | |
276 | gdb_target_obs="i386-linux-tdep.o \ | |
277 | glibc-tdep.o \ | |
278 | solib-svr4.o symfile-mem.o \ | |
279 | linux-tdep.o linux-record.o" | |
280 | if test "x$enable_64_bit_bfd" = "xyes"; then | |
281 | # Target: GNU/Linux x86-64 | |
282 | gdb_target_obs="amd64-linux-tdep.o ${gdb_target_obs}" | |
283 | fi | |
284 | build_gdbserver=yes | |
285 | ;; | |
286 | i[34567]86-*-gnu*) | |
287 | # Target: Intel 386 running the GNU Hurd | |
288 | gdb_target_obs="i386-gnu-tdep.o solib-svr4.o" | |
289 | ;; | |
290 | i[34567]86-*-cygwin*) | |
291 | # Target: Intel 386 running win32 | |
292 | gdb_target_obs="i386-cygwin-tdep.o windows-tdep.o" | |
293 | build_gdbserver=yes | |
294 | ;; | |
295 | i[34567]86-*-mingw32*) | |
296 | # Target: Intel 386 running win32 | |
297 | gdb_target_obs="i386-cygwin-tdep.o windows-tdep.o" | |
298 | build_gdbserver=yes | |
299 | ;; | |
300 | i[34567]86-*-go32* | i[34567]86-*-msdosdjgpp*) | |
301 | # Target: i386 running DJGPP/go32. | |
302 | gdb_target_obs="i386-go32-tdep.o" | |
303 | ;; | |
304 | ||
305 | ia64-*-linux*) | |
306 | # Target: Intel IA-64 running GNU/Linux | |
307 | gdb_target_obs="ia64-linux-tdep.o linux-tdep.o \ | |
308 | solib-svr4.o symfile-mem.o" | |
309 | build_gdbserver=yes | |
310 | ;; | |
311 | ia64-*-*vms*) | |
312 | # Target: Intel IA-64 running OpenVMS | |
313 | gdb_target_obs="ia64-vms-tdep.o" | |
314 | ;; | |
315 | ||
316 | iq2000-*-*) | |
317 | gdb_target_obs="iq2000-tdep.o" | |
318 | gdb_sim=../sim/iq2000/libsim.a | |
319 | ;; | |
320 | ||
321 | lm32-*-*) | |
322 | gdb_target_obs="lm32-tdep.o" | |
323 | gdb_sim=../sim/lm32/libsim.a | |
324 | ;; | |
325 | ||
326 | m32c-*-*) | |
327 | # Target: Renesas M32C family | |
328 | gdb_target_obs="m32c-tdep.o" | |
329 | # There may also be a SID / CGEN simulator for this, | |
330 | # but we do have DJ Delorie's mini-sim. | |
331 | gdb_sim=../sim/m32c/libsim.a | |
332 | ;; | |
333 | ||
334 | m32r*-*-linux*) | |
335 | # Target: Renesas M32R running GNU/Linux | |
336 | gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o \ | |
337 | glibc-tdep.o solib-svr4.o symfile-mem.o \ | |
338 | linux-tdep.o" | |
339 | gdb_sim=../sim/m32r/libsim.a | |
340 | build_gdbserver=yes | |
341 | ;; | |
342 | m32r*-*-*) | |
343 | # Target: Renesas m32r processor | |
344 | gdb_target_obs="m32r-tdep.o" | |
345 | gdb_sim=../sim/m32r/libsim.a | |
346 | ;; | |
347 | ||
348 | m68hc11*-*-*|m6811*-*-*) | |
349 | # Target: Motorola 68HC11 processor | |
350 | gdb_target_obs="m68hc11-tdep.o" | |
351 | gdb_sim=../sim/m68hc11/libsim.a | |
352 | ;; | |
353 | ||
354 | m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \ | |
355 | fido-*-elf*) | |
356 | # Target: Motorola m68k embedded | |
357 | gdb_target_obs="m68k-tdep.o" | |
358 | ;; | |
359 | m68*-*-linux*) | |
360 | # Target: Motorola m68k with a.out and ELF | |
361 | gdb_target_obs="m68k-tdep.o m68k-linux-tdep.o solib-svr4.o \ | |
362 | linux-tdep.o glibc-tdep.o symfile-mem.o" | |
363 | build_gdbserver=yes | |
364 | ;; | |
365 | m68*-*-netbsd* | m68*-*-knetbsd*-gnu) | |
366 | # Target: NetBSD/m68k | |
367 | gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o" | |
368 | ;; | |
369 | m68*-*-openbsd*) | |
370 | # Target: OpenBSD/m68k | |
371 | gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o" | |
372 | ;; | |
373 | ||
374 | m88*-*-openbsd*) | |
375 | # Target: OpenBSD/m88k | |
376 | gdb_target_obs="m88k-tdep.o" | |
377 | ;; | |
378 | ||
379 | mep-*-*) | |
380 | # Target: Toshiba Media Processor (MEP) | |
381 | gdb_target_obs="mep-tdep.o" | |
382 | # No sim needed. Target uses SID. | |
383 | ;; | |
384 | ||
385 | microblaze*-linux-*|microblaze*-*-linux*) | |
386 | # Target: Xilinx MicroBlaze running Linux | |
387 | gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o solib-svr4.o \ | |
388 | symfile-mem.o linux-tdep.o" | |
389 | gdb_sim=../sim/microblaze/libsim.a | |
390 | ;; | |
391 | microblaze*-*-*) | |
392 | # Target: Xilinx MicroBlaze running standalone | |
393 | gdb_target_obs="microblaze-tdep.o" | |
394 | gdb_sim=../sim/microblaze/libsim.a | |
395 | ;; | |
396 | ||
397 | mips*-*-linux*) | |
398 | # Target: Linux/MIPS | |
399 | gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \ | |
400 | solib-svr4.o symfile-mem.o linux-tdep.o" | |
401 | gdb_sim=../sim/mips/libsim.a | |
402 | build_gdbserver=yes | |
403 | ;; | |
404 | mips*-*-netbsd* | mips*-*-knetbsd*-gnu) | |
405 | # Target: MIPS running NetBSD | |
406 | gdb_target_obs="mips-tdep.o mips-nbsd-tdep.o" | |
407 | gdb_sim=../sim/mips/libsim.a | |
408 | ;; | |
409 | mips*-*-freebsd*) | |
410 | # Target: MIPS running FreeBSD | |
411 | gdb_target_obs="mips-tdep.o mips-fbsd-tdep.o" | |
412 | gdb_sim=../sim/mips/libsim.a | |
413 | ;; | |
414 | mips64*-*-openbsd*) | |
415 | # Target: OpenBSD/mips64 | |
416 | gdb_target_obs="mips-tdep.o mips64-obsd-tdep.o" | |
417 | ;; | |
418 | mips*-sde*-elf*) | |
419 | # Target: MIPS SDE | |
420 | gdb_target_obs="mips-tdep.o mips-sde-tdep.o" | |
421 | gdb_sim=../sim/mips/libsim.a | |
422 | ;; | |
423 | mips*-*-elf) | |
424 | # Target: MIPS ELF | |
425 | gdb_target_obs="mips-tdep.o" | |
426 | gdb_sim=../sim/mips/libsim.a | |
427 | ;; | |
428 | mips*-*-*) | |
429 | # Target: MIPS | |
430 | gdb_target_obs="mips-tdep.o" | |
431 | gdb_sim=../sim/mips/libsim.a | |
432 | ;; | |
433 | ||
434 | mn10300-*-*) | |
435 | # Target: Matsushita mn10300 | |
436 | gdb_target_obs="mn10300-tdep.o" | |
437 | gdb_sim=../sim/mn10300/libsim.a | |
438 | ;; | |
439 | ||
440 | msp430*-*-elf) | |
441 | gdb_target_obs="msp430-tdep.o" | |
442 | gdb_sim=../sim/msp430/libsim.a | |
443 | ;; | |
444 | ||
445 | mt-*-*) | |
446 | # Target: Morpho Technologies ms1 processor | |
447 | gdb_target_obs="mt-tdep.o" | |
448 | ;; | |
449 | ||
450 | nds32*-*-elf) | |
451 | # Target: AndesTech NDS32 core | |
452 | gdb_target_obs="nds32-tdep.o" | |
453 | ;; | |
454 | ||
455 | nios2*-*-linux*) | |
456 | # Target: Altera Nios II running Linux | |
457 | gdb_target_obs="nios2-tdep.o nios2-linux-tdep.o solib-svr4.o \ | |
458 | symfile-mem.o glibc-tdep.o linux-tdep.o" | |
459 | ;; | |
460 | ||
461 | nios2*-*-*) | |
462 | # Target: Altera Nios II bare-metal | |
463 | gdb_target_obs="nios2-tdep.o" | |
464 | ;; | |
465 | ||
466 | powerpc*-*-freebsd*) | |
467 | # Target: FreeBSD/powerpc | |
468 | gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \ | |
469 | ppc-fbsd-tdep.o \ | |
470 | ravenscar-thread.o ppc-ravenscar-thread.o" | |
471 | ;; | |
472 | ||
473 | powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu) | |
474 | # Target: NetBSD/powerpc | |
475 | gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-nbsd-tdep.o \ | |
476 | ravenscar-thread.o ppc-ravenscar-thread.o" | |
477 | gdb_sim=../sim/ppc/libsim.a | |
478 | ;; | |
479 | powerpc-*-openbsd*) | |
480 | # Target: OpenBSD/powerpc | |
481 | gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-obsd-tdep.o \ | |
482 | ravenscar-thread.o ppc-ravenscar-thread.o" | |
483 | ;; | |
484 | powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*) | |
485 | # Target: PowerPC running AIX | |
486 | gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \ | |
487 | ppc-sysv-tdep.o solib-aix.o \ | |
488 | ravenscar-thread.o ppc-ravenscar-thread.o" | |
489 | ;; | |
490 | powerpc*-*-linux*) | |
491 | # Target: PowerPC running Linux | |
492 | gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \ | |
493 | ppc64-tdep.o solib-svr4.o solib-spu.o \ | |
494 | spu-multiarch.o \ | |
495 | glibc-tdep.o symfile-mem.o linux-tdep.o \ | |
496 | ravenscar-thread.o ppc-ravenscar-thread.o \ | |
497 | linux-record.o " | |
498 | gdb_sim=../sim/ppc/libsim.a | |
499 | build_gdbserver=yes | |
500 | ;; | |
501 | powerpc-*-lynx*178) | |
502 | # Target: PowerPC running Lynx178. | |
503 | gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \ | |
504 | xcoffread.o ppc-sysv-tdep.o \ | |
505 | ravenscar-thread.o ppc-ravenscar-thread.o" | |
506 | ;; | |
507 | powerpc*-*-*) | |
508 | # Target: PowerPC running eabi | |
509 | gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o solib-svr4.o \ | |
510 | ravenscar-thread.o ppc-ravenscar-thread.o" | |
511 | gdb_sim=../sim/ppc/libsim.a | |
512 | ;; | |
513 | ||
514 | s390*-*-linux*) | |
515 | # Target: S390 running Linux | |
516 | gdb_target_obs="s390-linux-tdep.o solib-svr4.o linux-tdep.o \ | |
517 | linux-record.o" | |
518 | build_gdbserver=yes | |
519 | ;; | |
520 | ||
521 | rl78-*-elf) | |
522 | # Target: Renesas rl78 | |
523 | gdb_target_obs="rl78-tdep.o" | |
524 | gdb_sim=../sim/rl78/libsim.a | |
525 | ;; | |
526 | ||
527 | rx-*-elf) | |
528 | # Target: Renesas RX | |
529 | gdb_target_obs="rx-tdep.o" | |
530 | gdb_sim=../sim/rx/libsim.a | |
531 | ;; | |
532 | ||
533 | score-*-*) | |
534 | # Target: S+core embedded system | |
535 | gdb_target_obs="score-tdep.o" | |
536 | build_gdbserver=yes | |
537 | ;; | |
538 | ||
539 | sh*-*-linux*) | |
540 | # Target: GNU/Linux Super-H | |
541 | gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o \ | |
542 | solib-svr4.o symfile-mem.o \ | |
543 | glibc-tdep.o linux-tdep.o" | |
544 | gdb_sim=../sim/sh/libsim.a | |
545 | build_gdbserver=yes | |
546 | ;; | |
547 | sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu) | |
548 | # Target: NetBSD/sh | |
549 | gdb_target_obs="sh-tdep.o sh-nbsd-tdep.o" | |
550 | gdb_sim=../sim/sh/libsim.a | |
551 | ;; | |
552 | sh*-*-openbsd*) | |
553 | # Target: OpenBSD/sh | |
554 | gdb_target_obs="sh-tdep.o sh64-tdep.o sh-nbsd-tdep.o" | |
555 | ;; | |
556 | sh64-*-elf*) | |
557 | # Target: Renesas/Super-H 64 bit with simulator | |
558 | gdb_target_obs="sh-tdep.o sh64-tdep.o" | |
559 | gdb_sim=../sim/sh64/libsim.a | |
560 | ;; | |
561 | sh*) | |
562 | # Target: Embedded Renesas Super-H processor | |
563 | gdb_target_obs="sh-tdep.o sh64-tdep.o" | |
564 | gdb_sim=../sim/sh/libsim.a | |
565 | ;; | |
566 | ||
567 | sparc-*-linux*) | |
568 | # Target: GNU/Linux SPARC | |
569 | gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \ | |
570 | sparc-linux-tdep.o solib-svr4.o symfile-mem.o \ | |
571 | linux-tdep.o \ | |
572 | ravenscar-thread.o sparc-ravenscar-thread.o" | |
573 | if test "x$enable_64_bit_bfd" = "xyes"; then | |
574 | # Target: GNU/Linux UltraSPARC | |
575 | gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \ | |
576 | sparc64-linux-tdep.o ${gdb_target_obs}" | |
577 | fi | |
578 | build_gdbserver=yes | |
579 | ;; | |
580 | sparc64-*-linux*) | |
581 | # Target: GNU/Linux UltraSPARC | |
582 | gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \ | |
583 | sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \ | |
584 | sparc-linux-tdep.o solib-svr4.o linux-tdep.o \ | |
585 | ravenscar-thread.o sparc-ravenscar-thread.o" | |
586 | build_gdbserver=yes | |
587 | ;; | |
588 | sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu) | |
589 | # Target: FreeBSD/sparc64 | |
590 | gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64-fbsd-tdep.o \ | |
591 | ravenscar-thread.o sparc-ravenscar-thread.o" | |
592 | ;; | |
593 | sparc-*-netbsd* | sparc-*-knetbsd*-gnu) | |
594 | # Target: NetBSD/sparc | |
595 | gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o \ | |
596 | ravenscar-thread.o sparc-ravenscar-thread.o" | |
597 | ;; | |
598 | sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) | |
599 | # Target: NetBSD/sparc64 | |
600 | gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc-tdep.o \ | |
601 | sparc-nbsd-tdep.o \ | |
602 | ravenscar-thread.o sparc-ravenscar-thread.o" | |
603 | ;; | |
604 | sparc-*-openbsd*) | |
605 | # Target: OpenBSD/sparc | |
606 | gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \ | |
607 | nbsd-tdep.o bsd-uthread.o \ | |
608 | ravenscar-thread.o sparc-ravenscar-thread.o" | |
609 | ;; | |
610 | sparc64-*-openbsd*) | |
611 | # Target: OpenBSD/sparc64 | |
612 | gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc64-obsd-tdep.o \ | |
613 | sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \ | |
614 | nbsd-tdep.o bsd-uthread.o \ | |
615 | ravenscar-thread.o sparc-ravenscar-thread.o" | |
616 | ;; | |
617 | sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*) | |
618 | # Target: Solaris UltraSPARC | |
619 | gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \ | |
620 | sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \ | |
621 | ravenscar-thread.o sparc-ravenscar-thread.o" | |
622 | ;; | |
623 | sparc-*-*) | |
624 | # Target: SPARC | |
625 | gdb_target_obs="sparc-tdep.o \ | |
626 | ravenscar-thread.o sparc-ravenscar-thread.o" | |
627 | gdb_sim=../sim/erc32/libsim.a | |
628 | ;; | |
629 | sparc64-*-*) | |
630 | # Target: UltraSPARC | |
631 | gdb_target_obs="sparc-tdep.o sparc64-tdep.o \ | |
632 | ravenscar-thread.o sparc-ravenscar-thread.o" | |
633 | ;; | |
634 | ||
635 | spu*-*-*) | |
636 | # Target: Cell BE SPU | |
637 | gdb_target_obs="spu-tdep.o" | |
638 | build_gdbserver=yes | |
639 | ;; | |
640 | ||
641 | tic6x-*-*linux) | |
642 | # Target: GNU/Linux TI C6x | |
643 | gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \ | |
644 | glibc-tdep.o linux-tdep.o" | |
645 | ;; | |
646 | ||
647 | tic6x-*-*) | |
648 | # Target: TI C6X | |
649 | gdb_target_obs="tic6x-tdep.o" | |
650 | ;; | |
651 | ||
652 | tilegx-*-linux*) | |
653 | # Target: TILE-Gx | |
654 | gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \ | |
655 | symfile-mem.o glibc-tdep.o linux-tdep.o" | |
656 | build_gdbserver=yes | |
657 | ;; | |
658 | ||
659 | xstormy16-*-*) | |
660 | # Target: Sanyo Xstormy16a processor | |
661 | gdb_target_obs="xstormy16-tdep.o" | |
662 | # No simulator libraries are needed -- target uses SID. | |
663 | ;; | |
664 | ||
665 | ft32-*-elf) | |
666 | gdb_target_obs="ft32-tdep.o" | |
667 | gdb_sim=../sim/ft32/libsim.a | |
668 | ;; | |
669 | ||
670 | v850*-*-elf | v850*-*-rtems*) | |
671 | # Target: NEC V850 processor | |
672 | gdb_target_obs="v850-tdep.o" | |
673 | gdb_sim=../sim/v850/libsim.a | |
674 | ;; | |
675 | ||
676 | vax-*-netbsd* | vax-*-knetbsd*-gnu) | |
677 | # Target: NetBSD/vax | |
678 | gdb_target_obs="vax-tdep.o solib-svr4.o" | |
679 | ;; | |
680 | vax-*-openbsd*) | |
681 | # Target: OpenBSD/vax | |
682 | gdb_target_obs="vax-tdep.o" | |
683 | ;; | |
684 | vax-*-*) | |
685 | # Target: VAX | |
686 | gdb_target_obs="vax-tdep.o" | |
687 | ;; | |
688 | ||
689 | x86_64-*-darwin*) | |
690 | # Target: Darwin/x86-64 | |
691 | gdb_target_obs="${i386_tobjs} \ | |
692 | i386-darwin-tdep.o amd64-darwin-tdep.o \ | |
693 | solib-darwin.o" | |
694 | ;; | |
695 | ||
696 | x86_64-*-dicos*) | |
697 | # Target: DICOS/x86-64 | |
698 | gdb_target_obs="${i386_tobjs} \ | |
699 | dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o" | |
700 | ;; | |
701 | x86_64-*-elf*) | |
702 | gdb_target_obs="${i386_tobjs}" | |
703 | ;; | |
704 | x86_64-*-linux*) | |
705 | # Target: GNU/Linux x86-64 | |
706 | gdb_target_obs="amd64-linux-tdep.o ${i386_tobjs} \ | |
707 | i386-linux-tdep.o glibc-tdep.o \ | |
708 | solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o" | |
709 | build_gdbserver=yes | |
710 | ;; | |
711 | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) | |
712 | # Target: FreeBSD/amd64 | |
713 | gdb_target_obs="amd64-fbsd-tdep.o ${i386_tobjs} \ | |
714 | i386-bsd-tdep.o i386-fbsd-tdep.o" | |
715 | ;; | |
716 | x86_64-*-mingw* | x86_64-*-cygwin*) | |
717 | # Target: MingW/amd64 | |
718 | gdb_target_obs="amd64-windows-tdep.o \ | |
719 | ${i386_tobjs} i386-cygwin-tdep.o \ | |
720 | windows-tdep.o" | |
721 | build_gdbserver=yes | |
722 | ;; | |
723 | x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu) | |
724 | # Target: NetBSD/amd64 | |
725 | gdb_target_obs="amd64-nbsd-tdep.o ${i386_tobjs}" | |
726 | ;; | |
727 | x86_64-*-openbsd*) | |
728 | # Target: OpenBSD/amd64 | |
729 | gdb_target_obs="amd64-obsd-tdep.o ${i386_tobjs} \ | |
730 | i386-bsd-tdep.o i386-obsd-tdep.o \ | |
731 | bsd-uthread.o" | |
732 | ;; | |
733 | x86_64-*-rtems*) | |
734 | gdb_target_obs="${amd64_tobjs} ${i386_tobjs} i386-bsd-tdep.o" | |
735 | ;; | |
736 | xtensa*-*-linux*) gdb_target=linux | |
737 | # Target: GNU/Linux Xtensa | |
738 | gdb_target_obs="xtensa-linux-tdep.o symfile-mem.o linux-tdep.o" | |
739 | build_gdbserver=yes | |
740 | ;; | |
741 | ||
742 | esac | |
743 | ||
744 | # Put them together. | |
745 | ||
746 | gdb_target_obs="${cpu_obs} ${os_obs} ${gdb_target_obs}" | |
747 | ||
748 | # map target onto default OS ABI | |
749 | ||
750 | case "${targ}" in | |
751 | *-*-freebsd* | *-*-kfreebsd*-gnu) | |
752 | gdb_osabi=GDB_OSABI_FREEBSD ;; | |
753 | *-*-linux* | *-*-uclinux*) | |
754 | gdb_osabi=GDB_OSABI_LINUX ;; | |
755 | *-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;; | |
756 | m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;; | |
757 | *-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD ;; | |
758 | *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;; | |
759 | *-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below | |
760 | *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;; | |
761 | *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;; | |
762 | *-*-mingw* | *-*-cygwin*) | |
763 | gdb_osabi=GDB_OSABI_CYGWIN ;; | |
764 | *-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;; | |
765 | *-*-symbianelf*) | |
766 | gdb_osabi=GDB_OSABI_SYMBIAN ;; | |
767 | powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*) | |
768 | gdb_osabi=GDB_OSABI_AIX ;; | |
769 | esac | |
770 | ||
771 | # Check whether this target supports gcore. | |
772 | # Such target has to call set_gdbarch_find_memory_regions. | |
773 | gdb_have_gcore=false | |
774 | for t in x ${gdb_target_obs}; do | |
775 | if test "$t" = linux-tdep.o; then | |
776 | gdb_have_gcore=true | |
777 | fi | |
778 | done |