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