]> Git Repo - binutils.git/blob - gdb/gdbserver/configure.srv
d6110dda91a1efd804ef9c7fa8871b36776262a3
[binutils.git] / gdb / gdbserver / configure.srv
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.
4
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
8 #                       for this target.
9 #   srv_hostio_err      The object implementing the hostio_last_error
10 #                       target method.
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.
15 #
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
20 #                       PTRACE_GETREGS.
21 #   srv_linux_usrregs   Set to "yes" if we can get at registers via
22 #                       PTRACE_PEEKUSR / PTRACE_POKEUSR.
23
24 # Default hostio_last_error implementation
25 srv_hostio_err_objs="hostio-errno.o"
26
27 srv_i386_regobj="i386.o i386-avx.o i386-mmx.o"
28 srv_i386_linux_regobj="i386-linux.o i386-avx-linux.o i386-mmx-linux.o"
29 srv_amd64_regobj="amd64.o amd64-avx.o"
30 srv_amd64_linux_regobj="amd64-linux.o amd64-avx-linux.o"
31
32 ipa_i386_linux_regobj=i386-linux-ipa.o
33 ipa_amd64_linux_regobj=amd64-linux-ipa.o
34
35 srv_i386_32bit_xmlfiles="i386/32bit-core.xml i386/32bit-sse.xml i386/32bit-avx.xml"
36 srv_i386_64bit_xmlfiles="i386/64bit-core.xml i386/64bit-sse.xml i386/64bit-avx.xml"
37 srv_i386_xmlfiles="i386/i386.xml i386/i386-avx.xml i386/i386-mmx.xml $srv_i386_32bit_xmlfiles"
38 srv_amd64_xmlfiles="i386/amd64.xml i386/amd64-avx.xml $srv_i386_64bit_xmlfiles"
39 srv_i386_linux_xmlfiles="i386/i386-linux.xml i386/i386-avx-linux.xml i386/i386-mmx-linux.xml i386/32bit-linux.xml $srv_i386_32bit_xmlfiles"
40 srv_amd64_linux_xmlfiles="i386/amd64-linux.xml i386/amd64-avx-linux.xml i386/64bit-linux.xml $srv_i386_64bit_xmlfiles"
41
42 # Input is taken from the "${target}" variable.
43
44 case "${target}" in
45   arm*-*-linux*)        srv_regobj="reg-arm.o arm-with-iwmmxt.o"
46                         srv_regobj="${srv_regobj} arm-with-vfpv2.o"
47                         srv_regobj="${srv_regobj} arm-with-vfpv3.o"
48                         srv_regobj="${srv_regobj} arm-with-neon.o"
49                         srv_tgtobj="linux-low.o linux-arm-low.o"
50                         srv_xmlfiles="arm-with-iwmmxt.xml"
51                         srv_xmlfiles="${srv_xmlfiles} arm-with-vfpv2.xml"
52                         srv_xmlfiles="${srv_xmlfiles} arm-with-vfpv3.xml"
53                         srv_xmlfiles="${srv_xmlfiles} arm-with-neon.xml"
54                         srv_xmlfiles="${srv_xmlfiles} arm-core.xml"
55                         srv_xmlfiles="${srv_xmlfiles} xscale-iwmmxt.xml"
56                         srv_xmlfiles="${srv_xmlfiles} arm-vfpv2.xml"
57                         srv_xmlfiles="${srv_xmlfiles} arm-vfpv3.xml"
58                         srv_linux_usrregs=yes
59                         srv_linux_regsets=yes
60                         srv_linux_thread_db=yes
61                         ;;
62   arm*-*-mingw32ce*)    srv_regobj=reg-arm.o
63                         srv_tgtobj="win32-low.o win32-arm-low.o"
64                         srv_tgtobj="${srv_tgtobj} wincecompat.o"
65                         # hostio_last_error implementation is in win32-low.c
66                         srv_hostio_err_objs=""
67                         srv_mingw=yes
68                         srv_mingwce=yes
69                         ;;
70   bfin-*-*linux*)       srv_regobj=reg-bfin.o
71                         srv_tgtobj="linux-low.o linux-bfin-low.o"
72                         srv_linux_usrregs=yes
73                         srv_linux_thread_db=yes
74                         ;;
75   crisv32-*-linux*)     srv_regobj=reg-crisv32.o
76                         srv_tgtobj="linux-low.o linux-crisv32-low.o"
77                         srv_linux_regsets=yes
78                         srv_linux_thread_db=yes
79                         ;;
80   cris-*-linux*)        srv_regobj=reg-cris.o
81                         srv_tgtobj="linux-low.o linux-cris-low.o"
82                         srv_linux_usrregs=yes
83                         srv_linux_thread_db=yes
84                         ;;
85   i[34567]86-*-cygwin*) srv_regobj="$srv_i386_regobj"
86                         srv_tgtobj="i386-low.o win32-low.o win32-i386-low.o"
87                         srv_xmlfiles="$srv_i386_xmlfiles"
88                         ;;
89   i[34567]86-*-linux*)  srv_regobj="$srv_i386_linux_regobj"
90                         srv_xmlfiles="$srv_i386_linux_xmlfiles"
91                         if test "$gdb_cv_i386_is_x86_64" = yes ; then
92                             srv_regobj="$srv_regobj $srv_amd64_linux_regobj"
93                             srv_xmlfiles="${srv_xmlfiles} $srv_amd64_linux_xmlfiles"
94                         fi
95                         srv_tgtobj="linux-low.o linux-x86-low.o i386-low.o i387-fp.o"
96                         srv_linux_usrregs=yes
97                         srv_linux_regsets=yes
98                         srv_linux_thread_db=yes
99                         ipa_obj="${ipa_i386_linux_regobj} linux-i386-ipa.o"
100                         ;;
101   i[34567]86-*-lynxos*) srv_regobj="i386.o"
102                         srv_tgtobj="lynx-low.o lynx-i386-low.o"
103                         srv_lynxos=yes
104                         ;;
105   i[34567]86-*-mingw32ce*)
106                         srv_regobj="$srv_i386_regobj"
107                         srv_tgtobj="i386-low.o win32-low.o win32-i386-low.o"
108                         srv_tgtobj="${srv_tgtobj} wincecompat.o"
109                         srv_xmlfiles="$srv_i386_xmlfiles"
110                         # hostio_last_error implementation is in win32-low.c
111                         srv_hostio_err_objs=""
112                         srv_mingw=yes
113                         srv_mingwce=yes
114                         ;;
115   i[34567]86-*-mingw*)  srv_regobj="$srv_i386_regobj"
116                         srv_tgtobj="i386-low.o win32-low.o win32-i386-low.o"
117                         srv_xmlfiles="$srv_i386_xmlfiles"
118                         srv_mingw=yes
119                         ;;
120   i[34567]86-*-nto*)    srv_regobj="$srv_i386_regobj"
121                         srv_tgtobj="nto-low.o nto-x86-low.o"
122                         srv_xmlfiles="$srv_i386_xmlfiles"
123                         srv_qnx="yes"
124                         ;;
125   ia64-*-linux*)        srv_regobj=reg-ia64.o
126                         srv_tgtobj="linux-low.o linux-ia64-low.o"
127                         srv_linux_usrregs=yes
128                         ;;
129   m32r*-*-linux*)       srv_regobj=reg-m32r.o
130                         srv_tgtobj="linux-low.o linux-m32r-low.o"
131                         srv_linux_usrregs=yes
132                         srv_linux_thread_db=yes
133                         ;;
134   m68*-*-linux*)        if test "$gdb_cv_m68k_is_coldfire" = yes; then
135                           srv_regobj=reg-cf.o
136                         else
137                           srv_regobj=reg-m68k.o
138                         fi
139                         srv_tgtobj="linux-low.o linux-m68k-low.o"
140                         srv_linux_usrregs=yes
141                         srv_linux_regsets=yes
142                         srv_linux_thread_db=yes
143                         ;;
144   m68*-*-uclinux*)      if test "$gdb_cv_m68k_is_coldfire" = yes; then
145                           srv_regobj=reg-cf.o
146                         else
147                           srv_regobj=reg-m68k.o
148                         fi
149                         srv_tgtobj="linux-low.o linux-m68k-low.o"
150                         srv_linux_usrregs=yes
151                         srv_linux_regsets=yes
152                         srv_linux_thread_db=yes
153                         ;;
154   mips*-*-linux*)       srv_regobj="mips-linux.o mips64-linux.o"
155                         srv_tgtobj="linux-low.o linux-mips-low.o"
156                         srv_xmlfiles="mips-linux.xml"
157                         srv_xmlfiles="${srv_xmlfiles} mips-cpu.xml"
158                         srv_xmlfiles="${srv_xmlfiles} mips-cp0.xml"
159                         srv_xmlfiles="${srv_xmlfiles} mips-fpu.xml"
160                         srv_xmlfiles="${srv_xmlfiles} mips64-linux.xml"
161                         srv_xmlfiles="${srv_xmlfiles} mips64-cpu.xml"
162                         srv_xmlfiles="${srv_xmlfiles} mips64-cp0.xml"
163                         srv_xmlfiles="${srv_xmlfiles} mips64-fpu.xml"
164                         srv_linux_regsets=yes
165                         srv_linux_usrregs=yes
166                         srv_linux_thread_db=yes
167                         ;;
168   powerpc*-*-linux*)    srv_regobj="powerpc-32l.o"
169                         srv_regobj="${srv_regobj} powerpc-altivec32l.o"
170                         srv_regobj="${srv_regobj} powerpc-cell32l.o"
171                         srv_regobj="${srv_regobj} powerpc-vsx32l.o"
172                         srv_regobj="${srv_regobj} powerpc-isa205-32l.o"
173                         srv_regobj="${srv_regobj} powerpc-isa205-altivec32l.o"
174                         srv_regobj="${srv_regobj} powerpc-isa205-vsx32l.o"
175                         srv_regobj="${srv_regobj} powerpc-e500l.o"
176                         srv_regobj="${srv_regobj} powerpc-64l.o"
177                         srv_regobj="${srv_regobj} powerpc-altivec64l.o"
178                         srv_regobj="${srv_regobj} powerpc-cell64l.o"
179                         srv_regobj="${srv_regobj} powerpc-vsx64l.o"
180                         srv_regobj="${srv_regobj} powerpc-isa205-64l.o"
181                         srv_regobj="${srv_regobj} powerpc-isa205-altivec64l.o"
182                         srv_regobj="${srv_regobj} powerpc-isa205-vsx64l.o"
183                         srv_tgtobj="linux-low.o linux-ppc-low.o"
184                         srv_xmlfiles="rs6000/powerpc-32l.xml"
185                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-altivec32l.xml"
186                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-cell32l.xml"
187                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-vsx32l.xml"
188                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-32l.xml"
189                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-altivec32l.xml"
190                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-vsx32l.xml"
191                         srv_xmlfiles="${srv_xmlfiles} rs6000/power-altivec.xml"
192                         srv_xmlfiles="${srv_xmlfiles} rs6000/power-vsx.xml"
193                         srv_xmlfiles="${srv_xmlfiles} rs6000/power-core.xml"
194                         srv_xmlfiles="${srv_xmlfiles} rs6000/power-linux.xml"
195                         srv_xmlfiles="${srv_xmlfiles} rs6000/power-fpu.xml"
196                         srv_xmlfiles="${srv_xmlfiles} rs6000/power-fpu-isa205.xml"
197                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-e500l.xml"
198                         srv_xmlfiles="${srv_xmlfiles} rs6000/power-spe.xml"
199                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-64l.xml"
200                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-altivec64l.xml"
201                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-cell64l.xml"
202                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-vsx64l.xml"
203                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-64l.xml"
204                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-altivec64l.xml"
205                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-vsx64l.xml"
206                         srv_xmlfiles="${srv_xmlfiles} rs6000/power64-core.xml"
207                         srv_xmlfiles="${srv_xmlfiles} rs6000/power64-linux.xml"
208                         srv_linux_usrregs=yes
209                         srv_linux_regsets=yes
210                         srv_linux_thread_db=yes
211                         ;;
212   powerpc-*-lynxos*)    srv_regobj="powerpc-32.o"
213                         srv_tgtobj="lynx-low.o lynx-ppc-low.o"
214                         srv_lynxos=yes
215                         ;;
216   s390*-*-linux*)       srv_regobj="s390-linux32.o"
217                         srv_regobj="${srv_regobj} s390-linux64.o"
218                         srv_regobj="${srv_regobj} s390x-linux64.o"
219                         srv_tgtobj="linux-low.o linux-s390-low.o"
220                         srv_xmlfiles="s390-linux32.xml"
221                         srv_xmlfiles="${srv_xmlfiles} s390-linux64.xml"
222                         srv_xmlfiles="${srv_xmlfiles} s390x-linux64.xml"
223                         srv_xmlfiles="${srv_xmlfiles} s390-core32.xml"
224                         srv_xmlfiles="${srv_xmlfiles} s390-core64.xml"
225                         srv_xmlfiles="${srv_xmlfiles} s390x-core64.xml"
226                         srv_xmlfiles="${srv_xmlfiles} s390-acr.xml"
227                         srv_xmlfiles="${srv_xmlfiles} s390-fpr.xml"
228                         srv_linux_usrregs=yes
229                         srv_linux_regsets=yes
230                         srv_linux_thread_db=yes
231                         ;;
232   sh*-*-linux*)         srv_regobj=reg-sh.o
233                         srv_tgtobj="linux-low.o linux-sh-low.o"
234                         srv_linux_usrregs=yes
235                         srv_linux_regsets=yes
236                         srv_linux_thread_db=yes
237                         ;;
238   sparc*-*-linux*)      srv_regobj=reg-sparc64.o
239                         srv_tgtobj="linux-low.o linux-sparc-low.o"
240                         srv_linux_regsets=yes
241                         srv_linux_thread_db=yes
242                         ;;
243   spu*-*-*)             srv_regobj=reg-spu.o
244                         srv_tgtobj="spu-low.o"
245                         ;;
246   x86_64-*-linux*)      srv_regobj="$srv_amd64_linux_regobj $srv_i386_linux_regobj"
247                         srv_tgtobj="linux-low.o linux-x86-low.o i386-low.o i387-fp.o"
248                         srv_xmlfiles="$srv_i386_linux_xmlfiles $srv_amd64_linux_xmlfiles"
249                         srv_linux_usrregs=yes # This is for i386 progs.
250                         srv_linux_regsets=yes
251                         srv_linux_thread_db=yes
252                         ipa_obj="${ipa_amd64_linux_regobj} linux-amd64-ipa.o"
253                         ;;
254   x86_64-*-mingw*)      srv_regobj="$srv_amd64_regobj"
255                         srv_tgtobj="i386-low.o i387-fp.o win32-low.o win32-i386-low.o"
256                         srv_xmlfiles="$srv_i386_xmlfiles $srv_amd64_xmlfiles"
257                         srv_mingw=yes
258                         ;;
259
260   xscale*-*-linux*)     srv_regobj=reg-arm.o
261                         srv_tgtobj="linux-low.o linux-arm-low.o"
262                         srv_linux_usrregs=yes
263                         srv_linux_thread_db=yes
264                         ;;
265   xtensa*-*-linux*)     srv_regobj=reg-xtensa.o
266                         srv_tgtobj="linux-low.o linux-xtensa-low.o"
267                         srv_linux_regsets=yes
268                         ;;
269   *)                    echo "Error: target not supported by gdbserver."
270                         exit 1
271                         ;;
272 esac
This page took 0.031758 seconds and 2 git commands to generate.