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