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