1 |
330 |
jeremybenn |
# 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 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 |
|
|
crisv32-*-linux*) srv_regobj=reg-crisv32.o
|
71 |
|
|
srv_tgtobj="linux-low.o linux-crisv32-low.o"
|
72 |
|
|
srv_linux_regsets=yes
|
73 |
|
|
srv_linux_thread_db=yes
|
74 |
|
|
;;
|
75 |
|
|
cris-*-linux*) srv_regobj=reg-cris.o
|
76 |
|
|
srv_tgtobj="linux-low.o linux-cris-low.o"
|
77 |
|
|
srv_linux_usrregs=yes
|
78 |
|
|
srv_linux_thread_db=yes
|
79 |
|
|
;;
|
80 |
|
|
i[34567]86-*-cygwin*) srv_regobj="$srv_i386_regobj"
|
81 |
|
|
srv_tgtobj="i386-low.o win32-low.o win32-i386-low.o"
|
82 |
|
|
srv_xmlfiles="$srv_i386_xmlfiles"
|
83 |
|
|
;;
|
84 |
|
|
i[34567]86-*-linux*) srv_regobj="$srv_i386_linux_regobj"
|
85 |
|
|
srv_xmlfiles="$srv_i386_linux_xmlfiles"
|
86 |
|
|
if test "$gdb_cv_i386_is_x86_64" = yes ; then
|
87 |
|
|
srv_regobj="$srv_regobj $srv_amd64_linux_regobj"
|
88 |
|
|
srv_xmlfiles="${srv_xmlfiles} $srv_amd64_linux_xmlfiles"
|
89 |
|
|
fi
|
90 |
|
|
srv_tgtobj="linux-low.o linux-x86-low.o i386-low.o i387-fp.o"
|
91 |
|
|
srv_linux_usrregs=yes
|
92 |
|
|
srv_linux_regsets=yes
|
93 |
|
|
srv_linux_thread_db=yes
|
94 |
|
|
ipa_obj="${ipa_i386_linux_regobj} linux-i386-ipa.o"
|
95 |
|
|
;;
|
96 |
|
|
i[34567]86-*-mingw32ce*)
|
97 |
|
|
srv_regobj="$srv_i386_regobj"
|
98 |
|
|
srv_tgtobj="i386-low.o win32-low.o win32-i386-low.o"
|
99 |
|
|
srv_tgtobj="${srv_tgtobj} wincecompat.o"
|
100 |
|
|
srv_xmlfiles="$srv_i386_xmlfiles"
|
101 |
|
|
# hostio_last_error implementation is in win32-low.c
|
102 |
|
|
srv_hostio_err_objs=""
|
103 |
|
|
srv_mingw=yes
|
104 |
|
|
srv_mingwce=yes
|
105 |
|
|
;;
|
106 |
|
|
i[34567]86-*-mingw*) srv_regobj="$srv_i386_regobj"
|
107 |
|
|
srv_tgtobj="i386-low.o win32-low.o win32-i386-low.o"
|
108 |
|
|
srv_xmlfiles="$srv_i386_xmlfiles"
|
109 |
|
|
srv_mingw=yes
|
110 |
|
|
;;
|
111 |
|
|
i[34567]86-*-nto*) srv_regobj="$srv_i386_regobj"
|
112 |
|
|
srv_tgtobj="nto-low.o nto-x86-low.o"
|
113 |
|
|
srv_xmlfiles="$srv_i386_xmlfiles"
|
114 |
|
|
srv_qnx="yes"
|
115 |
|
|
;;
|
116 |
|
|
ia64-*-linux*) srv_regobj=reg-ia64.o
|
117 |
|
|
srv_tgtobj="linux-low.o linux-ia64-low.o"
|
118 |
|
|
srv_linux_usrregs=yes
|
119 |
|
|
;;
|
120 |
|
|
m32r*-*-linux*) srv_regobj=reg-m32r.o
|
121 |
|
|
srv_tgtobj="linux-low.o linux-m32r-low.o"
|
122 |
|
|
srv_linux_usrregs=yes
|
123 |
|
|
srv_linux_thread_db=yes
|
124 |
|
|
;;
|
125 |
|
|
m68*-*-linux*) if test "$gdb_cv_m68k_is_coldfire" = yes; then
|
126 |
|
|
srv_regobj=reg-cf.o
|
127 |
|
|
else
|
128 |
|
|
srv_regobj=reg-m68k.o
|
129 |
|
|
fi
|
130 |
|
|
srv_tgtobj="linux-low.o linux-m68k-low.o"
|
131 |
|
|
srv_linux_usrregs=yes
|
132 |
|
|
srv_linux_regsets=yes
|
133 |
|
|
srv_linux_thread_db=yes
|
134 |
|
|
;;
|
135 |
|
|
m68*-*-uclinux*) if test "$gdb_cv_m68k_is_coldfire" = yes; then
|
136 |
|
|
srv_regobj=reg-cf.o
|
137 |
|
|
else
|
138 |
|
|
srv_regobj=reg-m68k.o
|
139 |
|
|
fi
|
140 |
|
|
srv_tgtobj="linux-low.o linux-m68k-low.o"
|
141 |
|
|
srv_linux_usrregs=yes
|
142 |
|
|
srv_linux_regsets=yes
|
143 |
|
|
srv_linux_thread_db=yes
|
144 |
|
|
;;
|
145 |
|
|
mips*-*-linux*) srv_regobj="mips-linux.o mips64-linux.o"
|
146 |
|
|
srv_tgtobj="linux-low.o linux-mips-low.o"
|
147 |
|
|
srv_xmlfiles="mips-linux.xml"
|
148 |
|
|
srv_xmlfiles="${srv_xmlfiles} mips-cpu.xml"
|
149 |
|
|
srv_xmlfiles="${srv_xmlfiles} mips-cp0.xml"
|
150 |
|
|
srv_xmlfiles="${srv_xmlfiles} mips-fpu.xml"
|
151 |
|
|
srv_xmlfiles="${srv_xmlfiles} mips64-linux.xml"
|
152 |
|
|
srv_xmlfiles="${srv_xmlfiles} mips64-cpu.xml"
|
153 |
|
|
srv_xmlfiles="${srv_xmlfiles} mips64-cp0.xml"
|
154 |
|
|
srv_xmlfiles="${srv_xmlfiles} mips64-fpu.xml"
|
155 |
|
|
srv_linux_regsets=yes
|
156 |
|
|
srv_linux_usrregs=yes
|
157 |
|
|
srv_linux_thread_db=yes
|
158 |
|
|
;;
|
159 |
|
|
powerpc*-*-linux*) srv_regobj="powerpc-32l.o"
|
160 |
|
|
srv_regobj="${srv_regobj} powerpc-altivec32l.o"
|
161 |
|
|
srv_regobj="${srv_regobj} powerpc-cell32l.o"
|
162 |
|
|
srv_regobj="${srv_regobj} powerpc-vsx32l.o"
|
163 |
|
|
srv_regobj="${srv_regobj} powerpc-isa205-32l.o"
|
164 |
|
|
srv_regobj="${srv_regobj} powerpc-isa205-altivec32l.o"
|
165 |
|
|
srv_regobj="${srv_regobj} powerpc-isa205-vsx32l.o"
|
166 |
|
|
srv_regobj="${srv_regobj} powerpc-e500l.o"
|
167 |
|
|
srv_regobj="${srv_regobj} powerpc-64l.o"
|
168 |
|
|
srv_regobj="${srv_regobj} powerpc-altivec64l.o"
|
169 |
|
|
srv_regobj="${srv_regobj} powerpc-cell64l.o"
|
170 |
|
|
srv_regobj="${srv_regobj} powerpc-vsx64l.o"
|
171 |
|
|
srv_regobj="${srv_regobj} powerpc-isa205-64l.o"
|
172 |
|
|
srv_regobj="${srv_regobj} powerpc-isa205-altivec64l.o"
|
173 |
|
|
srv_regobj="${srv_regobj} powerpc-isa205-vsx64l.o"
|
174 |
|
|
srv_tgtobj="linux-low.o linux-ppc-low.o"
|
175 |
|
|
srv_xmlfiles="rs6000/powerpc-32l.xml"
|
176 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-altivec32l.xml"
|
177 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-cell32l.xml"
|
178 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-vsx32l.xml"
|
179 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-32l.xml"
|
180 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-altivec32l.xml"
|
181 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-vsx32l.xml"
|
182 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/power-altivec.xml"
|
183 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/power-vsx.xml"
|
184 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/power-core.xml"
|
185 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/power-linux.xml"
|
186 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/power-fpu.xml"
|
187 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/power-fpu-isa205.xml"
|
188 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-e500l.xml"
|
189 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/power-spe.xml"
|
190 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-64l.xml"
|
191 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-altivec64l.xml"
|
192 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-cell64l.xml"
|
193 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-vsx64l.xml"
|
194 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-64l.xml"
|
195 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-altivec64l.xml"
|
196 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-vsx64l.xml"
|
197 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/power64-core.xml"
|
198 |
|
|
srv_xmlfiles="${srv_xmlfiles} rs6000/power64-linux.xml"
|
199 |
|
|
srv_linux_usrregs=yes
|
200 |
|
|
srv_linux_regsets=yes
|
201 |
|
|
srv_linux_thread_db=yes
|
202 |
|
|
;;
|
203 |
|
|
s390*-*-linux*) srv_regobj="s390-linux32.o"
|
204 |
|
|
srv_regobj="${srv_regobj} s390-linux64.o"
|
205 |
|
|
srv_regobj="${srv_regobj} s390x-linux64.o"
|
206 |
|
|
srv_tgtobj="linux-low.o linux-s390-low.o"
|
207 |
|
|
srv_xmlfiles="s390-linux32.xml"
|
208 |
|
|
srv_xmlfiles="${srv_xmlfiles} s390-linux64.xml"
|
209 |
|
|
srv_xmlfiles="${srv_xmlfiles} s390x-linux64.xml"
|
210 |
|
|
srv_xmlfiles="${srv_xmlfiles} s390-core32.xml"
|
211 |
|
|
srv_xmlfiles="${srv_xmlfiles} s390-core64.xml"
|
212 |
|
|
srv_xmlfiles="${srv_xmlfiles} s390x-core64.xml"
|
213 |
|
|
srv_xmlfiles="${srv_xmlfiles} s390-acr.xml"
|
214 |
|
|
srv_xmlfiles="${srv_xmlfiles} s390-fpr.xml"
|
215 |
|
|
srv_linux_usrregs=yes
|
216 |
|
|
srv_linux_regsets=yes
|
217 |
|
|
srv_linux_thread_db=yes
|
218 |
|
|
;;
|
219 |
|
|
sh*-*-linux*) srv_regobj=reg-sh.o
|
220 |
|
|
srv_tgtobj="linux-low.o linux-sh-low.o"
|
221 |
|
|
srv_linux_usrregs=yes
|
222 |
|
|
srv_linux_regsets=yes
|
223 |
|
|
srv_linux_thread_db=yes
|
224 |
|
|
;;
|
225 |
|
|
sparc*-*-linux*) srv_regobj=reg-sparc64.o
|
226 |
|
|
srv_tgtobj="linux-low.o linux-sparc-low.o"
|
227 |
|
|
srv_linux_regsets=yes
|
228 |
|
|
srv_linux_thread_db=yes
|
229 |
|
|
;;
|
230 |
|
|
spu*-*-*) srv_regobj=reg-spu.o
|
231 |
|
|
srv_tgtobj="spu-low.o"
|
232 |
|
|
;;
|
233 |
|
|
x86_64-*-linux*) srv_regobj="$srv_amd64_linux_regobj $srv_i386_linux_regobj"
|
234 |
|
|
srv_tgtobj="linux-low.o linux-x86-low.o i386-low.o i387-fp.o"
|
235 |
|
|
srv_xmlfiles="$srv_i386_linux_xmlfiles $srv_amd64_linux_xmlfiles"
|
236 |
|
|
srv_linux_usrregs=yes # This is for i386 progs.
|
237 |
|
|
srv_linux_regsets=yes
|
238 |
|
|
srv_linux_thread_db=yes
|
239 |
|
|
ipa_obj="${ipa_amd64_linux_regobj} linux-amd64-ipa.o"
|
240 |
|
|
;;
|
241 |
|
|
x86_64-*-mingw*) srv_regobj="$srv_amd64_regobj"
|
242 |
|
|
srv_tgtobj="i386-low.o i387-fp.o win32-low.o win32-i386-low.o"
|
243 |
|
|
srv_xmlfiles="$srv_i386_xmlfiles $srv_amd64_xmlfiles"
|
244 |
|
|
srv_mingw=yes
|
245 |
|
|
;;
|
246 |
|
|
|
247 |
|
|
xscale*-*-linux*) srv_regobj=reg-arm.o
|
248 |
|
|
srv_tgtobj="linux-low.o linux-arm-low.o"
|
249 |
|
|
srv_linux_usrregs=yes
|
250 |
|
|
srv_linux_thread_db=yes
|
251 |
|
|
;;
|
252 |
|
|
xtensa*-*-linux*) srv_regobj=reg-xtensa.o
|
253 |
|
|
srv_tgtobj="linux-low.o linux-xtensa-low.o"
|
254 |
|
|
srv_linux_regsets=yes
|
255 |
|
|
;;
|
256 |
|
|
*) echo "Error: target not supported by gdbserver."
|
257 |
|
|
exit 1
|
258 |
|
|
;;
|
259 |
|
|
esac
|