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