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