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