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_xmltarget The XML source file to use for target.xml, if any.
12 # srv_xmlfiles Any other XML files which should be available for
13 # gdbserver in this configuration.
15 # In addition, on GNU/Linux the following shell variables will be set:
16 # srv_linux_regsets Set to "yes" if ptrace(PTRACE_GETREGS) and friends
17 # may be available on this platform; unset otherwise.
18 # They will only be used if <sys/ptrace.h> defines
20 # srv_linux_usrregs Set to "yes" if we can get at registers via
21 # PTRACE_PEEKUSR / PTRACE_POKEUSR.
23 # Default hostio_last_error implementation
24 srv_hostio_err_objs="hostio-errno.o"
26 # Input is taken from the "${target}" variable.
29 arm*-*-linux*) srv_tgtobj="linux-low.o linux-arm-low.o"
32 srv_linux_thread_db=yes
33 if test $gdb_cv_arm_iwmmxt = yes; then
34 srv_regobj=arm-with-iwmmxt.o
35 srv_xmltarget=arm-with-iwmmxt.xml
36 srv_xmlfiles="arm-core.xml xscale-iwmmxt.xml"
41 arm*-*-mingw32ce*) srv_regobj=reg-arm.o
42 srv_tgtobj="win32-low.o win32-arm-low.o"
43 srv_tgtobj="${srv_tgtobj} wincecompat.o"
44 # hostio_last_error implementation is in win32-low.c
45 srv_hostio_err_objs=""
49 crisv32-*-linux*) srv_regobj=reg-crisv32.o
50 srv_tgtobj="linux-low.o linux-crisv32-low.o"
52 srv_linux_thread_db=yes
54 cris-*-linux*) srv_regobj=reg-cris.o
55 srv_tgtobj="linux-low.o linux-cris-low.o"
57 srv_linux_thread_db=yes
59 i[34567]86-*-cygwin*) srv_regobj=reg-i386.o
60 srv_tgtobj="win32-low.o win32-i386-low.o"
62 i[34567]86-*-linux*) srv_regobj=reg-i386-linux.o
63 srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o"
66 srv_linux_thread_db=yes
68 i[34567]86-*-mingw*) srv_regobj=reg-i386.o
69 srv_tgtobj="win32-low.o win32-i386-low.o"
72 ia64-*-linux*) srv_regobj=reg-ia64.o
73 srv_tgtobj="linux-low.o linux-ia64-low.o"
76 m32r*-*-linux*) srv_regobj=reg-m32r.o
77 srv_tgtobj="linux-low.o linux-m32r-low.o"
79 srv_linux_thread_db=yes
81 m68*-*-linux*) srv_regobj=reg-m68k.o
82 srv_tgtobj="linux-low.o linux-m68k-low.o"
85 srv_linux_thread_db=yes
87 m68*-*-uclinux*) srv_regobj=reg-m68k.o
88 srv_tgtobj="linux-low.o linux-m68k-low.o"
91 srv_linux_thread_db=yes
93 mips*64*-*-linux*) srv_regobj=mips64-linux.o
94 srv_xmltarget=mips64-linux.xml
95 srv_xmlfiles="mips64-cpu.xml mips64-cp0.xml mips64-fpu.xml"
96 srv_tgtobj="linux-low.o linux-mips-low.o"
99 srv_linux_thread_db=yes
101 mips*-*-linux*) srv_regobj=mips-linux.o
102 srv_xmltarget=mips-linux.xml
103 srv_xmlfiles="mips-cpu.xml mips-cp0.xml mips-fpu.xml"
104 srv_tgtobj="linux-low.o linux-mips-low.o"
105 srv_linux_regsets=yes
106 srv_linux_usrregs=yes
107 srv_linux_thread_db=yes
109 powerpc64-*-linux*) srv_tgtobj="linux-low.o linux-ppc64-low.o"
110 srv_linux_usrregs=yes
111 srv_linux_regsets=yes
112 srv_linux_thread_db=yes
113 if test $gdb_cv_ppc_altivec = yes; then
114 srv_regobj=powerpc-64.o
115 srv_xmltarget=rs6000/powerpc-64.xml
116 srv_xmlfiles="rs6000/power-altivec.xml"
117 srv_xmlfiles="$srv_xmlfiles rs6000/power64-core.xml"
118 srv_xmlfiles="$srv_xmlfiles rs6000/power-fpu.xml"
120 srv_regobj=reg-ppc64.o
123 powerpc-*-linux*) srv_tgtobj="linux-low.o linux-ppc-low.o"
124 srv_linux_usrregs=yes
125 srv_linux_regsets=yes
126 srv_linux_thread_db=yes
127 if test $gdb_cv_ppc_altivec = yes; then
128 srv_regobj=powerpc-32.o
129 srv_xmltarget=rs6000/powerpc-32.xml
130 srv_xmlfiles="rs6000/power-altivec.xml"
131 srv_xmlfiles="$srv_xmlfiles rs6000/power-core.xml"
132 srv_xmlfiles="$srv_xmlfiles rs6000/power-fpu.xml"
133 elif test $gdb_cv_ppc_spe = yes; then
134 srv_regobj=powerpc-e500.o
135 srv_xmltarget=rs6000/powerpc-e500.xml
136 srv_xmlfiles="rs6000/power-spe.xml"
137 srv_xmlfiles="$srv_xmlfiles rs6000/power-core.xml"
142 s390-*-linux*) srv_regobj=reg-s390.o
143 srv_tgtobj="linux-low.o linux-s390-low.o"
144 srv_linux_usrregs=yes
145 srv_linux_regsets=yes
146 srv_linux_thread_db=yes
148 s390x-*-linux*) srv_regobj="reg-s390.o reg-s390x.o"
149 srv_tgtobj="linux-low.o linux-s390-low.o"
150 srv_linux_usrregs=yes
151 srv_linux_regsets=yes
152 srv_linux_thread_db=yes
154 sh*-*-linux*) srv_regobj=reg-sh.o
155 srv_tgtobj="linux-low.o linux-sh-low.o"
156 srv_linux_usrregs=yes
157 srv_linux_regsets=yes
158 srv_linux_thread_db=yes
160 spu*-*-*) srv_regobj=reg-spu.o
161 srv_tgtobj="spu-low.o"
163 x86_64-*-linux*) srv_regobj=reg-x86-64-linux.o
164 srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o"
165 srv_linux_regsets=yes
166 srv_linux_thread_db=yes
168 xscale*-*-linux*) srv_regobj=reg-arm.o
169 srv_tgtobj="linux-low.o linux-arm-low.o"
170 srv_linux_usrregs=yes
171 srv_linux_thread_db=yes
173 xtensa*-*-linux*) srv_regobj=reg-xtensa.o
174 srv_tgtobj="linux-low.o linux-xtensa-low.o"
175 srv_linux_regsets=yes
177 *) echo "Error: target not supported by gdbserver."