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_xmltarget The XML source file to use for target.xml, if any.
10 # srv_xmlfiles Any other XML files which should be available for
11 # gdbserver in this configuration.
13 # In addition, on GNU/Linux the following shell variables will be set:
14 # srv_linux_regsets Set to "yes" if ptrace(PTRACE_GETREGS) and friends
15 # may be available on this platform; unset otherwise.
16 # They will only be used if <sys/ptrace.h> defines
18 # srv_linux_usrregs Set to "yes" if we can get at registers via
19 # PTRACE_PEEKUSR / PTRACE_POKEUSR.
21 # Input is taken from the "${target}" variable.
24 arm*-*-linux*) srv_tgtobj="linux-low.o linux-arm-low.o"
27 srv_linux_thread_db=yes
28 if test $gdb_cv_arm_iwmmxt = yes; then
29 srv_regobj=arm-with-iwmmxt.o
30 srv_xmltarget=arm-with-iwmmxt.xml
31 srv_xmlfiles="arm-core.xml xscale-iwmmxt.xml"
36 arm*-*-mingw32ce*) srv_regobj=reg-arm.o
37 srv_tgtobj="win32-low.o win32-arm-low.o"
38 srv_tgtobj="${srv_tgtobj} wincecompat.o"
42 crisv32-*-linux*) srv_regobj=reg-crisv32.o
43 srv_tgtobj="linux-low.o linux-crisv32-low.o"
45 srv_linux_thread_db=yes
47 cris-*-linux*) srv_regobj=reg-cris.o
48 srv_tgtobj="linux-low.o linux-cris-low.o"
50 srv_linux_thread_db=yes
52 i[34567]86-*-cygwin*) srv_regobj=reg-i386.o
53 srv_tgtobj="win32-low.o win32-i386-low.o"
55 i[34567]86-*-linux*) srv_regobj=reg-i386-linux.o
56 srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o"
59 srv_linux_thread_db=yes
61 i[34567]86-*-mingw*) srv_regobj=reg-i386.o
62 srv_tgtobj="win32-low.o win32-i386-low.o"
65 ia64-*-linux*) srv_regobj=reg-ia64.o
66 srv_tgtobj="linux-low.o linux-ia64-low.o"
69 m32r*-*-linux*) srv_regobj=reg-m32r.o
70 srv_tgtobj="linux-low.o linux-m32r-low.o"
72 srv_linux_thread_db=yes
74 m68*-*-linux*) srv_regobj=reg-m68k.o
75 srv_tgtobj="linux-low.o linux-m68k-low.o"
78 srv_linux_thread_db=yes
80 m68*-*-uclinux*) srv_regobj=reg-m68k.o
81 srv_tgtobj="linux-low.o linux-m68k-low.o"
84 srv_linux_thread_db=yes
86 mips*64*-*-linux*) srv_regobj=mips64-linux.o
87 srv_xmltarget=mips64-linux.xml
88 srv_xmlfiles="mips64-cpu.xml mips64-cp0.xml mips64-fpu.xml"
89 srv_tgtobj="linux-low.o linux-mips-low.o"
92 srv_linux_thread_db=yes
94 mips*-*-linux*) srv_regobj=mips-linux.o
95 srv_xmltarget=mips-linux.xml
96 srv_xmlfiles="mips-cpu.xml mips-cp0.xml mips-fpu.xml"
97 srv_tgtobj="linux-low.o linux-mips-low.o"
100 srv_linux_thread_db=yes
102 powerpc64-*-linux*) srv_tgtobj="linux-low.o linux-ppc64-low.o"
103 srv_linux_usrregs=yes
104 srv_linux_regsets=yes
105 srv_linux_thread_db=yes
106 if test $gdb_cv_ppc_altivec = yes; then
107 srv_regobj=powerpc-64.o
108 srv_xmltarget=rs6000/powerpc-64.xml
109 srv_xmlfiles="rs6000/power-altivec.xml"
110 srv_xmlfiles="$srv_xmlfiles rs6000/power64-core.xml"
111 srv_xmlfiles="$srv_xmlfiles rs6000/power-fpu.xml"
113 srv_regobj=reg-ppc64.o
116 powerpc-*-linux*) srv_tgtobj="linux-low.o linux-ppc-low.o"
117 srv_linux_usrregs=yes
118 srv_linux_regsets=yes
119 srv_linux_thread_db=yes
120 if test $gdb_cv_ppc_altivec = yes; then
121 srv_regobj=powerpc-32.o
122 srv_xmltarget=rs6000/powerpc-32.xml
123 srv_xmlfiles="rs6000/power-altivec.xml"
124 srv_xmlfiles="$srv_xmlfiles rs6000/power-core.xml"
125 srv_xmlfiles="$srv_xmlfiles rs6000/power-fpu.xml"
126 elif test $gdb_cv_ppc_spe = yes; then
127 srv_regobj=powerpc-e500.o
128 srv_xmltarget=rs6000/powerpc-e500.xml
129 srv_xmlfiles="rs6000/power-spe.xml"
130 srv_xmlfiles="$srv_xmlfiles rs6000/power-core.xml"
135 s390-*-linux*) srv_regobj=reg-s390.o
136 srv_tgtobj="linux-low.o linux-s390-low.o"
137 srv_linux_usrregs=yes
138 srv_linux_regsets=yes
139 srv_linux_thread_db=yes
141 s390x-*-linux*) srv_regobj=reg-s390x.o
142 srv_tgtobj="linux-low.o linux-s390-low.o"
143 srv_linux_usrregs=yes
144 srv_linux_regsets=yes
145 srv_linux_thread_db=yes
147 sh*-*-linux*) srv_regobj=reg-sh.o
148 srv_tgtobj="linux-low.o linux-sh-low.o"
149 srv_linux_usrregs=yes
150 srv_linux_regsets=yes
151 srv_linux_thread_db=yes
153 spu*-*-*) srv_regobj=reg-spu.o
154 srv_tgtobj="spu-low.o"
156 x86_64-*-linux*) srv_regobj=reg-x86-64-linux.o
157 srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o"
158 srv_linux_regsets=yes
159 srv_linux_thread_db=yes
161 xscale*-*-linux*) srv_regobj=reg-arm.o
162 srv_tgtobj="linux-low.o linux-arm-low.o"
163 srv_linux_usrregs=yes
164 srv_linux_thread_db=yes
166 *) echo "Error: target not supported by gdbserver."