Add moxie simulator
[deliverable/binutils-gdb.git] / gdb / configure.tgt
CommitLineData
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:
a4ce5b0d 5# gdb_target_obs target-specific object files to use
9b624dbe 6# gdb_sim simulator library for target
fa987fc4
UW
7# gdb_osabi default OS ABI to use with target
8# build_gdbserver set to "yes" if gdbserver supports target
c906108c 9
d0c678e6 10case $targ in
7ce59000 11 d10v-*-* | \
483367ee
DJ
12 hppa*-*-hiux* | \
13 i[34567]86-ncr-* | \
14 i[34567]86-*-lynxos* | \
15 m68*-cisco*-* | \
16 m68*-tandem-* | \
17 m68*-*-os68k* | \
ad527d2e 18 mips*-*-pe | \
483367ee 19 rs6000-*-lynxos* | \
ad527d2e 20 sh*-*-pe | \
483367ee 21 null)
d0c678e6 22 echo "*** Configuration $targ is obsolete." >&2
483367ee
DJ
23 echo "*** Support has been REMOVED." >&2
24 exit 1
25 ;;
26esac
27
c906108c
SS
28# map target info into gdb names.
29
d0c678e6 30case "${targ}" in
c906108c 31
732cd360 32alpha*-*-osf*)
a4ce5b0d
UW
33 # Target: Little-endian Alpha running OSF/1
34 gdb_target_obs="alpha-tdep.o alpha-osf1-tdep.o alpha-mdebug-tdep.o"
732cd360
UW
35 ;;
36alpha*-*-linux*)
a4ce5b0d
UW
37 # Target: Little-endian Alpha running Linux
38 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-linux-tdep.o \
39 solib.o solib-svr4.o"
732cd360 40 ;;
fa987fc4 41alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
a4ce5b0d
UW
42 # Target: FreeBSD/alpha
43 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
44 alphafbsd-tdep.o corelow.o solib.o solib-svr4.o"
fa987fc4 45 ;;
69489883 46alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
a4ce5b0d
UW
47 # Target: NetBSD/alpha
48 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
49 alphanbsd-tdep.o nbsd-tdep.o corelow.o solib.o \
50 solib-svr4.o"
732cd360
UW
51 ;;
52alpha*-*-openbsd*)
a4ce5b0d
UW
53 # Target: OpenBSD/alpha
54 gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
55 alphanbsd-tdep.o alphaobsd-tdep.o nbsd-tdep.o \
56 obsd-tdep.o corelow.o solib.o solib-svr4.o"
732cd360
UW
57 ;;
58alpha*-*-*)
a4ce5b0d
UW
59 # Target: Alpha
60 gdb_target_obs="alpha-tdep.o"
732cd360 61 ;;
c906108c 62
732cd360 63am33_2.0*-*-linux*)
a4ce5b0d
UW
64 # Target: Matsushita mn10300 (AM33) running Linux
65 gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o corelow.o \
66 solib.o solib-svr4.o"
732cd360 67 ;;
63a09be5 68
68070c10 69arm*-wince-pe | arm*-*-mingw32ce*)
a4ce5b0d
UW
70 # Target: ARM based machine running Windows CE (win32)
71 gdb_target_obs="arm-tdep.o arm-wince-tdep.o corelow.o \
72 solib.o solib-target.o"
732cd360
UW
73 build_gdbserver=yes
74 ;;
75arm*-*-linux*)
a4ce5b0d
UW
76 # Target: ARM based machine running GNU/Linux
77 gdb_target_obs="arm-tdep.o arm-linux-tdep.o glibc-tdep.o \
4aa995e1 78 solib.o solib-svr4.o symfile-mem.o corelow.o linux-tdep.o"
732cd360
UW
79 build_gdbserver=yes
80 ;;
69489883 81arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
a4ce5b0d
UW
82 # Target: NetBSD/arm
83 gdb_target_obs="arm-tdep.o armnbsd-tdep.o solib.o solib-svr4.o"
732cd360
UW
84 ;;
85arm*-*-openbsd*)
a4ce5b0d
UW
86 # Target: OpenBSD/arm
87 gdb_target_obs="arm-tdep.o armbsd-tdep.o armobsd-tdep.o obsd-tdep.o \
88 corelow.o solib.o solib-svr4.o"
732cd360 89 ;;
fa987fc4 90arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
a4ce5b0d
UW
91 # Target: ARM embedded system
92 gdb_target_obs="arm-tdep.o"
9b624dbe 93 gdb_sim=../sim/arm/libsim.a
732cd360
UW
94 ;;
95
96avr-*-*)
a4ce5b0d
UW
97 # Target: AVR
98 gdb_target_obs="avr-tdep.o"
9b624dbe
UW
99 # There is no simulator provided with gdb (yet).
100 # See <http://savannah.gnu.org/projects/simulavr/>
101 # for the simulator used during development of avr
102 # support for gdb.
732cd360
UW
103 ;;
104
105cris*)
a4ce5b0d
UW
106 # Target: CRIS
107 gdb_target_obs="cris-tdep.o corelow.o solib.o solib-svr4.o"
732cd360
UW
108 ;;
109
732cd360 110frv-*-*)
a4ce5b0d
UW
111 # Target: Fujitsu FRV processor
112 gdb_target_obs="frv-tdep.o frv-linux-tdep.o \
113 solib.o solib-frv.o corelow.o"
9b624dbe 114 gdb_sim=../sim/frv/libsim.a
732cd360
UW
115 ;;
116
d7066cce
AG
117moxie-*-elf)
118 gdb_target_obs="moxie-tdep.o"
119 # Add this once the moxie sim has been committed.
120 # gdb_sim=../sim/moxie/libsim.a
121 ;;
122
732cd360 123h8300-*-*)
a4ce5b0d
UW
124 # Target: H8300 with HMS monitor and H8 simulator
125 gdb_target_obs="h8300-tdep.o monitor.o dsrec.o"
9b624dbe 126 gdb_sim=../sim/h8300/libsim.a
732cd360
UW
127 ;;
128
129hppa*-*-hpux*)
a4ce5b0d
UW
130 # Target: HP PA-RISC running hpux
131 gdb_target_obs="hppa-tdep.o hppa-hpux-tdep.o corelow.o \
132 solib.o solib-som.o solib-pa64.o"
732cd360
UW
133 ;;
134hppa*-*-linux*)
a4ce5b0d
UW
135 # Target: HP PA-RISC running Linux
136 gdb_target_obs="hppa-tdep.o hppa-linux-tdep.o glibc-tdep.o \
137 solib.o solib-svr4.o symfile-mem.o"
732cd360 138 ;;
af5ca30d
NH
139hppa*-*-netbsd*)
140 # Target: NetBSD/hppa
141 gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppanbsd-tdep.o \
142 corelow.o solib.o solib-svr4.o"
143 ;;
732cd360 144hppa*-*-openbsd*)
a4ce5b0d 145 # Target: OpenBSD/hppa
af5ca30d 146 gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppaobsd-tdep.o \
a4ce5b0d 147 corelow.o solib.o solib-svr4.o"
732cd360
UW
148 ;;
149hppa*-*-*)
a4ce5b0d
UW
150 # Target: HP PA-RISC
151 gdb_target_obs="hppa-tdep.o"
732cd360 152 ;;
c906108c 153
58529c02 154i[34567]86-*-darwin* | x86_64-*-darwin*)
a80b95ba
TG
155 # Target: Darwin/i386
156 gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
cf1061c0 157 i386-darwin-tdep.o solib.o solib-darwin.o"
a80b95ba 158 ;;
a15c5c83
PA
159i[34567]86-*-dicos*)
160 # Target: DICOS/i386
161 gdb_target_obs="i386-tdep.o i387-tdep.o \
4c1d2973 162 dicos-tdep.o i386-dicos-tdep.o \
a15c5c83
PA
163 corelow.o solib.o solib-target.o"
164 ;;
fa987fc4 165i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
a4ce5b0d
UW
166 # Target: FreeBSD/i386
167 gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
168 bsd-uthread.o corelow.o solib.o solib-svr4.o"
fa987fc4 169 ;;
48184fd4 170i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
a4ce5b0d
UW
171 # Target: NetBSD/i386
172 gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o \
173 nbsd-tdep.o corelow.o solib.o solib-svr4.o"
732cd360
UW
174 ;;
175i[34567]86-*-openbsd*)
a4ce5b0d
UW
176 # Target: OpenBSD/i386
177 gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
178 bsd-uthread.o corelow.o solib.o solib-svr4.o"
732cd360
UW
179 ;;
180i[34567]86-*-nto*)
a4ce5b0d
UW
181 # Target: Intel 386 running qnx6.
182 gdb_target_obs="i386-tdep.o i387-tdep.o corelow.o solib.o solib-svr4.o \
183 i386-nto-tdep.o nto-tdep.o"
732cd360
UW
184 ;;
185i[34567]86-*-solaris2.1[0-9]*)
a4ce5b0d
UW
186 # Target: Solaris x86_64
187 gdb_target_obs="i386-tdep.o i387-tdep.o amd64-tdep.o amd64-sol2-tdep.o \
188 i386-sol2-tdep.o sol2-tdep.o \
189 corelow.o solib.o solib-svr4.o"
732cd360
UW
190 ;;
191i[34567]86-*-solaris*)
a4ce5b0d
UW
192 # Target: Solaris x86
193 gdb_target_obs="i386-tdep.o i387-tdep.o i386-sol2-tdep.o sol2-tdep.o \
194 corelow.o solib.o solib-svr4.o"
732cd360
UW
195 ;;
196i[34567]86-*-linux*)
a4ce5b0d
UW
197 # Target: Intel 386 running GNU/Linux
198 gdb_target_obs="i386-tdep.o i386-linux-tdep.o glibc-tdep.o i387-tdep.o \
b7f6bf22
HZ
199 solib.o solib-svr4.o symfile-mem.o corelow.o \
200 linux-tdep.o linux-record.o"
0ca8834f
JM
201 if test "x$enable_64_bit_bfd" = "xyes"; then
202 # Target: GNU/Linux x86-64
203 gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o ${gdb_target_obs}"
204 fi
732cd360
UW
205 build_gdbserver=yes
206 ;;
207i[34567]86-*-gnu*)
a4ce5b0d
UW
208 # Target: Intel 386 running the GNU Hurd
209 gdb_target_obs="i386-tdep.o i387-tdep.o i386gnu-tdep.o \
210 solib.o solib-svr4.o"
732cd360
UW
211 ;;
212i[34567]86-*-cygwin*)
a4ce5b0d
UW
213 # Target: Intel 386 running win32
214 gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
31b060a2 215 solib-target.o corelow.o windows-tdep.o"
732cd360
UW
216 build_gdbserver=yes
217 ;;
218i[34567]86-*-mingw32*)
a4ce5b0d
UW
219 # Target: Intel 386 running win32
220 gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
31b060a2 221 solib-target.o corelow.o windows-tdep.o"
732cd360
UW
222 build_gdbserver=yes
223 ;;
224i[34567]86-*-*)
a4ce5b0d
UW
225 # Target: i386
226 gdb_target_obs="i386-tdep.o i387-tdep.o"
732cd360
UW
227 ;;
228
229ia64-*-linux*)
a4ce5b0d
UW
230 # Target: Intel IA-64 running GNU/Linux
231 gdb_target_obs="ia64-tdep.o ia64-linux-tdep.o \
232 solib.o solib-svr4.o symfile-mem.o"
732cd360
UW
233 build_gdbserver=yes
234 ;;
235ia64*-*-*)
a4ce5b0d
UW
236 # Target: Intel IA-64
237 gdb_target_obs="ia64-tdep.o"
732cd360
UW
238 ;;
239
240iq2000-*-*)
a4ce5b0d 241 gdb_target_obs="iq2000-tdep.o"
9b624dbe 242 gdb_sim=../sim/iq2000/libsim.a
732cd360
UW
243 ;;
244
245m32c-*-*)
a4ce5b0d
UW
246 # Target: Renesas M32C family
247 gdb_target_obs="m32c-tdep.o prologue-value.o"
9b624dbe
UW
248 # There may also be a SID / CGEN simulator for this,
249 # but we do have DJ Delorie's mini-sim.
250 gdb_sim=../sim/m32c/libsim.a
732cd360
UW
251 ;;
252
253m32r*-*-linux*)
a4ce5b0d
UW
254 # Target: Renesas M32R running GNU/Linux
255 gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o remote-m32r-sdi.o \
256 glibc-tdep.o solib.o solib-svr4.o symfile-mem.o"
9b624dbe 257 gdb_sim=../sim/m32r/libsim.a
732cd360
UW
258 build_gdbserver=yes
259 ;;
260m32r*-*-*)
a4ce5b0d
UW
261 # Target: Renesas m32r processor
262 gdb_target_obs="m32r-tdep.o monitor.o m32r-rom.o dsrec.o \
263 remote-m32r-sdi.o"
9b624dbe 264 gdb_sim=../sim/m32r/libsim.a
732cd360
UW
265 ;;
266
267m68hc11*-*-*|m6811*-*-*)
a4ce5b0d
UW
268 # Target: Motorola 68HC11 processor
269 gdb_target_obs="m68hc11-tdep.o"
9b624dbe 270 gdb_sim=../sim/m68hc11/libsim.a
732cd360
UW
271 ;;
272
fa987fc4
UW
273m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
274fido-*-elf*)
a4ce5b0d
UW
275 # Target: Motorola m68k embedded (e.g. bug monitors)
276 gdb_target_obs="m68k-tdep.o monitor.o dbug-rom.o dsrec.o"
732cd360
UW
277 ;;
278m68*-*-linux*)
a4ce5b0d
UW
279 # Target: Motorola m68k with a.out and ELF
280 gdb_target_obs="m68k-tdep.o m68klinux-tdep.o solib.o solib-svr4.o \
281 glibc-tdep.o symfile-mem.o"
732cd360
UW
282 build_gdbserver=yes
283 ;;
69489883 284m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
a4ce5b0d
UW
285 # Target: NetBSD/m68k
286 gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o \
287 corelow.o solib.o solib-svr4.o"
732cd360
UW
288 ;;
289m68*-*-openbsd*)
a4ce5b0d
UW
290 # Target: OpenBSD/m68k
291 gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o \
292 corelow.o solib.o solib-svr4.o"
732cd360 293 ;;
732cd360
UW
294
295m88*-*-openbsd*)
a4ce5b0d
UW
296 # Target: OpenBSD/m88k
297 gdb_target_obs="m88k-tdep.o corelow.o"
732cd360
UW
298 ;;
299
300mep-*-*)
a4ce5b0d
UW
301 # Target: Toshiba Media Processor (MEP)
302 gdb_target_obs="mep-tdep.o prologue-value.o"
303 # No sim needed. Target uses SID.
732cd360
UW
304 ;;
305
306mips*-sgi-irix5*)
a4ce5b0d
UW
307 # Target: MIPS SGI running Irix 5
308 gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib.o solib-irix.o"
732cd360
UW
309 ;;
310mips*-sgi-irix6*)
a4ce5b0d
UW
311 # Target: MIPS SGI running Irix 6.x
312 gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib.o solib-irix.o"
732cd360
UW
313 ;;
314mips*-*-linux*)
a4ce5b0d 315 # Target: Linux/MIPS
db5f024e 316 gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
a4ce5b0d 317 corelow.o solib.o solib-svr4.o symfile-mem.o"
9b624dbe 318 gdb_sim=../sim/mips/libsim.a
732cd360
UW
319 build_gdbserver=yes
320 ;;
69489883 321mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
a4ce5b0d
UW
322 # Target: MIPS running NetBSD
323 gdb_target_obs="mips-tdep.o mipsnbsd-tdep.o \
324 corelow.o solib.o solib-svr4.o nbsd-tdep.o"
9b624dbe 325 gdb_sim=../sim/mips/libsim.a
732cd360
UW
326 ;;
327mips64*-*-openbsd*)
a4ce5b0d
UW
328 # Target: OpenBSD/mips64
329 gdb_target_obs="mips-tdep.o mips64obsd-tdep.o \
330 corelow.o solib.o solib-svr4.o"
732cd360
UW
331 ;;
332mips*-*-*)
a4ce5b0d
UW
333 # Target: MIPS
334 gdb_target_obs="mips-tdep.o"
9b624dbe 335 gdb_sim=../sim/mips/libsim.a
732cd360
UW
336 ;;
337
338mn10300-*-*)
a4ce5b0d
UW
339 # Target: Matsushita mn10300
340 gdb_target_obs="mn10300-tdep.o"
9b624dbe 341 gdb_sim=../sim/mn10300/libsim.a
732cd360
UW
342 ;;
343
344mt-*-*)
a4ce5b0d
UW
345 # Target: Morpho Technologies ms1 processor
346 gdb_target_obs="mt-tdep.o"
732cd360 347 ;;
61def6bd 348
69489883 349powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
a4ce5b0d
UW
350 # Target: NetBSD/powerpc
351 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcnbsd-tdep.o \
352 corelow.o solib.o solib-svr4.o"
9b624dbe 353 gdb_sim=../sim/ppc/libsim.a
732cd360
UW
354 ;;
355powerpc-*-openbsd*)
a4ce5b0d
UW
356 # Target: OpenBSD/powerpc
357 gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcobsd-tdep.o \
358 corelow.o solib.o solib-svr4.o"
732cd360 359 ;;
d9178763 360powerpc-*-aix* | rs6000-*-*)
a4ce5b0d
UW
361 # Target: PowerPC running AIX
362 gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
363 ppc-sysv-tdep.o solib.o solib-svr4.o"
732cd360 364 ;;
fa987fc4 365powerpc-*-linux* | powerpc64-*-linux*)
a4ce5b0d
UW
366 # Target: PowerPC running Linux
367 gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
368 solib.o solib-svr4.o corelow.o symfile-mem.o"
9b624dbe 369 gdb_sim=../sim/ppc/libsim.a
732cd360
UW
370 build_gdbserver=yes
371 ;;
372powerpc*-*-*)
a4ce5b0d
UW
373 # Target: PowerPC running eabi
374 gdb_target_obs="rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o \
375 dink32-rom.o ppc-sysv-tdep.o solib.o solib-svr4.o"
732cd360 376 if test -f ../sim/ppc/Makefile; then
9b624dbe 377 gdb_sim=../sim/ppc/libsim.a
732cd360
UW
378 fi
379 ;;
380
381s390*-*-*)
a4ce5b0d
UW
382 # Target: S390 running Linux
383 gdb_target_obs="s390-tdep.o solib.o solib-svr4.o"
732cd360
UW
384 build_gdbserver=yes
385 ;;
386
387score-*-*)
a4ce5b0d
UW
388 # Target: S+core embedded system
389 gdb_target_obs="score-tdep.o"
732cd360
UW
390 ;;
391
e25c958c 392sh*-*-linux*)
a4ce5b0d
UW
393 # Target: GNU/Linux Super-H
394 gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o monitor.o \
e25c958c 395 dsrec.o solib.o solib-svr4.o symfile-mem.o glibc-tdep.o"
9b624dbe 396 gdb_sim=../sim/sh/libsim.a
732cd360
UW
397 build_gdbserver=yes
398 ;;
69489883 399sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
a4ce5b0d
UW
400 # Target: NetBSD/sh
401 gdb_target_obs="sh-tdep.o shnbsd-tdep.o corelow.o solib.o solib-svr4.o"
9b624dbe 402 gdb_sim=../sim/sh/libsim.a
732cd360
UW
403 ;;
404sh*-*-openbsd*)
a4ce5b0d
UW
405 # Target: OpenBSD/sh
406 gdb_target_obs="sh-tdep.o sh64-tdep.o shnbsd-tdep.o \
407 corelow.o solib.o solib-svr4.o"
732cd360
UW
408 ;;
409sh64-*-elf*)
a4ce5b0d
UW
410 # Target: Renesas/Super-H 64 bit with simulator
411 gdb_target_obs="sh-tdep.o sh64-tdep.o"
9b624dbe 412 gdb_sim=../sim/sh64/libsim.a
732cd360
UW
413 ;;
414sh*)
a4ce5b0d
UW
415 # Target: Embedded Renesas Super-H with ICE and simulator
416 gdb_target_obs="sh-tdep.o sh64-tdep.o monitor.o dsrec.o"
9b624dbe 417 gdb_sim=../sim/sh/libsim.a
732cd360
UW
418 ;;
419
420sparc-*-linux*)
a4ce5b0d
UW
421 # Target: GNU/Linux SPARC
422 gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
423 sparc-linux-tdep.o solib.o solib-svr4.o symfile-mem.o"
0ca8834f
JM
424 if test "x$enable_64_bit_bfd" = "xyes"; then
425 # Target: GNU/Linux UltraSPARC
426 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
427 sparc64-linux-tdep.o ${gdb_target_obs}"
428 fi
732cd360
UW
429 ;;
430sparc64-*-linux*)
a4ce5b0d
UW
431 # Target: GNU/Linux UltraSPARC
432 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \
433 sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
434 sparc-linux-tdep.o solib.o solib-svr4.o"
dfb64f85 435 build_gdbserver=yes
732cd360 436 ;;
fa987fc4 437sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
a4ce5b0d
UW
438 # Target: FreeBSD/sparc64
439 gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64fbsd-tdep.o \
440 corelow.o solib.o solib-svr4.o"
fa987fc4 441 ;;
69489883 442sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
a4ce5b0d
UW
443 # Target: NetBSD/sparc
444 gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o \
445 corelow.o solib.o solib-svr4.o"
732cd360 446 ;;
69489883 447sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
a4ce5b0d
UW
448 # Target: NetBSD/sparc64
449 gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc-tdep.o \
450 sparcnbsd-tdep.o nbsd-tdep.o \
451 corelow.o solib.o solib-svr4.o"
732cd360
UW
452 ;;
453sparc-*-openbsd*)
a4ce5b0d
UW
454 # Target: OpenBSD/sparc
455 gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
456 nbsd-tdep.o obsd-tdep.o bsd-uthread.o \
457 corelow.o solib.o solib-svr4.o"
732cd360
UW
458 ;;
459sparc64-*-openbsd*)
a4ce5b0d
UW
460 # Target: OpenBSD/sparc64
461 gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc64obsd-tdep.o \
462 sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
463 nbsd-tdep.o obsd-tdep.o bsd-uthread.o \
464 corelow.o solib.o solib-svr4.o"
732cd360 465 ;;
386c036b 466sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
a4ce5b0d
UW
467 # Target: Solaris SPARC
468 gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
469 solib.o solib-svr4.o"
732cd360 470 ;;
386c036b 471sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
a4ce5b0d
UW
472 # Target: Solaris UltraSPARC
473 gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
474 sparc-sol2-tdep.o sol2-tdep.o solib.o solib-svr4.o"
732cd360
UW
475 ;;
476sparc-*-rtems*)
a4ce5b0d
UW
477 # Target: SPARC embedded with simulator
478 gdb_target_obs="sparc-tdep.o"
9b624dbe 479 gdb_sim=../sim/erc32/libsim.a
732cd360
UW
480 ;;
481sparc-*-*)
a4ce5b0d
UW
482 # Target: SPARC
483 gdb_target_obs="sparc-tdep.o"
732cd360
UW
484 ;;
485sparc64-*-*)
a4ce5b0d
UW
486 # Target: UltraSPARC
487 gdb_target_obs="sparc-tdep.o sparc64-tdep.o"
732cd360
UW
488 ;;
489
490spu*-*-*)
a4ce5b0d
UW
491 # Target: Cell BE SPU
492 gdb_target_obs="spu-tdep.o"
732cd360
UW
493 build_gdbserver=yes
494 ;;
495
496xstormy16-*-*)
a4ce5b0d
UW
497 # Target: Sanyo Xstormy16a processor
498 gdb_target_obs="xstormy16-tdep.o"
9b624dbe 499 # No simulator libraries are needed -- target uses SID.
732cd360
UW
500 ;;
501
502v850*-*-elf)
a4ce5b0d
UW
503 # Target: NEC V850 processor
504 gdb_target_obs="v850-tdep.o"
9b624dbe 505 gdb_sim=../sim/v850/libsim.a
732cd360 506 ;;
181124bc 507
69489883 508vax-*-netbsd* | vax-*-knetbsd*-gnu)
a4ce5b0d
UW
509 # Target: NetBSD/vax
510 gdb_target_obs="vax-tdep.o vaxnbsd-tdep.o \
511 corelow.o solib.o solib-svr4.o"
732cd360
UW
512 ;;
513vax-*-openbsd*)
a4ce5b0d
UW
514 # Target: OpenBSD/vax
515 gdb_target_obs="vax-tdep.o vaxobsd-tdep.o corelow.o"
732cd360
UW
516 ;;
517vax-*-*)
a4ce5b0d
UW
518 # Target: VAX running 4.2BSD or Ultrix
519 gdb_target_obs="vax-tdep.o"
732cd360
UW
520 ;;
521
a15c5c83
PA
522x86_64-*-dicos*)
523 # Target: DICOS/x86-64
524 gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
4c1d2973 525 dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o \
a15c5c83
PA
526 corelow.o solib.o solib-target.o"
527 ;;
732cd360 528x86_64-*-linux*)
a4ce5b0d
UW
529 # Target: GNU/Linux x86-64
530 gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o i386-tdep.o \
531 i387-tdep.o i386-linux-tdep.o glibc-tdep.o \
b7f6bf22
HZ
532 solib.o solib-svr4.o corelow.o symfile-mem.o linux-tdep.o \
533 linux-record.o"
732cd360
UW
534 build_gdbserver=yes
535 ;;
fa987fc4 536x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
a4ce5b0d
UW
537 # Target: FreeBSD/amd64
538 gdb_target_obs="amd64-tdep.o amd64fbsd-tdep.o i386-tdep.o \
539 i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
540 bsd-uthread.o corelow.o solib.o solib-svr4.o"
fa987fc4 541 ;;
d0761299
JB
542x86_64-*-mingw*)
543 # Target: MingW/amd64
544 gdb_target_obs="amd64-tdep.o amd64-windows-tdep.o \
545 i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
31b060a2 546 solib-target.o windows-tdep.o"
d0761299 547 ;;
69489883 548x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
a4ce5b0d
UW
549 # Target: NetBSD/amd64
550 gdb_target_obs="amd64-tdep.o amd64nbsd-tdep.o i386-tdep.o i387-tdep.o \
551 nbsd-tdep.o corelow.o solib.o solib-svr4.o"
732cd360
UW
552 ;;
553x86_64-*-openbsd*)
a4ce5b0d
UW
554 # Target: OpenBSD/amd64
555 gdb_target_obs="amd64-tdep.o amd64obsd-tdep.o i386-tdep.o \
556 i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
557 bsd-uthread.o corelow.o solib.o solib-svr4.o"
732cd360 558 ;;
94a0e877
MG
559xtensa*-*-linux*) gdb_target=linux
560 # Target: GNU/Linux Xtensa
561 gdb_target_obs="xtensa-tdep.o xtensa-config.o xtensa-linux-tdep.o \
562 solib.o solib-svr4.o corelow.o symfile-mem.o"
563 build_gdbserver=yes
564 ;;
732cd360 565xtensa*)
a4ce5b0d 566 # Target: Tensilica Xtensa processors
ee967b5f 567 gdb_target_obs="xtensa-tdep.o xtensa-config.o solib.o solib-svr4.o"
732cd360 568 ;;
ca3bf3bd 569
c906108c 570esac
2acceee2 571
b00a8037
DJ
572# map target onto default OS ABI
573
d0c678e6 574case "${targ}" in
4fabe3d5 575*-*-freebsd*) gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
b00a8037 576*-*-linux*) gdb_osabi=GDB_OSABI_LINUX ;;
1b883d35 577*-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
663408c2 578m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
890c8f4d 579*-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
5b729aa5 580*-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
69489883
NN
581*-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
582*-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
fd39ac05
PA
583*-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
584*-*-mingw* | *-*-cygwin*)
585 gdb_osabi=GDB_OSABI_CYGWIN ;;
a15c5c83 586*-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
b00a8037 587esac
This page took 0.590752 seconds and 4 git commands to generate.