* hostio.c: Don't include errno.h.
[deliverable/binutils-gdb.git] / gdb / gdbserver / configure.srv
CommitLineData
7ea81414
DJ
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.
59a016f0
PA
9# srv_hostio_err The object implementing the hostio_last_error
10# target method.
fb1e4ffc
DJ
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.
7ea81414
DJ
14#
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.
58caa3dc
DJ
18# They will only be used if <sys/ptrace.h> defines
19# PTRACE_GETREGS.
20# srv_linux_usrregs Set to "yes" if we can get at registers via
21# PTRACE_PEEKUSR / PTRACE_POKEUSR.
7ea81414 22
59a016f0
PA
23# Default hostio_last_error implementation
24srv_hostio_err_objs="hostio-errno.o"
25
7ea81414
DJ
26# Input is taken from the "${target}" variable.
27
28case "${target}" in
fb1e4ffc 29 arm*-*-linux*) srv_tgtobj="linux-low.o linux-arm-low.o"
58caa3dc 30 srv_linux_usrregs=yes
fb1e4ffc 31 srv_linux_regsets=yes
0d62e5e8 32 srv_linux_thread_db=yes
fb1e4ffc
DJ
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"
37 else
38 srv_regobj=reg-arm.o
39 fi
7ea81414 40 ;;
d99f33d8
PA
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"
59a016f0
PA
44 # hostio_last_error implementation is in win32-low.c
45 srv_hostio_err_objs=""
d99f33d8
PA
46 srv_mingw=yes
47 srv_mingwce=yes
48 ;;
45b134e5
OF
49 crisv32-*-linux*) srv_regobj=reg-crisv32.o
50 srv_tgtobj="linux-low.o linux-crisv32-low.o"
51 srv_linux_regsets=yes
52 srv_linux_thread_db=yes
53 ;;
54 cris-*-linux*) srv_regobj=reg-cris.o
55 srv_tgtobj="linux-low.o linux-cris-low.o"
56 srv_linux_usrregs=yes
57 srv_linux_thread_db=yes
58 ;;
b80864fb 59 i[34567]86-*-cygwin*) srv_regobj=reg-i386.o
68070c10 60 srv_tgtobj="win32-low.o win32-i386-low.o"
b80864fb 61 ;;
1581182a 62 i[34567]86-*-linux*) srv_regobj=reg-i386-linux.o
58caa3dc
DJ
63 srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o"
64 srv_linux_usrregs=yes
65 srv_linux_regsets=yes
0d62e5e8 66 srv_linux_thread_db=yes
7ea81414 67 ;;
b80864fb 68 i[34567]86-*-mingw*) srv_regobj=reg-i386.o
68070c10 69 srv_tgtobj="win32-low.o win32-i386-low.o"
b80864fb
DJ
70 srv_mingw=yes
71 ;;
7ea81414
DJ
72 ia64-*-linux*) srv_regobj=reg-ia64.o
73 srv_tgtobj="linux-low.o linux-ia64-low.o"
58caa3dc 74 srv_linux_usrregs=yes
7ea81414 75 ;;
7cfbc4a0
KI
76 m32r*-*-linux*) srv_regobj=reg-m32r.o
77 srv_tgtobj="linux-low.o linux-m32r-low.o"
78 srv_linux_usrregs=yes
79 srv_linux_thread_db=yes
80 ;;
7ea81414
DJ
81 m68*-*-linux*) srv_regobj=reg-m68k.o
82 srv_tgtobj="linux-low.o linux-m68k-low.o"
58caa3dc 83 srv_linux_usrregs=yes
db1d3e1b
AS
84 srv_linux_regsets=yes
85 srv_linux_thread_db=yes
7ea81414 86 ;;
52fb6437
NS
87 m68*-*-uclinux*) srv_regobj=reg-m68k.o
88 srv_tgtobj="linux-low.o linux-m68k-low.o"
89 srv_linux_usrregs=yes
90 srv_linux_regsets=yes
91 srv_linux_thread_db=yes
92 ;;
117ce543
DJ
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"
186947f7
DJ
96 srv_tgtobj="linux-low.o linux-mips-low.o"
97 srv_linux_regsets=yes
98 srv_linux_usrregs=yes
99 srv_linux_thread_db=yes
100 ;;
117ce543
DJ
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"
7ea81414 104 srv_tgtobj="linux-low.o linux-mips-low.o"
186947f7 105 srv_linux_regsets=yes
58caa3dc 106 srv_linux_usrregs=yes
0d62e5e8 107 srv_linux_thread_db=yes
7ea81414 108 ;;
30ed0a8f 109 powerpc64-*-linux*) srv_tgtobj="linux-low.o linux-ppc64-low.o"
eee84df1 110 srv_linux_usrregs=yes
e9d25b98 111 srv_linux_regsets=yes
eee84df1 112 srv_linux_thread_db=yes
30ed0a8f
DJ
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"
119 else
120 srv_regobj=reg-ppc64.o
121 fi
eee84df1 122 ;;
30ed0a8f 123 powerpc-*-linux*) srv_tgtobj="linux-low.o linux-ppc-low.o"
58caa3dc 124 srv_linux_usrregs=yes
e9d25b98 125 srv_linux_regsets=yes
0d62e5e8 126 srv_linux_thread_db=yes
30ed0a8f
DJ
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"
138 else
139 srv_regobj=reg-ppc.o
140 fi
7ea81414 141 ;;
265f716b
DJ
142 s390-*-linux*) srv_regobj=reg-s390.o
143 srv_tgtobj="linux-low.o linux-s390-low.o"
144 srv_linux_usrregs=yes
b7149293
UW
145 srv_linux_regsets=yes
146 srv_linux_thread_db=yes
265f716b
DJ
147 ;;
148 s390x-*-linux*) srv_regobj=reg-s390x.o
149 srv_tgtobj="linux-low.o linux-s390-low.o"
150 srv_linux_usrregs=yes
b7149293
UW
151 srv_linux_regsets=yes
152 srv_linux_thread_db=yes
265f716b 153 ;;
7ea81414
DJ
154 sh*-*-linux*) srv_regobj=reg-sh.o
155 srv_tgtobj="linux-low.o linux-sh-low.o"
58caa3dc 156 srv_linux_usrregs=yes
0d37add9 157 srv_linux_regsets=yes
0d62e5e8 158 srv_linux_thread_db=yes
58caa3dc 159 ;;
a13e2c95
UW
160 spu*-*-*) srv_regobj=reg-spu.o
161 srv_tgtobj="spu-low.o"
162 ;;
8695c747 163 x86_64-*-linux*) srv_regobj=reg-x86-64-linux.o
58caa3dc
DJ
164 srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o"
165 srv_linux_regsets=yes
011a70c2 166 srv_linux_thread_db=yes
7ea81414 167 ;;
7f313d07
BC
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
172 ;;
7ea81414
DJ
173 *) echo "Error: target not supported by gdbserver."
174 exit 1
175 ;;
176esac
This page took 0.426184 seconds and 4 git commands to generate.