* configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
[external/binutils.git] / gdb / gdbserver / configure.srv
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.
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 #
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.
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.
21
22 # Default hostio_last_error implementation
23 srv_hostio_err_objs="hostio-errno.o"
24
25 # Input is taken from the "${target}" variable.
26
27 case "${target}" in
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"
33                         srv_linux_usrregs=yes
34                         srv_linux_regsets=yes
35                         srv_linux_thread_db=yes
36                         ;;
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"
40                         # hostio_last_error implementation is in win32-low.c
41                         srv_hostio_err_objs=""
42                         srv_mingw=yes
43                         srv_mingwce=yes
44                         ;;
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                         ;;
55   i[34567]86-*-cygwin*) srv_regobj=reg-i386.o
56                         srv_tgtobj="win32-low.o win32-i386-low.o"
57                         ;;
58   i[34567]86-*-linux*)  srv_regobj=reg-i386-linux.o
59                         srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o"
60                         srv_linux_usrregs=yes
61                         srv_linux_regsets=yes
62                         srv_linux_thread_db=yes
63                         ;;
64   i[34567]86-*-mingw*)  srv_regobj=reg-i386.o
65                         srv_tgtobj="win32-low.o win32-i386-low.o"
66                         srv_mingw=yes
67                         ;;
68   ia64-*-linux*)        srv_regobj=reg-ia64.o
69                         srv_tgtobj="linux-low.o linux-ia64-low.o"
70                         srv_linux_usrregs=yes
71                         ;;
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                         ;;
77   m68*-*-linux*)        srv_regobj=reg-m68k.o
78                         srv_tgtobj="linux-low.o linux-m68k-low.o"
79                         srv_linux_usrregs=yes
80                         srv_linux_regsets=yes
81                         srv_linux_thread_db=yes
82                         ;;
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                         ;;
89   mips*64*-*-linux*)    srv_regobj=mips64-linux.o
90                         srv_tgtobj="linux-low.o linux-mips-low.o"
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"
95                         srv_linux_regsets=yes
96                         srv_linux_usrregs=yes
97                         srv_linux_thread_db=yes
98                         ;;
99   mips*-*-linux*)       srv_regobj=mips-linux.o
100                         srv_tgtobj="linux-low.o linux-mips-low.o"
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"
105                         srv_linux_regsets=yes
106                         srv_linux_usrregs=yes
107                         srv_linux_thread_db=yes
108                         ;;
109   powerpc64-*-linux*)   srv_regobj="reg-ppc64.o powerpc-64.o"
110                         srv_tgtobj="linux-low.o linux-ppc-low.o"
111                         srv_xmlfiles="rs6000/powerpc-64.xml"
112                         srv_xmlfiles="${srv_xmlfiles} rs6000/power-altivec.xml"
113                         srv_xmlfiles="${srv_xmlfiles} rs6000/power64-core.xml"
114                         srv_xmlfiles="${srv_xmlfiles} rs6000/power-fpu.xml"
115                         srv_linux_usrregs=yes
116                         srv_linux_regsets=yes
117                         srv_linux_thread_db=yes
118                         ;;
119   powerpc-*-linux*)     srv_regobj="reg-ppc.o powerpc-32.o powerpc-e500.o"
120                         srv_tgtobj="linux-low.o linux-ppc-low.o"
121                         srv_xmlfiles="rs6000/powerpc-32.xml"
122                         srv_xmlfiles="${srv_xmlfiles} rs6000/power-altivec.xml"
123                         srv_xmlfiles="${srv_xmlfiles} rs6000/power-core.xml"
124                         srv_xmlfiles="${srv_xmlfiles} rs6000/power-fpu.xml"
125                         srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-e500.xml"
126                         srv_xmlfiles="${srv_xmlfiles} rs6000/power-spe.xml"
127                         srv_linux_usrregs=yes
128                         srv_linux_regsets=yes
129                         srv_linux_thread_db=yes
130                         ;;
131   s390-*-linux*)        srv_regobj=reg-s390.o
132                         srv_tgtobj="linux-low.o linux-s390-low.o"
133                         srv_linux_usrregs=yes
134                         srv_linux_regsets=yes
135                         srv_linux_thread_db=yes
136                         ;;
137   s390x-*-linux*)       srv_regobj="reg-s390.o reg-s390x.o"
138                         srv_tgtobj="linux-low.o linux-s390-low.o"
139                         srv_linux_usrregs=yes
140                         srv_linux_regsets=yes
141                         srv_linux_thread_db=yes
142                         ;;
143   sh*-*-linux*)         srv_regobj=reg-sh.o
144                         srv_tgtobj="linux-low.o linux-sh-low.o"
145                         srv_linux_usrregs=yes
146                         srv_linux_regsets=yes
147                         srv_linux_thread_db=yes
148                         ;;
149   spu*-*-*)             srv_regobj=reg-spu.o
150                         srv_tgtobj="spu-low.o"
151                         ;;
152   x86_64-*-linux*)      srv_regobj=reg-x86-64-linux.o
153                         srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o"
154                         srv_linux_regsets=yes
155                         srv_linux_thread_db=yes
156                         ;;
157   xscale*-*-linux*)     srv_regobj=reg-arm.o
158                         srv_tgtobj="linux-low.o linux-arm-low.o"
159                         srv_linux_usrregs=yes
160                         srv_linux_thread_db=yes
161                         ;;
162   xtensa*-*-linux*)     srv_regobj=reg-xtensa.o
163                         srv_tgtobj="linux-low.o linux-xtensa-low.o"
164                         srv_linux_regsets=yes
165                         ;;
166   *)                    echo "Error: target not supported by gdbserver."
167                         exit 1
168                         ;;
169 esac