* gdb.texinfo (GDB/MI Output Records):
[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.
9b4b61c8 11# srv_xmlfiles All XML files which should be available for
fb1e4ffc 12# gdbserver in this configuration.
7ea81414
DJ
13#
14# In addition, on GNU/Linux the following shell variables will be set:
15# srv_linux_regsets Set to "yes" if ptrace(PTRACE_GETREGS) and friends
16# may be available on this platform; unset otherwise.
58caa3dc
DJ
17# They will only be used if <sys/ptrace.h> defines
18# PTRACE_GETREGS.
19# srv_linux_usrregs Set to "yes" if we can get at registers via
20# PTRACE_PEEKUSR / PTRACE_POKEUSR.
7ea81414 21
59a016f0
PA
22# Default hostio_last_error implementation
23srv_hostio_err_objs="hostio-errno.o"
24
7ea81414
DJ
25# Input is taken from the "${target}" variable.
26
27case "${target}" in
9b4b61c8
UW
28 arm*-*-linux*) srv_regobj="reg-arm.o arm-with-iwmmxt.o"
29 srv_tgtobj="linux-low.o linux-arm-low.o"
30 srv_xmlfiles="arm-with-iwmmxt.xml"
31 srv_xmlfiles="${srv_xmlfiles} arm-core.xml"
32 srv_xmlfiles="${srv_xmlfiles} xscale-iwmmxt.xml"
58caa3dc 33 srv_linux_usrregs=yes
fb1e4ffc 34 srv_linux_regsets=yes
0d62e5e8 35 srv_linux_thread_db=yes
7ea81414 36 ;;
d99f33d8
PA
37 arm*-*-mingw32ce*) srv_regobj=reg-arm.o
38 srv_tgtobj="win32-low.o win32-arm-low.o"
39 srv_tgtobj="${srv_tgtobj} wincecompat.o"
59a016f0
PA
40 # hostio_last_error implementation is in win32-low.c
41 srv_hostio_err_objs=""
d99f33d8
PA
42 srv_mingw=yes
43 srv_mingwce=yes
44 ;;
45b134e5
OF
45 crisv32-*-linux*) srv_regobj=reg-crisv32.o
46 srv_tgtobj="linux-low.o linux-crisv32-low.o"
47 srv_linux_regsets=yes
48 srv_linux_thread_db=yes
49 ;;
50 cris-*-linux*) srv_regobj=reg-cris.o
51 srv_tgtobj="linux-low.o linux-cris-low.o"
52 srv_linux_usrregs=yes
53 srv_linux_thread_db=yes
54 ;;
b80864fb 55 i[34567]86-*-cygwin*) srv_regobj=reg-i386.o
68070c10 56 srv_tgtobj="win32-low.o win32-i386-low.o"
b80864fb 57 ;;
1581182a 58 i[34567]86-*-linux*) srv_regobj=reg-i386-linux.o
58caa3dc
DJ
59 srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o"
60 srv_linux_usrregs=yes
61 srv_linux_regsets=yes
0d62e5e8 62 srv_linux_thread_db=yes
7ea81414 63 ;;
b80864fb 64 i[34567]86-*-mingw*) srv_regobj=reg-i386.o
68070c10 65 srv_tgtobj="win32-low.o win32-i386-low.o"
b80864fb
DJ
66 srv_mingw=yes
67 ;;
7ea81414
DJ
68 ia64-*-linux*) srv_regobj=reg-ia64.o
69 srv_tgtobj="linux-low.o linux-ia64-low.o"
58caa3dc 70 srv_linux_usrregs=yes
7ea81414 71 ;;
7cfbc4a0
KI
72 m32r*-*-linux*) srv_regobj=reg-m32r.o
73 srv_tgtobj="linux-low.o linux-m32r-low.o"
74 srv_linux_usrregs=yes
75 srv_linux_thread_db=yes
76 ;;
7ea81414
DJ
77 m68*-*-linux*) srv_regobj=reg-m68k.o
78 srv_tgtobj="linux-low.o linux-m68k-low.o"
58caa3dc 79 srv_linux_usrregs=yes
db1d3e1b
AS
80 srv_linux_regsets=yes
81 srv_linux_thread_db=yes
7ea81414 82 ;;
52fb6437
NS
83 m68*-*-uclinux*) srv_regobj=reg-m68k.o
84 srv_tgtobj="linux-low.o linux-m68k-low.o"
85 srv_linux_usrregs=yes
86 srv_linux_regsets=yes
87 srv_linux_thread_db=yes
88 ;;
117ce543 89 mips*64*-*-linux*) srv_regobj=mips64-linux.o
186947f7 90 srv_tgtobj="linux-low.o linux-mips-low.o"
9b4b61c8
UW
91 srv_xmlfiles="mips64-linux.xml"
92 srv_xmlfiles="${srv_xmlfiles} mips64-cpu.xml"
93 srv_xmlfiles="${srv_xmlfiles} mips64-cp0.xml"
94 srv_xmlfiles="${srv_xmlfiles} mips64-fpu.xml"
186947f7
DJ
95 srv_linux_regsets=yes
96 srv_linux_usrregs=yes
97 srv_linux_thread_db=yes
98 ;;
117ce543 99 mips*-*-linux*) srv_regobj=mips-linux.o
7ea81414 100 srv_tgtobj="linux-low.o linux-mips-low.o"
9b4b61c8
UW
101 srv_xmlfiles="mips-linux.xml"
102 srv_xmlfiles="${srv_xmlfiles} mips-cpu.xml"
103 srv_xmlfiles="${srv_xmlfiles} mips-cp0.xml"
104 srv_xmlfiles="${srv_xmlfiles} mips-fpu.xml"
186947f7 105 srv_linux_regsets=yes
58caa3dc 106 srv_linux_usrregs=yes
0d62e5e8 107 srv_linux_thread_db=yes
7ea81414 108 ;;
550512b8 109 powerpc*-*-linux*) srv_regobj="reg-ppc.o powerpc-32.o powerpc-e500.o"
6fe305f7 110 srv_regobj="${srv_regobj} reg-ppc64.o powerpc-64.o"
9b4b61c8
UW
111 srv_tgtobj="linux-low.o linux-ppc-low.o"
112 srv_xmlfiles="rs6000/powerpc-32.xml"
113 srv_xmlfiles="${srv_xmlfiles} rs6000/power-altivec.xml"
114 srv_xmlfiles="${srv_xmlfiles} rs6000/power-core.xml"
115 srv_xmlfiles="${srv_xmlfiles} rs6000/power-fpu.xml"
116 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-e500.xml"
117 srv_xmlfiles="${srv_xmlfiles} rs6000/power-spe.xml"
550512b8
UW
118 srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-64.xml"
119 srv_xmlfiles="${srv_xmlfiles} rs6000/power64-core.xml"
58caa3dc 120 srv_linux_usrregs=yes
e9d25b98 121 srv_linux_regsets=yes
0d62e5e8 122 srv_linux_thread_db=yes
7ea81414 123 ;;
550512b8 124 s390*-*-linux*) srv_regobj="reg-s390.o reg-s390x.o"
265f716b
DJ
125 srv_tgtobj="linux-low.o linux-s390-low.o"
126 srv_linux_usrregs=yes
b7149293
UW
127 srv_linux_regsets=yes
128 srv_linux_thread_db=yes
265f716b 129 ;;
7ea81414
DJ
130 sh*-*-linux*) srv_regobj=reg-sh.o
131 srv_tgtobj="linux-low.o linux-sh-low.o"
58caa3dc 132 srv_linux_usrregs=yes
0d37add9 133 srv_linux_regsets=yes
0d62e5e8 134 srv_linux_thread_db=yes
58caa3dc 135 ;;
a13e2c95
UW
136 spu*-*-*) srv_regobj=reg-spu.o
137 srv_tgtobj="spu-low.o"
138 ;;
8695c747 139 x86_64-*-linux*) srv_regobj=reg-x86-64-linux.o
58caa3dc
DJ
140 srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o"
141 srv_linux_regsets=yes
011a70c2 142 srv_linux_thread_db=yes
7ea81414 143 ;;
7f313d07
BC
144 xscale*-*-linux*) srv_regobj=reg-arm.o
145 srv_tgtobj="linux-low.o linux-arm-low.o"
146 srv_linux_usrregs=yes
147 srv_linux_thread_db=yes
148 ;;
1525d545
MG
149 xtensa*-*-linux*) srv_regobj=reg-xtensa.o
150 srv_tgtobj="linux-low.o linux-xtensa-low.o"
151 srv_linux_regsets=yes
152 ;;
7ea81414
DJ
153 *) echo "Error: target not supported by gdbserver."
154 exit 1
155 ;;
156esac
This page took 0.664502 seconds and 4 git commands to generate.