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