Commit | Line | Data |
---|---|---|
c906108c SS |
1 | # Mappings from configurations to GDB target definitions. This is |
2 | # invoked from the autoconf generated configure script. | |
3 | ||
4 | # This file sets the following shell variables: | |
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 | |
b292c783 | 9 | # gdb_have_gcore set to "true"/"false" if this target can run gcore |
c906108c | 10 | |
6d10c194 UW |
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 | ||
d0c678e6 | 15 | case $targ in |
3831839c | 16 | *-*-irix* | \ |
32a8097b | 17 | alpha*-*-osf* | \ |
1e1a8bef JB |
18 | alpha*-*-freebsd* | \ |
19 | alpha*-*-kfreebsd*-gnu | \ | |
7ce59000 | 20 | d10v-*-* | \ |
483367ee DJ |
21 | hppa*-*-hiux* | \ |
22 | i[34567]86-ncr-* | \ | |
483367ee DJ |
23 | m68*-cisco*-* | \ |
24 | m68*-tandem-* | \ | |
25 | m68*-*-os68k* | \ | |
ad527d2e | 26 | mips*-*-pe | \ |
483367ee | 27 | rs6000-*-lynxos* | \ |
ad527d2e | 28 | sh*-*-pe | \ |
61a12cfa JK |
29 | hppa*-*-hpux* | \ |
30 | ia64-*-hpux* | \ | |
78836e90 | 31 | *-*-vxworks* | \ |
483367ee | 32 | null) |
d0c678e6 | 33 | echo "*** Configuration $targ is obsolete." >&2 |
483367ee DJ |
34 | echo "*** Support has been REMOVED." >&2 |
35 | exit 1 | |
36 | ;; | |
37 | esac | |
38 | ||
2081b2b2 | 39 | i386_tobjs="i386-tdep.o arch/i386.o i387-tdep.o" |
d97987e2 YQ |
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*-*-*) | |
0d28b0a5 | 49 | cpu_obs="aarch64-tdep.o arch/aarch64-insn.o";; |
d97987e2 YQ |
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*-*-*) | |
71917808 | 62 | cpu_obs="arch/arm.o arch/arm-get-next-pcs.o arm-tdep.o";; |
d97987e2 YQ |
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. | |
c906108c | 103 | |
d0c678e6 | 104 | case "${targ}" in |
12a132db | 105 | aarch64*-*-elf | aarch64*-*-rtems*) |
07b287a0 | 106 | # Target: AArch64 embedded system |
d97987e2 | 107 | gdb_target_obs="aarch64-newlib-tdep.o" |
07b287a0 MS |
108 | ;; |
109 | ||
c0f84956 JB |
110 | aarch64*-*-freebsd*) |
111 | # Target: FreeBSD/aarch64 | |
d97987e2 | 112 | gdb_target_obs="aarch64-fbsd-tdep.o" |
c0f84956 JB |
113 | ;; |
114 | ||
1ae3db19 MS |
115 | aarch64*-*-linux*) |
116 | # Target: AArch64 linux | |
d97987e2 | 117 | gdb_target_obs="aarch64-linux-tdep.o \ |
71917808 YQ |
118 | arch/arm.o arch/arm-linux.o arch/arm-get-next-pcs.o \ |
119 | arm-tdep.o arm-linux-tdep.o \ | |
1ae3db19 | 120 | glibc-tdep.o linux-tdep.o solib-svr4.o \ |
99afc88b | 121 | symfile-mem.o linux-record.o" |
176eb98c | 122 | build_gdbserver=yes |
1ae3db19 | 123 | ;; |
c906108c | 124 | |
732cd360 | 125 | alpha*-*-linux*) |
a4ce5b0d | 126 | # Target: Little-endian Alpha running Linux |
d97987e2 | 127 | gdb_target_obs="alpha-mdebug-tdep.o alpha-linux-tdep.o \ |
8574e74b | 128 | linux-tdep.o solib-svr4.o" |
732cd360 | 129 | ;; |
69489883 | 130 | alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) |
a4ce5b0d | 131 | # Target: NetBSD/alpha |
d97987e2 YQ |
132 | gdb_target_obs="alpha-mdebug-tdep.o alpha-bsd-tdep.o \ |
133 | alpha-nbsd-tdep.o" | |
732cd360 UW |
134 | ;; |
135 | alpha*-*-openbsd*) | |
a4ce5b0d | 136 | # Target: OpenBSD/alpha |
d97987e2 YQ |
137 | gdb_target_obs="alpha-mdebug-tdep.o alpha-bsd-tdep.o \ |
138 | alpha-nbsd-tdep.o alpha-obsd-tdep.o nbsd-tdep.o" | |
732cd360 | 139 | ;; |
c906108c | 140 | |
732cd360 | 141 | am33_2.0*-*-linux*) |
a4ce5b0d | 142 | # Target: Matsushita mn10300 (AM33) running Linux |
a3217aa0 | 143 | gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o linux-tdep.o \ |
06b9f45f | 144 | solib-svr4.o" |
732cd360 | 145 | ;; |
63a09be5 | 146 | |
4a2f4826 AK |
147 | arc*-*-elf32) |
148 | # Target: baremetal ARC elf32 (newlib) target | |
d97987e2 | 149 | gdb_target_obs="arc-newlib-tdep.o" |
ad0a504f AK |
150 | ;; |
151 | ||
68070c10 | 152 | arm*-wince-pe | arm*-*-mingw32ce*) |
a4ce5b0d | 153 | # Target: ARM based machine running Windows CE (win32) |
d97987e2 | 154 | gdb_target_obs="arm-wince-tdep.o windows-tdep.o" |
732cd360 UW |
155 | build_gdbserver=yes |
156 | ;; | |
157 | arm*-*-linux*) | |
a4ce5b0d | 158 | # Target: ARM based machine running GNU/Linux |
71917808 | 159 | gdb_target_obs="arch/arm-linux.o arm-linux-tdep.o glibc-tdep.o \ |
97dfe206 | 160 | solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o" |
732cd360 UW |
161 | build_gdbserver=yes |
162 | ;; | |
69489883 | 163 | arm*-*-netbsd* | arm*-*-knetbsd*-gnu) |
a4ce5b0d | 164 | # Target: NetBSD/arm |
d97987e2 | 165 | gdb_target_obs="arm-nbsd-tdep.o" |
732cd360 UW |
166 | ;; |
167 | arm*-*-openbsd*) | |
a4ce5b0d | 168 | # Target: OpenBSD/arm |
d97987e2 | 169 | gdb_target_obs="arm-bsd-tdep.o arm-obsd-tdep.o" |
732cd360 | 170 | ;; |
78664fa3 PA |
171 | arm*-*-symbianelf*) |
172 | # Target: SymbianOS/arm | |
d97987e2 | 173 | gdb_target_obs="arm-symbian-tdep.o" |
78664fa3 | 174 | ;; |
4d393d60 | 175 | arm*-*-*) |
a4ce5b0d | 176 | # Target: ARM embedded system |
9b624dbe | 177 | gdb_sim=../sim/arm/libsim.a |
732cd360 UW |
178 | ;; |
179 | ||
180 | avr-*-*) | |
a4ce5b0d UW |
181 | # Target: AVR |
182 | gdb_target_obs="avr-tdep.o" | |
64c9be2e | 183 | gdb_sim=../sim/avr/libsim.a |
732cd360 UW |
184 | ;; |
185 | ||
91021223 MF |
186 | bfin-*-*linux*) |
187 | # Target: Blackfin Linux | |
188 | gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o" | |
5387a0c6 | 189 | gdb_sim=../sim/bfin/libsim.a |
eb826dc6 | 190 | build_gdbserver=yes |
91021223 MF |
191 | ;; |
192 | bfin-*-*) | |
193 | # Target: Blackfin processor | |
194 | gdb_target_obs="bfin-tdep.o" | |
5387a0c6 | 195 | gdb_sim=../sim/bfin/libsim.a |
91021223 MF |
196 | ;; |
197 | ||
732cd360 | 198 | cris*) |
a4ce5b0d | 199 | # Target: CRIS |
749c8b38 | 200 | gdb_target_obs="cris-tdep.o cris-linux-tdep.o linux-tdep.o solib-svr4.o" |
732cd360 UW |
201 | ;; |
202 | ||
732cd360 | 203 | frv-*-*) |
a4ce5b0d | 204 | # Target: Fujitsu FRV processor |
06b9f45f | 205 | gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o" |
9b624dbe | 206 | gdb_sim=../sim/frv/libsim.a |
732cd360 UW |
207 | ;; |
208 | ||
91529dc5 | 209 | moxie-*-elf | moxie-*-moxiebox | moxie-*-rtems*) |
d7066cce | 210 | gdb_target_obs="moxie-tdep.o" |
c7098c41 | 211 | gdb_sim=../sim/moxie/libsim.a |
d7066cce AG |
212 | ;; |
213 | ||
732cd360 | 214 | h8300-*-*) |
40e0b271 PA |
215 | # Target: H8300 processor |
216 | gdb_target_obs="h8300-tdep.o" | |
9b624dbe | 217 | gdb_sim=../sim/h8300/libsim.a |
732cd360 UW |
218 | ;; |
219 | ||
732cd360 | 220 | hppa*-*-linux*) |
a4ce5b0d | 221 | # Target: HP PA-RISC running Linux |
d97987e2 | 222 | gdb_target_obs="hppa-linux-tdep.o glibc-tdep.o \ |
8574e74b | 223 | linux-tdep.o solib-svr4.o symfile-mem.o" |
732cd360 | 224 | ;; |
af5ca30d NH |
225 | hppa*-*-netbsd*) |
226 | # Target: NetBSD/hppa | |
d97987e2 | 227 | gdb_target_obs="hppa-bsd-tdep.o hppa-nbsd-tdep.o solib-svr4.o" |
af5ca30d | 228 | ;; |
732cd360 | 229 | hppa*-*-openbsd*) |
a4ce5b0d | 230 | # Target: OpenBSD/hppa |
d97987e2 | 231 | gdb_target_obs="hppa-bsd-tdep.o hppa-obsd-tdep.o solib-svr4.o" |
732cd360 | 232 | ;; |
c906108c | 233 | |
5cd226f2 | 234 | i[34567]86-*-darwin*) |
a80b95ba | 235 | # Target: Darwin/i386 |
d97987e2 | 236 | gdb_target_obs="i386-darwin-tdep.o solib-darwin.o" |
5cd226f2 TG |
237 | if test "x$enable_64_bit_bfd" = "xyes"; then |
238 | # Target: GNU/Linux x86-64 | |
d97987e2 | 239 | gdb_target_obs="amd64-darwin-tdep.o ${gdb_target_obs}" |
5cd226f2 | 240 | fi |
a80b95ba | 241 | ;; |
a15c5c83 PA |
242 | i[34567]86-*-dicos*) |
243 | # Target: DICOS/i386 | |
d97987e2 | 244 | gdb_target_obs="dicos-tdep.o i386-dicos-tdep.o" |
a15c5c83 | 245 | ;; |
fa987fc4 | 246 | i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu) |
a4ce5b0d | 247 | # Target: FreeBSD/i386 |
d97987e2 | 248 | gdb_target_obs="i386-bsd-tdep.o i386-fbsd-tdep.o " |
fa987fc4 | 249 | ;; |
48184fd4 | 250 | i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu) |
a4ce5b0d | 251 | # Target: NetBSD/i386 |
d97987e2 | 252 | gdb_target_obs="i386-bsd-tdep.o i386-nbsd-tdep.o " |
732cd360 UW |
253 | ;; |
254 | i[34567]86-*-openbsd*) | |
a4ce5b0d | 255 | # Target: OpenBSD/i386 |
d97987e2 | 256 | gdb_target_obs="i386-bsd-tdep.o i386-obsd-tdep.o bsd-uthread.o" |
732cd360 UW |
257 | ;; |
258 | i[34567]86-*-nto*) | |
a4ce5b0d | 259 | # Target: Intel 386 running qnx6. |
d97987e2 | 260 | gdb_target_obs="solib-svr4.o \ |
a4ce5b0d | 261 | i386-nto-tdep.o nto-tdep.o" |
7f86f499 | 262 | build_gdbserver=yes |
732cd360 | 263 | ;; |
281c4447 | 264 | i[34567]86-*-solaris2* | x86_64-*-solaris2*) |
a4ce5b0d | 265 | # Target: Solaris x86_64 |
d97987e2 | 266 | gdb_target_obs="${i386_tobjs} ${amd64_tobjs} \ |
22916b07 YQ |
267 | amd64-sol2-tdep.o i386-sol2-tdep.o sol2-tdep.o \ |
268 | solib-svr4.o" | |
732cd360 | 269 | ;; |
732cd360 | 270 | i[34567]86-*-linux*) |
a4ce5b0d | 271 | # Target: Intel 386 running GNU/Linux |
d97987e2 YQ |
272 | gdb_target_obs="i386-linux-tdep.o \ |
273 | glibc-tdep.o \ | |
06b9f45f | 274 | solib-svr4.o symfile-mem.o \ |
b7f6bf22 | 275 | linux-tdep.o linux-record.o" |
0ca8834f JM |
276 | if test "x$enable_64_bit_bfd" = "xyes"; then |
277 | # Target: GNU/Linux x86-64 | |
d97987e2 | 278 | gdb_target_obs="amd64-linux-tdep.o ${gdb_target_obs}" |
0ca8834f | 279 | fi |
732cd360 UW |
280 | build_gdbserver=yes |
281 | ;; | |
282 | i[34567]86-*-gnu*) | |
a4ce5b0d | 283 | # Target: Intel 386 running the GNU Hurd |
d97987e2 | 284 | gdb_target_obs="i386-gnu-tdep.o solib-svr4.o" |
732cd360 UW |
285 | ;; |
286 | i[34567]86-*-cygwin*) | |
a4ce5b0d | 287 | # Target: Intel 386 running win32 |
d97987e2 | 288 | gdb_target_obs="i386-cygwin-tdep.o windows-tdep.o" |
732cd360 UW |
289 | build_gdbserver=yes |
290 | ;; | |
291 | i[34567]86-*-mingw32*) | |
a4ce5b0d | 292 | # Target: Intel 386 running win32 |
d97987e2 | 293 | gdb_target_obs="i386-cygwin-tdep.o windows-tdep.o" |
732cd360 UW |
294 | build_gdbserver=yes |
295 | ;; | |
8f10c932 PA |
296 | i[34567]86-*-go32* | i[34567]86-*-msdosdjgpp*) |
297 | # Target: i386 running DJGPP/go32. | |
d97987e2 | 298 | gdb_target_obs="i386-go32-tdep.o" |
732cd360 UW |
299 | ;; |
300 | ||
301 | ia64-*-linux*) | |
a4ce5b0d | 302 | # Target: Intel IA-64 running GNU/Linux |
d97987e2 | 303 | gdb_target_obs="ia64-linux-tdep.o linux-tdep.o \ |
8574e74b | 304 | solib-svr4.o symfile-mem.o" |
732cd360 UW |
305 | build_gdbserver=yes |
306 | ;; | |
696759ad TG |
307 | ia64-*-*vms*) |
308 | # Target: Intel IA-64 running OpenVMS | |
d97987e2 | 309 | gdb_target_obs="ia64-vms-tdep.o" |
732cd360 UW |
310 | ;; |
311 | ||
312 | iq2000-*-*) | |
a4ce5b0d | 313 | gdb_target_obs="iq2000-tdep.o" |
9b624dbe | 314 | gdb_sim=../sim/iq2000/libsim.a |
732cd360 UW |
315 | ;; |
316 | ||
c28c63d8 JB |
317 | lm32-*-*) |
318 | gdb_target_obs="lm32-tdep.o" | |
319 | gdb_sim=../sim/lm32/libsim.a | |
320 | ;; | |
321 | ||
732cd360 | 322 | m32c-*-*) |
a4ce5b0d | 323 | # Target: Renesas M32C family |
57295b0b | 324 | gdb_target_obs="m32c-tdep.o" |
9b624dbe UW |
325 | # There may also be a SID / CGEN simulator for this, |
326 | # but we do have DJ Delorie's mini-sim. | |
327 | gdb_sim=../sim/m32c/libsim.a | |
732cd360 UW |
328 | ;; |
329 | ||
330 | m32r*-*-linux*) | |
a4ce5b0d | 331 | # Target: Renesas M32R running GNU/Linux |
f7c38292 | 332 | gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o \ |
8574e74b | 333 | glibc-tdep.o solib-svr4.o symfile-mem.o \ |
a3217aa0 | 334 | linux-tdep.o" |
9b624dbe | 335 | gdb_sim=../sim/m32r/libsim.a |
732cd360 UW |
336 | build_gdbserver=yes |
337 | ;; | |
338 | m32r*-*-*) | |
a4ce5b0d | 339 | # Target: Renesas m32r processor |
f7c38292 | 340 | gdb_target_obs="m32r-tdep.o" |
9b624dbe | 341 | gdb_sim=../sim/m32r/libsim.a |
732cd360 UW |
342 | ;; |
343 | ||
344 | m68hc11*-*-*|m6811*-*-*) | |
a4ce5b0d UW |
345 | # Target: Motorola 68HC11 processor |
346 | gdb_target_obs="m68hc11-tdep.o" | |
9b624dbe | 347 | gdb_sim=../sim/m68hc11/libsim.a |
732cd360 UW |
348 | ;; |
349 | ||
fa987fc4 UW |
350 | m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \ |
351 | fido-*-elf*) | |
40e0b271 PA |
352 | # Target: Motorola m68k embedded |
353 | gdb_target_obs="m68k-tdep.o" | |
732cd360 UW |
354 | ;; |
355 | m68*-*-linux*) | |
a4ce5b0d | 356 | # Target: Motorola m68k with a.out and ELF |
03b62bbb | 357 | gdb_target_obs="m68k-tdep.o m68k-linux-tdep.o solib-svr4.o \ |
a3217aa0 | 358 | linux-tdep.o glibc-tdep.o symfile-mem.o" |
732cd360 UW |
359 | build_gdbserver=yes |
360 | ;; | |
69489883 | 361 | m68*-*-netbsd* | m68*-*-knetbsd*-gnu) |
a4ce5b0d | 362 | # Target: NetBSD/m68k |
d97987e2 | 363 | gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o" |
732cd360 UW |
364 | ;; |
365 | m68*-*-openbsd*) | |
a4ce5b0d | 366 | # Target: OpenBSD/m68k |
d97987e2 | 367 | gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o" |
732cd360 | 368 | ;; |
732cd360 UW |
369 | |
370 | m88*-*-openbsd*) | |
a4ce5b0d | 371 | # Target: OpenBSD/m88k |
06b9f45f | 372 | gdb_target_obs="m88k-tdep.o" |
732cd360 UW |
373 | ;; |
374 | ||
375 | mep-*-*) | |
a4ce5b0d | 376 | # Target: Toshiba Media Processor (MEP) |
57295b0b | 377 | gdb_target_obs="mep-tdep.o" |
a4ce5b0d | 378 | # No sim needed. Target uses SID. |
732cd360 UW |
379 | ;; |
380 | ||
97fc68fe | 381 | microblaze*-linux-*|microblaze*-*-linux*) |
2d1c1221 | 382 | # Target: Xilinx MicroBlaze running Linux |
40e0b271 PA |
383 | gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o solib-svr4.o \ |
384 | symfile-mem.o linux-tdep.o" | |
2d1c1221 ME |
385 | gdb_sim=../sim/microblaze/libsim.a |
386 | ;; | |
97fc68fe | 387 | microblaze*-*-*) |
2d1c1221 | 388 | # Target: Xilinx MicroBlaze running standalone |
40e0b271 | 389 | gdb_target_obs="microblaze-tdep.o" |
2d1c1221 ME |
390 | gdb_sim=../sim/microblaze/libsim.a |
391 | ;; | |
392 | ||
732cd360 | 393 | mips*-*-linux*) |
a4ce5b0d | 394 | # Target: Linux/MIPS |
db5f024e | 395 | gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \ |
06b9f45f | 396 | solib-svr4.o symfile-mem.o linux-tdep.o" |
9b624dbe | 397 | gdb_sim=../sim/mips/libsim.a |
732cd360 UW |
398 | build_gdbserver=yes |
399 | ;; | |
69489883 | 400 | mips*-*-netbsd* | mips*-*-knetbsd*-gnu) |
a4ce5b0d | 401 | # Target: MIPS running NetBSD |
d97987e2 | 402 | gdb_target_obs="mips-tdep.o mips-nbsd-tdep.o" |
9b624dbe | 403 | gdb_sim=../sim/mips/libsim.a |
732cd360 | 404 | ;; |
387360da JB |
405 | mips*-*-freebsd*) |
406 | # Target: MIPS running FreeBSD | |
d97987e2 | 407 | gdb_target_obs="mips-tdep.o mips-fbsd-tdep.o" |
387360da JB |
408 | gdb_sim=../sim/mips/libsim.a |
409 | ;; | |
732cd360 | 410 | mips64*-*-openbsd*) |
a4ce5b0d | 411 | # Target: OpenBSD/mips64 |
d97987e2 | 412 | gdb_target_obs="mips-tdep.o mips64-obsd-tdep.o" |
732cd360 | 413 | ;; |
bb7e3f4d YQ |
414 | mips*-sde*-elf*) |
415 | # Target: MIPS SDE | |
f7c38292 | 416 | gdb_target_obs="mips-tdep.o mips-sde-tdep.o" |
bb7e3f4d YQ |
417 | gdb_sim=../sim/mips/libsim.a |
418 | ;; | |
314d366a KB |
419 | mips*-*-elf) |
420 | # Target: MIPS ELF | |
f7c38292 | 421 | gdb_target_obs="mips-tdep.o" |
314d366a KB |
422 | gdb_sim=../sim/mips/libsim.a |
423 | ;; | |
732cd360 | 424 | mips*-*-*) |
a4ce5b0d UW |
425 | # Target: MIPS |
426 | gdb_target_obs="mips-tdep.o" | |
9b624dbe | 427 | gdb_sim=../sim/mips/libsim.a |
732cd360 UW |
428 | ;; |
429 | ||
430 | mn10300-*-*) | |
a4ce5b0d UW |
431 | # Target: Matsushita mn10300 |
432 | gdb_target_obs="mn10300-tdep.o" | |
9b624dbe | 433 | gdb_sim=../sim/mn10300/libsim.a |
732cd360 UW |
434 | ;; |
435 | ||
586cf749 KB |
436 | msp430*-*-elf) |
437 | gdb_target_obs="msp430-tdep.o" | |
438 | gdb_sim=../sim/msp430/libsim.a | |
439 | ;; | |
440 | ||
732cd360 | 441 | mt-*-*) |
a4ce5b0d UW |
442 | # Target: Morpho Technologies ms1 processor |
443 | gdb_target_obs="mt-tdep.o" | |
732cd360 | 444 | ;; |
61def6bd | 445 | |
a28d8e50 YTL |
446 | nds32*-*-elf) |
447 | # Target: AndesTech NDS32 core | |
448 | gdb_target_obs="nds32-tdep.o" | |
449 | ;; | |
450 | ||
a1217d97 SL |
451 | nios2*-*-linux*) |
452 | # Target: Altera Nios II running Linux | |
453 | gdb_target_obs="nios2-tdep.o nios2-linux-tdep.o solib-svr4.o \ | |
454 | symfile-mem.o glibc-tdep.o linux-tdep.o" | |
455 | ;; | |
456 | ||
457 | nios2*-*-*) | |
458 | # Target: Altera Nios II bare-metal | |
459 | gdb_target_obs="nios2-tdep.o" | |
460 | ;; | |
461 | ||
dc18f110 AT |
462 | powerpc*-*-freebsd*) |
463 | # Target: FreeBSD/powerpc | |
464 | gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \ | |
d97987e2 | 465 | ppc-fbsd-tdep.o \ |
dc18f110 AT |
466 | ravenscar-thread.o ppc-ravenscar-thread.o" |
467 | ;; | |
468 | ||
69489883 | 469 | powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu) |
a4ce5b0d | 470 | # Target: NetBSD/powerpc |
03b62bbb | 471 | gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-nbsd-tdep.o \ |
debb1f09 | 472 | ravenscar-thread.o ppc-ravenscar-thread.o" |
9b624dbe | 473 | gdb_sim=../sim/ppc/libsim.a |
732cd360 UW |
474 | ;; |
475 | powerpc-*-openbsd*) | |
a4ce5b0d | 476 | # Target: OpenBSD/powerpc |
03b62bbb | 477 | gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-obsd-tdep.o \ |
debb1f09 | 478 | ravenscar-thread.o ppc-ravenscar-thread.o" |
732cd360 | 479 | ;; |
49de1690 | 480 | powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*) |
a4ce5b0d UW |
481 | # Target: PowerPC running AIX |
482 | gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \ | |
4d1eb6b4 | 483 | ppc-sysv-tdep.o solib-aix.o \ |
debb1f09 | 484 | ravenscar-thread.o ppc-ravenscar-thread.o" |
732cd360 | 485 | ;; |
bcbec14e | 486 | powerpc*-*-linux*) |
a4ce5b0d UW |
487 | # Target: PowerPC running Linux |
488 | gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \ | |
d78489bf AT |
489 | ppc64-tdep.o solib-svr4.o solib-spu.o \ |
490 | spu-multiarch.o \ | |
debb1f09 | 491 | glibc-tdep.o symfile-mem.o linux-tdep.o \ |
b4cdae6f WW |
492 | ravenscar-thread.o ppc-ravenscar-thread.o \ |
493 | linux-record.o " | |
9b624dbe | 494 | gdb_sim=../sim/ppc/libsim.a |
732cd360 UW |
495 | build_gdbserver=yes |
496 | ;; | |
d5367fe1 JB |
497 | powerpc-*-lynx*178) |
498 | # Target: PowerPC running Lynx178. | |
499 | gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \ | |
40e0b271 | 500 | xcoffread.o ppc-sysv-tdep.o \ |
d5367fe1 JB |
501 | ravenscar-thread.o ppc-ravenscar-thread.o" |
502 | ;; | |
732cd360 | 503 | powerpc*-*-*) |
a4ce5b0d | 504 | # Target: PowerPC running eabi |
40e0b271 | 505 | gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o solib-svr4.o \ |
debb1f09 | 506 | ravenscar-thread.o ppc-ravenscar-thread.o" |
32273fe6 | 507 | gdb_sim=../sim/ppc/libsim.a |
732cd360 UW |
508 | ;; |
509 | ||
0e5fae36 | 510 | s390*-*-linux*) |
a4ce5b0d | 511 | # Target: S390 running Linux |
566c56c9 MK |
512 | gdb_target_obs="s390-linux-tdep.o solib-svr4.o linux-tdep.o \ |
513 | linux-record.o" | |
732cd360 UW |
514 | build_gdbserver=yes |
515 | ;; | |
516 | ||
9058f767 KB |
517 | rl78-*-elf) |
518 | # Target: Renesas rl78 | |
519 | gdb_target_obs="rl78-tdep.o" | |
520 | gdb_sim=../sim/rl78/libsim.a | |
521 | ;; | |
522 | ||
baa835b4 KB |
523 | rx-*-elf) |
524 | # Target: Renesas RX | |
525 | gdb_target_obs="rx-tdep.o" | |
526 | gdb_sim=../sim/rx/libsim.a | |
527 | ;; | |
528 | ||
732cd360 | 529 | score-*-*) |
a4ce5b0d | 530 | # Target: S+core embedded system |
06b9f45f | 531 | gdb_target_obs="score-tdep.o" |
5f814c3b | 532 | build_gdbserver=yes |
732cd360 UW |
533 | ;; |
534 | ||
e25c958c | 535 | sh*-*-linux*) |
a4ce5b0d | 536 | # Target: GNU/Linux Super-H |
40e0b271 PA |
537 | gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o \ |
538 | solib-svr4.o symfile-mem.o \ | |
06b9f45f | 539 | glibc-tdep.o linux-tdep.o" |
9b624dbe | 540 | gdb_sim=../sim/sh/libsim.a |
732cd360 UW |
541 | build_gdbserver=yes |
542 | ;; | |
69489883 | 543 | sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu) |
a4ce5b0d | 544 | # Target: NetBSD/sh |
d97987e2 | 545 | gdb_target_obs="sh-tdep.o sh-nbsd-tdep.o" |
9b624dbe | 546 | gdb_sim=../sim/sh/libsim.a |
732cd360 UW |
547 | ;; |
548 | sh*-*-openbsd*) | |
a4ce5b0d | 549 | # Target: OpenBSD/sh |
d97987e2 | 550 | gdb_target_obs="sh-tdep.o sh64-tdep.o sh-nbsd-tdep.o" |
732cd360 UW |
551 | ;; |
552 | sh64-*-elf*) | |
a4ce5b0d UW |
553 | # Target: Renesas/Super-H 64 bit with simulator |
554 | gdb_target_obs="sh-tdep.o sh64-tdep.o" | |
9b624dbe | 555 | gdb_sim=../sim/sh64/libsim.a |
732cd360 UW |
556 | ;; |
557 | sh*) | |
40e0b271 PA |
558 | # Target: Embedded Renesas Super-H processor |
559 | gdb_target_obs="sh-tdep.o sh64-tdep.o" | |
9b624dbe | 560 | gdb_sim=../sim/sh/libsim.a |
732cd360 UW |
561 | ;; |
562 | ||
563 | sparc-*-linux*) | |
a4ce5b0d UW |
564 | # Target: GNU/Linux SPARC |
565 | gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \ | |
8574e74b | 566 | sparc-linux-tdep.o solib-svr4.o symfile-mem.o \ |
7e35103a | 567 | linux-tdep.o \ |
e6f9c00b | 568 | ravenscar-thread.o sparc-ravenscar-thread.o" |
0ca8834f JM |
569 | if test "x$enable_64_bit_bfd" = "xyes"; then |
570 | # Target: GNU/Linux UltraSPARC | |
571 | gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \ | |
572 | sparc64-linux-tdep.o ${gdb_target_obs}" | |
573 | fi | |
d8fb5a1e | 574 | build_gdbserver=yes |
732cd360 UW |
575 | ;; |
576 | sparc64-*-linux*) | |
a4ce5b0d UW |
577 | # Target: GNU/Linux UltraSPARC |
578 | gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \ | |
579 | sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \ | |
7e35103a | 580 | sparc-linux-tdep.o solib-svr4.o linux-tdep.o \ |
e6f9c00b | 581 | ravenscar-thread.o sparc-ravenscar-thread.o" |
dfb64f85 | 582 | build_gdbserver=yes |
732cd360 | 583 | ;; |
fa987fc4 | 584 | sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu) |
a4ce5b0d | 585 | # Target: FreeBSD/sparc64 |
03b62bbb | 586 | gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64-fbsd-tdep.o \ |
e6f9c00b | 587 | ravenscar-thread.o sparc-ravenscar-thread.o" |
fa987fc4 | 588 | ;; |
69489883 | 589 | sparc-*-netbsd* | sparc-*-knetbsd*-gnu) |
a4ce5b0d | 590 | # Target: NetBSD/sparc |
d97987e2 | 591 | gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o \ |
e6f9c00b | 592 | ravenscar-thread.o sparc-ravenscar-thread.o" |
732cd360 | 593 | ;; |
69489883 | 594 | sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) |
a4ce5b0d | 595 | # Target: NetBSD/sparc64 |
03b62bbb | 596 | gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc-tdep.o \ |
d97987e2 | 597 | sparc-nbsd-tdep.o \ |
e6f9c00b | 598 | ravenscar-thread.o sparc-ravenscar-thread.o" |
732cd360 UW |
599 | ;; |
600 | sparc-*-openbsd*) | |
a4ce5b0d | 601 | # Target: OpenBSD/sparc |
03b62bbb | 602 | gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \ |
d97987e2 | 603 | nbsd-tdep.o bsd-uthread.o \ |
e6f9c00b | 604 | ravenscar-thread.o sparc-ravenscar-thread.o" |
732cd360 UW |
605 | ;; |
606 | sparc64-*-openbsd*) | |
a4ce5b0d | 607 | # Target: OpenBSD/sparc64 |
03b62bbb SM |
608 | gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc64-obsd-tdep.o \ |
609 | sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \ | |
d97987e2 | 610 | nbsd-tdep.o bsd-uthread.o \ |
e6f9c00b | 611 | ravenscar-thread.o sparc-ravenscar-thread.o" |
732cd360 | 612 | ;; |
386c036b | 613 | sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*) |
a4ce5b0d UW |
614 | # Target: Solaris UltraSPARC |
615 | gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \ | |
7e35103a | 616 | sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \ |
e6f9c00b | 617 | ravenscar-thread.o sparc-ravenscar-thread.o" |
732cd360 | 618 | ;; |
732cd360 | 619 | sparc-*-*) |
a4ce5b0d | 620 | # Target: SPARC |
5d214698 | 621 | gdb_target_obs="sparc-tdep.o \ |
e6f9c00b | 622 | ravenscar-thread.o sparc-ravenscar-thread.o" |
0ac7be25 | 623 | gdb_sim=../sim/erc32/libsim.a |
732cd360 UW |
624 | ;; |
625 | sparc64-*-*) | |
a4ce5b0d | 626 | # Target: UltraSPARC |
7e35103a | 627 | gdb_target_obs="sparc-tdep.o sparc64-tdep.o \ |
e6f9c00b | 628 | ravenscar-thread.o sparc-ravenscar-thread.o" |
732cd360 UW |
629 | ;; |
630 | ||
631 | spu*-*-*) | |
a4ce5b0d UW |
632 | # Target: Cell BE SPU |
633 | gdb_target_obs="spu-tdep.o" | |
732cd360 UW |
634 | build_gdbserver=yes |
635 | ;; | |
636 | ||
8cd64e00 YQ |
637 | tic6x-*-*linux) |
638 | # Target: GNU/Linux TI C6x | |
639 | gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \ | |
06b9f45f | 640 | glibc-tdep.o linux-tdep.o" |
8cd64e00 YQ |
641 | ;; |
642 | ||
643 | tic6x-*-*) | |
644 | # Target: TI C6X | |
645 | gdb_target_obs="tic6x-tdep.o" | |
646 | ;; | |
647 | ||
ade64f0e | 648 | tilegx-*-linux*) |
748d24e6 JW |
649 | # Target: TILE-Gx |
650 | gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \ | |
ade64f0e | 651 | symfile-mem.o glibc-tdep.o linux-tdep.o" |
4fcd89fc | 652 | build_gdbserver=yes |
748d24e6 | 653 | ;; |
ade64f0e | 654 | |
732cd360 | 655 | xstormy16-*-*) |
a4ce5b0d UW |
656 | # Target: Sanyo Xstormy16a processor |
657 | gdb_target_obs="xstormy16-tdep.o" | |
9b624dbe | 658 | # No simulator libraries are needed -- target uses SID. |
732cd360 UW |
659 | ;; |
660 | ||
49d45b20 JB |
661 | ft32-*-elf) |
662 | gdb_target_obs="ft32-tdep.o" | |
663 | gdb_sim=../sim/ft32/libsim.a | |
664 | ;; | |
665 | ||
6e73ba20 | 666 | v850*-*-elf | v850*-*-rtems*) |
a4ce5b0d UW |
667 | # Target: NEC V850 processor |
668 | gdb_target_obs="v850-tdep.o" | |
9b624dbe | 669 | gdb_sim=../sim/v850/libsim.a |
732cd360 | 670 | ;; |
181124bc | 671 | |
69489883 | 672 | vax-*-netbsd* | vax-*-knetbsd*-gnu) |
a4ce5b0d | 673 | # Target: NetBSD/vax |
1736a7bd | 674 | gdb_target_obs="vax-tdep.o solib-svr4.o" |
732cd360 UW |
675 | ;; |
676 | vax-*-openbsd*) | |
a4ce5b0d | 677 | # Target: OpenBSD/vax |
1736a7bd | 678 | gdb_target_obs="vax-tdep.o" |
732cd360 UW |
679 | ;; |
680 | vax-*-*) | |
09dd9a69 | 681 | # Target: VAX |
a4ce5b0d | 682 | gdb_target_obs="vax-tdep.o" |
732cd360 UW |
683 | ;; |
684 | ||
5cd226f2 TG |
685 | x86_64-*-darwin*) |
686 | # Target: Darwin/x86-64 | |
d97987e2 | 687 | gdb_target_obs="${i386_tobjs} \ |
5cd226f2 | 688 | i386-darwin-tdep.o amd64-darwin-tdep.o \ |
8574e74b | 689 | solib-darwin.o" |
5cd226f2 TG |
690 | ;; |
691 | ||
a15c5c83 PA |
692 | x86_64-*-dicos*) |
693 | # Target: DICOS/x86-64 | |
d97987e2 | 694 | gdb_target_obs="${i386_tobjs} \ |
06b9f45f | 695 | dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o" |
a15c5c83 | 696 | ;; |
a5716032 | 697 | x86_64-*-elf*) |
d97987e2 | 698 | gdb_target_obs="${i386_tobjs}" |
a5716032 | 699 | ;; |
732cd360 | 700 | x86_64-*-linux*) |
a4ce5b0d | 701 | # Target: GNU/Linux x86-64 |
d97987e2 YQ |
702 | gdb_target_obs="amd64-linux-tdep.o ${i386_tobjs} \ |
703 | i386-linux-tdep.o glibc-tdep.o \ | |
06b9f45f | 704 | solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o" |
732cd360 UW |
705 | build_gdbserver=yes |
706 | ;; | |
fa987fc4 | 707 | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) |
a4ce5b0d | 708 | # Target: FreeBSD/amd64 |
d97987e2 YQ |
709 | gdb_target_obs="amd64-fbsd-tdep.o ${i386_tobjs} \ |
710 | i386-bsd-tdep.o i386-fbsd-tdep.o" | |
fa987fc4 | 711 | ;; |
b5b0b0af | 712 | x86_64-*-mingw* | x86_64-*-cygwin*) |
d0761299 | 713 | # Target: MingW/amd64 |
d97987e2 YQ |
714 | gdb_target_obs="amd64-windows-tdep.o \ |
715 | ${i386_tobjs} i386-cygwin-tdep.o \ | |
0cd09acb | 716 | windows-tdep.o" |
437125bd | 717 | build_gdbserver=yes |
d0761299 | 718 | ;; |
69489883 | 719 | x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu) |
a4ce5b0d | 720 | # Target: NetBSD/amd64 |
d97987e2 | 721 | gdb_target_obs="amd64-nbsd-tdep.o ${i386_tobjs}" |
732cd360 UW |
722 | ;; |
723 | x86_64-*-openbsd*) | |
a4ce5b0d | 724 | # Target: OpenBSD/amd64 |
d97987e2 YQ |
725 | gdb_target_obs="amd64-obsd-tdep.o ${i386_tobjs} \ |
726 | i386-bsd-tdep.o i386-obsd-tdep.o \ | |
727 | bsd-uthread.o" | |
732cd360 | 728 | ;; |
a5716032 | 729 | x86_64-*-rtems*) |
d97987e2 | 730 | gdb_target_obs="${amd64_tobjs} ${i386_tobjs} i386-bsd-tdep.o" |
a5716032 | 731 | ;; |
94a0e877 MG |
732 | xtensa*-*-linux*) gdb_target=linux |
733 | # Target: GNU/Linux Xtensa | |
d97987e2 | 734 | gdb_target_obs="xtensa-linux-tdep.o symfile-mem.o linux-tdep.o" |
94a0e877 MG |
735 | build_gdbserver=yes |
736 | ;; | |
ca3bf3bd | 737 | |
c906108c | 738 | esac |
2acceee2 | 739 | |
d97987e2 YQ |
740 | # Put them together. |
741 | ||
742 | gdb_target_obs="${cpu_obs} ${os_obs} ${gdb_target_obs}" | |
743 | ||
b00a8037 DJ |
744 | # map target onto default OS ABI |
745 | ||
d0c678e6 | 746 | case "${targ}" in |
d5ae309f | 747 | *-*-freebsd* | *-*-kfreebsd*-gnu) |
1736a7bd | 748 | gdb_osabi=GDB_OSABI_FREEBSD ;; |
4e18c053 MF |
749 | *-*-linux* | *-*-uclinux*) |
750 | gdb_osabi=GDB_OSABI_LINUX ;; | |
1b883d35 | 751 | *-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;; |
663408c2 | 752 | m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;; |
1736a7bd | 753 | *-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD ;; |
5b729aa5 | 754 | *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;; |
69489883 NN |
755 | *-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below |
756 | *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;; | |
fd39ac05 PA |
757 | *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;; |
758 | *-*-mingw* | *-*-cygwin*) | |
759 | gdb_osabi=GDB_OSABI_CYGWIN ;; | |
a15c5c83 | 760 | *-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;; |
78664fa3 PA |
761 | *-*-symbianelf*) |
762 | gdb_osabi=GDB_OSABI_SYMBIAN ;; | |
49de1690 UW |
763 | powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*) |
764 | gdb_osabi=GDB_OSABI_AIX ;; | |
b00a8037 | 765 | esac |
b292c783 JK |
766 | |
767 | # Check whether this target supports gcore. | |
768 | # Such target has to call set_gdbarch_find_memory_regions. | |
c96b3c4f JK |
769 | gdb_have_gcore=false |
770 | for t in x ${gdb_target_obs}; do | |
771 | if test "$t" = linux-tdep.o; then | |
b292c783 | 772 | gdb_have_gcore=true |
c96b3c4f JK |
773 | fi |
774 | done |