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