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