* server.c (get_features_xml): Check if target implemented
[deliverable/binutils-gdb.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_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.
12 #
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
17 # PTRACE_GETREGS.
18 # srv_linux_usrregs Set to "yes" if we can get at registers via
19 # PTRACE_PEEKUSR / PTRACE_POKEUSR.
20
21 # Input is taken from the "${target}" variable.
22
23 case "${target}" in
24 arm*-*-linux*) srv_tgtobj="linux-low.o linux-arm-low.o"
25 srv_linux_usrregs=yes
26 srv_linux_regsets=yes
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"
32 else
33 srv_regobj=reg-arm.o
34 fi
35 ;;
36 crisv32-*-linux*) srv_regobj=reg-crisv32.o
37 srv_tgtobj="linux-low.o linux-crisv32-low.o"
38 srv_linux_regsets=yes
39 srv_linux_thread_db=yes
40 ;;
41 cris-*-linux*) srv_regobj=reg-cris.o
42 srv_tgtobj="linux-low.o linux-cris-low.o"
43 srv_linux_usrregs=yes
44 srv_linux_thread_db=yes
45 ;;
46 i[34567]86-*-cygwin*) srv_regobj=reg-i386.o
47 srv_tgtobj="win32-i386-low.o"
48 ;;
49 i[34567]86-*-linux*) srv_regobj=reg-i386-linux.o
50 srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o"
51 srv_linux_usrregs=yes
52 srv_linux_regsets=yes
53 srv_linux_thread_db=yes
54 ;;
55 i[34567]86-*-mingw*) srv_regobj=reg-i386.o
56 srv_tgtobj="win32-i386-low.o"
57 srv_mingw=yes
58 ;;
59 ia64-*-linux*) srv_regobj=reg-ia64.o
60 srv_tgtobj="linux-low.o linux-ia64-low.o"
61 srv_linux_usrregs=yes
62 ;;
63 m32r*-*-linux*) srv_regobj=reg-m32r.o
64 srv_tgtobj="linux-low.o linux-m32r-low.o"
65 srv_linux_usrregs=yes
66 srv_linux_thread_db=yes
67 ;;
68 m68*-*-linux*) srv_regobj=reg-m68k.o
69 srv_tgtobj="linux-low.o linux-m68k-low.o"
70 srv_linux_usrregs=yes
71 srv_linux_regsets=yes
72 srv_linux_thread_db=yes
73 ;;
74 m68*-*-uclinux*) srv_regobj=reg-m68k.o
75 srv_tgtobj="linux-low.o linux-m68k-low.o"
76 srv_linux_usrregs=yes
77 srv_linux_regsets=yes
78 srv_linux_thread_db=yes
79 ;;
80 mips*64*-*-linux*) srv_regobj=reg-mips64.o
81 srv_tgtobj="linux-low.o linux-mips-low.o"
82 srv_linux_regsets=yes
83 srv_linux_usrregs=yes
84 srv_linux_thread_db=yes
85 ;;
86 mips*-*-linux*) srv_regobj=reg-mips.o
87 srv_tgtobj="linux-low.o linux-mips-low.o"
88 srv_linux_regsets=yes
89 srv_linux_usrregs=yes
90 srv_linux_thread_db=yes
91 ;;
92 powerpc64-*-linux*) srv_regobj=reg-ppc64.o
93 srv_tgtobj="linux-low.o linux-ppc64-low.o"
94 srv_linux_usrregs=yes
95 srv_linux_regsets=yes
96 srv_linux_thread_db=yes
97 ;;
98 powerpc-*-linux*) srv_regobj=reg-ppc.o
99 srv_tgtobj="linux-low.o linux-ppc-low.o"
100 srv_linux_usrregs=yes
101 srv_linux_regsets=yes
102 srv_linux_thread_db=yes
103 ;;
104 s390-*-linux*) srv_regobj=reg-s390.o
105 srv_tgtobj="linux-low.o linux-s390-low.o"
106 srv_linux_usrregs=yes
107 srv_linux_regsets=yes
108 srv_linux_thread_db=yes
109 ;;
110 s390x-*-linux*) srv_regobj=reg-s390x.o
111 srv_tgtobj="linux-low.o linux-s390-low.o"
112 srv_linux_usrregs=yes
113 srv_linux_regsets=yes
114 srv_linux_thread_db=yes
115 ;;
116 sh*-*-linux*) srv_regobj=reg-sh.o
117 srv_tgtobj="linux-low.o linux-sh-low.o"
118 srv_linux_usrregs=yes
119 srv_linux_thread_db=yes
120 ;;
121 spu*-*-*) srv_regobj=reg-spu.o
122 srv_tgtobj="spu-low.o"
123 ;;
124 x86_64-*-linux*) srv_regobj=reg-x86-64-linux.o
125 srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o"
126 srv_linux_regsets=yes
127 srv_linux_thread_db=yes
128 ;;
129 xscale*-*-linux*) srv_regobj=reg-arm.o
130 srv_tgtobj="linux-low.o linux-arm-low.o"
131 srv_linux_usrregs=yes
132 srv_linux_thread_db=yes
133 ;;
134 *) echo "Error: target not supported by gdbserver."
135 exit 1
136 ;;
137 esac
This page took 0.032094 seconds and 4 git commands to generate.