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