1 # Mappings from configuration triplets to gdbserver build options.
2 # This is invoked from the autoconf-generated configure script, to
3 # produce the appropriate Makefile substitutions.
5 # This file sets the following shell variables:
6 # srv_regobj The register protocol appropriate for this target.
7 # srv_tgtobj Any other target-specific modules appropriate
9 # srv_hostio_err The object implementing the hostio_last_error
11 # srv_xmlfiles All XML files which should be available for
12 # gdbserver in this configuration.
13 # ipa_obj Any other target-specific modules appropriate
14 # for this target's in-process agent.
16 # In addition, on GNU/Linux the following shell variables will be set:
17 # srv_linux_regsets Set to "yes" if ptrace(PTRACE_GETREGS) and friends
18 # may be available on this platform; unset otherwise.
19 # They will only be used if <sys/ptrace.h> defines
21 # srv_linux_usrregs Set to "yes" if we can get at registers via
22 # PTRACE_PEEKUSR / PTRACE_POKEUSR.
24 # Default hostio_last_error implementation
25 srv_hostio_err_objs="hostio-errno.o"
27 srv_i386_regobj="i386.o i386-avx.o i386-avx512.o i386-mpx.o i386-mmx.o"
28 srv_i386_linux_regobj="i386-linux.o i386-avx-linux.o i386-avx512-linux.o i386-mpx-linux.o i386-mmx-linux.o"
29 srv_amd64_regobj="amd64.o amd64-avx.o amd64-avx512.o amd64-mpx.o x32.o x32-avx.o x32-avx512.o"
30 srv_amd64_linux_regobj="amd64-linux.o amd64-avx-linux.o amd64-avx512-linux.o amd64-mpx-linux.o x32-linux.o x32-avx-linux.o x32-avx512-linux.o"
32 ipa_i386_linux_regobj=i386-linux-ipa.o
33 ipa_amd64_linux_regobj=amd64-linux-ipa.o
35 srv_i386_32bit_xmlfiles="i386/32bit-core.xml i386/32bit-sse.xml i386/32bit-avx.xml i386/32bit-avx512.xml i386/32bit-mpx.xml"
36 srv_i386_64bit_xmlfiles="i386/64bit-core.xml i386/64bit-sse.xml i386/64bit-avx.xml i386/64bit-avx512.xml i386/x32-core.xml i386/64bit-mpx.xml"
37 srv_i386_xmlfiles="i386/i386.xml i386/i386-avx.xml i386/i386-avx512.xml i386/i386-mpx.xml i386/i386-mmx.xml $srv_i386_32bit_xmlfiles"
38 srv_amd64_xmlfiles="i386/amd64.xml i386/amd64-avx.xml i386/amd64-avx512.xml i386/x32.xml i386/x32-avx.xml i386/x32-avx512.xml i386/amd64-mpx.xml $srv_i386_64bit_xmlfiles"
39 srv_i386_linux_xmlfiles="i386/i386-linux.xml i386/i386-avx-linux.xml i386/i386-avx512-linux.xml i386/i386-mmx-linux.xml i386/32bit-linux.xml i386/i386-mpx-linux.xml $srv_i386_32bit_xmlfiles"
40 srv_amd64_linux_xmlfiles="i386/amd64-linux.xml i386/amd64-avx-linux.xml i386/amd64-avx512-linux.xml i386/64bit-linux.xml i386/amd64-mpx-linux.xml i386/x32-linux.xml i386/x32-avx-linux.xml i386/x32-avx512-linux.xml $srv_i386_64bit_xmlfiles"
43 # Linux object files. This is so we don't have to repeat
44 # these files over and over again.
45 srv_linux_obj="linux-low.o linux-osdata.o linux-procfs.o linux-ptrace.o linux-waitpid.o linux-personality.o linux-namespaces.o"
47 # Input is taken from the "${target}" variable.
51 srv_regobj="aarch64.o"
52 srv_regobj="${srv_regobj} arm-with-neon.o"
53 srv_tgtobj="linux-aarch64-low.o aarch64-linux-hw-point.o"
54 srv_tgtobj="$srv_tgtobj linux-aarch32-low.o"
55 srv_tgtobj="${srv_tgtobj} arm.o"
56 srv_tgtobj="$srv_tgtobj aarch64-linux.o"
57 srv_tgtobj="$srv_tgtobj aarch64-insn.o"
58 srv_tgtobj="${srv_tgtobj} $srv_linux_obj"
59 srv_xmlfiles="aarch64.xml"
60 srv_xmlfiles="${srv_xmlfiles} aarch64-core.xml"
61 srv_xmlfiles="${srv_xmlfiles} aarch64-fpu.xml"
62 srv_xmlfiles="${srv_xmlfiles} arm-core.xml arm-vfpv3.xml"
63 srv_xmlfiles="${srv_xmlfiles} arm-with-neon.xml"
65 srv_linux_thread_db=yes
66 ipa_obj="linux-aarch64-ipa.o aarch64-ipa.o"
68 arm*-*-linux*) srv_regobj="reg-arm.o arm-with-iwmmxt.o"
69 srv_regobj="${srv_regobj} arm-with-vfpv2.o"
70 srv_regobj="${srv_regobj} arm-with-vfpv3.o"
71 srv_regobj="${srv_regobj} arm-with-neon.o"
72 srv_tgtobj="$srv_linux_obj linux-arm-low.o"
73 srv_tgtobj="$srv_tgtobj linux-aarch32-low.o"
74 srv_tgtobj="${srv_tgtobj} arm.o"
75 srv_xmlfiles="arm-with-iwmmxt.xml"
76 srv_xmlfiles="${srv_xmlfiles} arm-with-vfpv2.xml"
77 srv_xmlfiles="${srv_xmlfiles} arm-with-vfpv3.xml"
78 srv_xmlfiles="${srv_xmlfiles} arm-with-neon.xml"
79 srv_xmlfiles="${srv_xmlfiles} arm-core.xml"
80 srv_xmlfiles="${srv_xmlfiles} xscale-iwmmxt.xml"
81 srv_xmlfiles="${srv_xmlfiles} arm-vfpv2.xml"
82 srv_xmlfiles="${srv_xmlfiles} arm-vfpv3.xml"
85 srv_linux_thread_db=yes
87 arm*-*-mingw32ce*) srv_regobj=reg-arm.o
88 srv_tgtobj="win32-low.o win32-arm-low.o"
89 srv_tgtobj="${srv_tgtobj} wincecompat.o"
90 # hostio_last_error implementation is in win32-low.c
91 srv_hostio_err_objs=""
95 bfin-*-*linux*) srv_regobj=reg-bfin.o
96 srv_tgtobj="$srv_linux_obj linux-bfin-low.o"
98 srv_linux_thread_db=yes
100 crisv32-*-linux*) srv_regobj=reg-crisv32.o
101 srv_tgtobj="$srv_linux_obj linux-crisv32-low.o"
102 srv_linux_regsets=yes
103 srv_linux_thread_db=yes
105 cris-*-linux*) srv_regobj=reg-cris.o
106 srv_tgtobj="$srv_linux_obj linux-cris-low.o"
107 srv_linux_usrregs=yes
108 srv_linux_thread_db=yes
110 i[34567]86-*-cygwin*) srv_regobj="$srv_i386_regobj"
111 srv_tgtobj="x86-low.o x86-dregs.o win32-low.o win32-i386-low.o"
112 srv_xmlfiles="$srv_i386_xmlfiles"
114 i[34567]86-*-linux*) srv_regobj="$srv_i386_linux_regobj"
115 srv_xmlfiles="$srv_i386_linux_xmlfiles"
116 if test "$gdb_cv_i386_is_x86_64" = yes ; then
117 srv_regobj="$srv_regobj $srv_amd64_linux_regobj"
118 srv_xmlfiles="${srv_xmlfiles} $srv_amd64_linux_xmlfiles"
120 srv_tgtobj="$srv_linux_obj linux-x86-low.o x86-low.o x86-dregs.o i387-fp.o"
121 srv_tgtobj="${srv_tgtobj} linux-btrace.o x86-linux.o"
122 srv_tgtobj="${srv_tgtobj} x86-linux-dregs.o"
123 srv_linux_usrregs=yes
124 srv_linux_regsets=yes
125 srv_linux_thread_db=yes
127 ipa_obj="${ipa_i386_linux_regobj} linux-i386-ipa.o"
129 i[34567]86-*-lynxos*) srv_regobj="i386.o"
130 srv_tgtobj="lynx-low.o lynx-i386-low.o"
131 srv_xmlfiles="i386/i386.xml"
132 srv_xmlfiles="${srv_xmlfiles} i386/32bit-core.xml"
133 srv_xmlfiles="${srv_xmlfiles} i386/32bit-sse.xml"
136 i[34567]86-*-mingw32ce*)
137 srv_regobj="$srv_i386_regobj"
138 srv_tgtobj="x86-low.o x86-dregs.o win32-low.o win32-i386-low.o"
139 srv_tgtobj="${srv_tgtobj} wincecompat.o"
140 srv_xmlfiles="$srv_i386_xmlfiles"
141 # hostio_last_error implementation is in win32-low.c
142 srv_hostio_err_objs=""
146 i[34567]86-*-mingw*) srv_regobj="$srv_i386_regobj"
147 srv_tgtobj="x86-low.o x86-dregs.o win32-low.o win32-i386-low.o"
148 srv_xmlfiles="$srv_i386_xmlfiles"
151 i[34567]86-*-nto*) srv_regobj="$srv_i386_regobj"
152 srv_tgtobj="nto-low.o nto-x86-low.o"
153 srv_xmlfiles="$srv_i386_xmlfiles"
156 ia64-*-linux*) srv_regobj=reg-ia64.o
157 srv_tgtobj="$srv_linux_obj linux-ia64-low.o"
158 srv_linux_usrregs=yes
160 m32r*-*-linux*) srv_regobj=reg-m32r.o
161 srv_tgtobj="$srv_linux_obj linux-m32r-low.o"
162 srv_linux_usrregs=yes
163 srv_linux_thread_db=yes
165 m68*-*-linux*) if test "$gdb_cv_m68k_is_coldfire" = yes; then
168 srv_regobj=reg-m68k.o
170 srv_tgtobj="$srv_linux_obj linux-m68k-low.o"
171 srv_linux_usrregs=yes
172 srv_linux_regsets=yes
173 srv_linux_thread_db=yes
175 m68*-*-uclinux*) if test "$gdb_cv_m68k_is_coldfire" = yes; then
178 srv_regobj=reg-m68k.o
180 srv_tgtobj="$srv_linux_obj linux-m68k-low.o"
181 srv_linux_usrregs=yes
182 srv_linux_regsets=yes
183 srv_linux_thread_db=yes
185 mips*-*-linux*) srv_regobj="mips-linux.o"
186 srv_regobj="${srv_regobj} mips-dsp-linux.o"
187 srv_regobj="${srv_regobj} mips64-linux.o"
188 srv_regobj="${srv_regobj} mips64-dsp-linux.o"
189 srv_tgtobj="$srv_linux_obj linux-mips-low.o"
190 srv_tgtobj="${srv_tgtobj} mips-linux-watch.o"
191 srv_xmlfiles="mips-linux.xml"
192 srv_xmlfiles="${srv_xmlfiles} mips-dsp-linux.xml"
193 srv_xmlfiles="${srv_xmlfiles} mips-cpu.xml"
194 srv_xmlfiles="${srv_xmlfiles} mips-cp0.xml"
195 srv_xmlfiles="${srv_xmlfiles} mips-fpu.xml"
196 srv_xmlfiles="${srv_xmlfiles} mips-dsp.xml"
197 srv_xmlfiles="${srv_xmlfiles} mips64-linux.xml"
198 srv_xmlfiles="${srv_xmlfiles} mips64-dsp-linux.xml"
199 srv_xmlfiles="${srv_xmlfiles} mips64-cpu.xml"
200 srv_xmlfiles="${srv_xmlfiles} mips64-cp0.xml"
201 srv_xmlfiles="${srv_xmlfiles} mips64-fpu.xml"
202 srv_xmlfiles="${srv_xmlfiles} mips64-dsp.xml"
203 srv_linux_regsets=yes
204 srv_linux_usrregs=yes
205 srv_linux_thread_db=yes
207 nios2*-*-linux*) srv_regobj="nios2-linux.o"
208 srv_tgtobj="$srv_linux_obj linux-nios2-low.o"
209 srv_xmlfiles="nios2-linux.xml"
210 srv_xmlfiles="${srv_xmlfiles} nios2-cpu.xml"
211 srv_linux_regsets=yes
212 srv_linux_usrregs=yes
213 srv_linux_thread_db=yes
215 powerpc*-*-linux*) srv_regobj="powerpc-32l.o"
216 srv_regobj="${srv_regobj} powerpc-altivec32l.o"
217 srv_regobj="${srv_regobj} powerpc-cell32l.o"
218 srv_regobj="${srv_regobj} powerpc-vsx32l.o"
219 srv_regobj="${srv_regobj} powerpc-isa205-32l.o"
220 srv_regobj="${srv_regobj} powerpc-isa205-altivec32l.o"
221 srv_regobj="${srv_regobj} powerpc-isa205-vsx32l.o"
222 srv_regobj="${srv_regobj} powerpc-e500l.o"
223 srv_regobj="${srv_regobj} powerpc-64l.o"
224 srv_regobj="${srv_regobj} powerpc-altivec64l.o"
225 srv_regobj="${srv_regobj} powerpc-cell64l.o"
226 srv_regobj="${srv_regobj} powerpc-vsx64l.o"
227 srv_regobj="${srv_regobj} powerpc-isa205-64l.o"
228 srv_regobj="${srv_regobj} powerpc-isa205-altivec64l.o"
229 srv_regobj="${srv_regobj} powerpc-isa205-vsx64l.o"
230 srv_tgtobj="$srv_linux_obj linux-ppc-low.o ppc-linux.o"
231 srv_xmlfiles="rs6000/powerpc-32l.xml"
232 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-altivec32l.xml"
233 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-cell32l.xml"
234 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-vsx32l.xml"
235 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-32l.xml"
236 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-altivec32l.xml"
237 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-vsx32l.xml"
238 srv_xmlfiles="${srv_xmlfiles} rs6000/power-altivec.xml"
239 srv_xmlfiles="${srv_xmlfiles} rs6000/power-vsx.xml"
240 srv_xmlfiles="${srv_xmlfiles} rs6000/power-core.xml"
241 srv_xmlfiles="${srv_xmlfiles} rs6000/power-linux.xml"
242 srv_xmlfiles="${srv_xmlfiles} rs6000/power-fpu.xml"
243 srv_xmlfiles="${srv_xmlfiles} rs6000/power-fpu-isa205.xml"
244 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-e500l.xml"
245 srv_xmlfiles="${srv_xmlfiles} rs6000/power-spe.xml"
246 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-64l.xml"
247 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-altivec64l.xml"
248 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-cell64l.xml"
249 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-vsx64l.xml"
250 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-64l.xml"
251 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-altivec64l.xml"
252 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-vsx64l.xml"
253 srv_xmlfiles="${srv_xmlfiles} rs6000/power64-core.xml"
254 srv_xmlfiles="${srv_xmlfiles} rs6000/power64-linux.xml"
255 srv_linux_usrregs=yes
256 srv_linux_regsets=yes
257 srv_linux_thread_db=yes
259 powerpc-*-lynxos*) srv_regobj="powerpc-32.o"
260 srv_tgtobj="lynx-low.o lynx-ppc-low.o"
261 srv_xmlfiles="rs6000/powerpc-32.xml"
262 srv_xmlfiles="${srv_xmlfiles} rs6000/power-core.xml"
263 srv_xmlfiles="${srv_xmlfiles} rs6000/power-fpu.xml"
266 s390*-*-linux*) srv_regobj="s390-linux32.o"
267 srv_regobj="${srv_regobj} s390-linux32v1.o"
268 srv_regobj="${srv_regobj} s390-linux32v2.o"
269 srv_regobj="${srv_regobj} s390-linux64.o"
270 srv_regobj="${srv_regobj} s390-linux64v1.o"
271 srv_regobj="${srv_regobj} s390-linux64v2.o"
272 srv_regobj="${srv_regobj} s390-te-linux64.o"
273 srv_regobj="${srv_regobj} s390-vx-linux64.o"
274 srv_regobj="${srv_regobj} s390-tevx-linux64.o"
275 srv_regobj="${srv_regobj} s390x-linux64.o"
276 srv_regobj="${srv_regobj} s390x-linux64v1.o"
277 srv_regobj="${srv_regobj} s390x-linux64v2.o"
278 srv_regobj="${srv_regobj} s390x-te-linux64.o"
279 srv_regobj="${srv_regobj} s390x-vx-linux64.o"
280 srv_regobj="${srv_regobj} s390x-tevx-linux64.o"
281 srv_tgtobj="$srv_linux_obj linux-s390-low.o"
282 srv_xmlfiles="s390-linux32.xml"
283 srv_xmlfiles="${srv_xmlfiles} s390-linux32v1.xml"
284 srv_xmlfiles="${srv_xmlfiles} s390-linux32v2.xml"
285 srv_xmlfiles="${srv_xmlfiles} s390-linux64.xml"
286 srv_xmlfiles="${srv_xmlfiles} s390-linux64v1.xml"
287 srv_xmlfiles="${srv_xmlfiles} s390-linux64v2.xml"
288 srv_xmlfiles="${srv_xmlfiles} s390-te-linux64.xml"
289 srv_xmlfiles="${srv_xmlfiles} s390-vx-linux64.xml"
290 srv_xmlfiles="${srv_xmlfiles} s390-tevx-linux64.xml"
291 srv_xmlfiles="${srv_xmlfiles} s390x-linux64.xml"
292 srv_xmlfiles="${srv_xmlfiles} s390x-linux64v1.xml"
293 srv_xmlfiles="${srv_xmlfiles} s390x-linux64v2.xml"
294 srv_xmlfiles="${srv_xmlfiles} s390x-te-linux64.xml"
295 srv_xmlfiles="${srv_xmlfiles} s390x-vx-linux64.xml"
296 srv_xmlfiles="${srv_xmlfiles} s390x-tevx-linux64.xml"
297 srv_xmlfiles="${srv_xmlfiles} s390-core32.xml"
298 srv_xmlfiles="${srv_xmlfiles} s390-core64.xml"
299 srv_xmlfiles="${srv_xmlfiles} s390x-core64.xml"
300 srv_xmlfiles="${srv_xmlfiles} s390-acr.xml"
301 srv_xmlfiles="${srv_xmlfiles} s390-fpr.xml"
302 srv_xmlfiles="${srv_xmlfiles} s390-tdb.xml"
303 srv_xmlfiles="${srv_xmlfiles} s390-vx.xml"
304 srv_linux_usrregs=yes
305 srv_linux_regsets=yes
306 srv_linux_thread_db=yes
308 sh*-*-linux*) srv_regobj=reg-sh.o
309 srv_tgtobj="$srv_linux_obj linux-sh-low.o"
310 srv_linux_usrregs=yes
311 srv_linux_regsets=yes
312 srv_linux_thread_db=yes
314 sparc*-*-linux*) srv_regobj=reg-sparc64.o
315 srv_tgtobj="$srv_linux_obj linux-sparc-low.o"
316 srv_linux_regsets=yes
317 srv_linux_thread_db=yes
319 spu*-*-*) srv_regobj=reg-spu.o
320 srv_tgtobj="spu-low.o"
322 tic6x-*-uclinux) srv_regobj="tic6x-c64xp-linux.o"
323 srv_regobj="${srv_regobj} tic6x-c64x-linux.o"
324 srv_regobj="${srv_regobj} tic6x-c62x-linux.o"
325 srv_xmlfiles="tic6x-c64xp-linux.xml"
326 srv_xmlfiles="${srv_xmlfiles} tic6x-c64x-linux.xml"
327 srv_xmlfiles="${srv_xmlfiles} tic6x-c62x-linux.xml"
328 srv_xmlfiles="${srv_xmlfiles} tic6x-core.xml"
329 srv_xmlfiles="${srv_xmlfiles} tic6x-gp.xml"
330 srv_xmlfiles="${srv_xmlfiles} tic6x-c6xp.xml"
331 srv_tgtobj="$srv_linux_obj linux-tic6x-low.o"
332 srv_linux_regsets=yes
333 srv_linux_usrregs=yes
334 srv_linux_thread_db=yes
336 x86_64-*-linux*) srv_regobj="$srv_amd64_linux_regobj $srv_i386_linux_regobj"
337 srv_tgtobj="$srv_linux_obj linux-x86-low.o x86-low.o x86-dregs.o i387-fp.o"
338 srv_tgtobj="${srv_tgtobj} linux-btrace.o x86-linux.o"
339 srv_tgtobj="${srv_tgtobj} x86-linux-dregs.o"
340 srv_xmlfiles="$srv_i386_linux_xmlfiles $srv_amd64_linux_xmlfiles"
341 srv_linux_usrregs=yes # This is for i386 progs.
342 srv_linux_regsets=yes
343 srv_linux_thread_db=yes
345 ipa_obj="${ipa_amd64_linux_regobj} linux-amd64-ipa.o"
347 x86_64-*-mingw*) srv_regobj="$srv_amd64_regobj"
348 srv_tgtobj="x86-low.o x86-dregs.o i387-fp.o win32-low.o win32-i386-low.o"
349 srv_xmlfiles="$srv_i386_xmlfiles $srv_amd64_xmlfiles"
352 x86_64-*-cygwin*) srv_regobj="$srv_amd64_regobj"
353 srv_tgtobj="x86-low.o x86-dregs.o i387-fp.o win32-low.o win32-i386-low.o"
354 srv_xmlfiles="$srv_i386_xmlfiles"
357 xtensa*-*-linux*) srv_regobj=reg-xtensa.o
358 srv_tgtobj="$srv_linux_obj linux-xtensa-low.o"
359 srv_linux_regsets=yes
360 srv_linux_thread_db=yes
362 tilegx-*-linux*) srv_regobj=reg-tilegx.o
363 srv_regobj="${srv_regobj} reg-tilegx32.o"
364 srv_tgtobj="$srv_linux_obj linux-tile-low.o"
365 srv_linux_regsets=yes
366 srv_linux_thread_db=yes
368 *) echo "Error: target not supported by gdbserver."