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