Commit | Line | Data |
---|---|---|
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 |
23 | srv_hostio_err_objs="hostio-errno.o" | |
24 | ||
7ea81414 DJ |
25 | # Input is taken from the "${target}" variable. |
26 | ||
27 | case "${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 | ;; |
155c8968 PA |
64 | i[34567]86-*-mingw32ce*) |
65 | srv_regobj=reg-i386.o | |
66 | srv_tgtobj="win32-low.o win32-i386-low.o" | |
67 | srv_tgtobj="${srv_tgtobj} wincecompat.o" | |
68 | # hostio_last_error implementation is in win32-low.c | |
69 | srv_hostio_err_objs="" | |
70 | srv_mingw=yes | |
71 | srv_mingwce=yes | |
72 | ;; | |
b80864fb | 73 | i[34567]86-*-mingw*) srv_regobj=reg-i386.o |
68070c10 | 74 | srv_tgtobj="win32-low.o win32-i386-low.o" |
b80864fb DJ |
75 | srv_mingw=yes |
76 | ;; | |
7ea81414 DJ |
77 | ia64-*-linux*) srv_regobj=reg-ia64.o |
78 | srv_tgtobj="linux-low.o linux-ia64-low.o" | |
58caa3dc | 79 | srv_linux_usrregs=yes |
7ea81414 | 80 | ;; |
7cfbc4a0 KI |
81 | m32r*-*-linux*) srv_regobj=reg-m32r.o |
82 | srv_tgtobj="linux-low.o linux-m32r-low.o" | |
83 | srv_linux_usrregs=yes | |
84 | srv_linux_thread_db=yes | |
85 | ;; | |
7ea81414 DJ |
86 | m68*-*-linux*) srv_regobj=reg-m68k.o |
87 | srv_tgtobj="linux-low.o linux-m68k-low.o" | |
58caa3dc | 88 | srv_linux_usrregs=yes |
db1d3e1b AS |
89 | srv_linux_regsets=yes |
90 | srv_linux_thread_db=yes | |
7ea81414 | 91 | ;; |
52fb6437 NS |
92 | m68*-*-uclinux*) srv_regobj=reg-m68k.o |
93 | srv_tgtobj="linux-low.o linux-m68k-low.o" | |
94 | srv_linux_usrregs=yes | |
95 | srv_linux_regsets=yes | |
96 | srv_linux_thread_db=yes | |
97 | ;; | |
74aac56f | 98 | mips*-*-linux*) srv_regobj="mips-linux.o mips64-linux.o" |
7ea81414 | 99 | srv_tgtobj="linux-low.o linux-mips-low.o" |
9b4b61c8 UW |
100 | srv_xmlfiles="mips-linux.xml" |
101 | srv_xmlfiles="${srv_xmlfiles} mips-cpu.xml" | |
102 | srv_xmlfiles="${srv_xmlfiles} mips-cp0.xml" | |
103 | srv_xmlfiles="${srv_xmlfiles} mips-fpu.xml" | |
74aac56f DJ |
104 | srv_xmlfiles="${srv_xmlfiles} mips64-linux.xml" |
105 | srv_xmlfiles="${srv_xmlfiles} mips64-cpu.xml" | |
106 | srv_xmlfiles="${srv_xmlfiles} mips64-cp0.xml" | |
107 | srv_xmlfiles="${srv_xmlfiles} mips64-fpu.xml" | |
186947f7 | 108 | srv_linux_regsets=yes |
58caa3dc | 109 | srv_linux_usrregs=yes |
0d62e5e8 | 110 | srv_linux_thread_db=yes |
7ea81414 | 111 | ;; |
7284e1be UW |
112 | powerpc*-*-linux*) srv_regobj="powerpc-32l.o" |
113 | srv_regobj="${srv_regobj} powerpc-altivec32l.o" | |
677c5bb1 | 114 | srv_regobj="${srv_regobj} powerpc-vsx32l.o" |
2c4ad781 TJB |
115 | srv_regobj="${srv_regobj} powerpc-isa205-32l.o" |
116 | srv_regobj="${srv_regobj} powerpc-isa205-altivec32l.o" | |
117 | srv_regobj="${srv_regobj} powerpc-isa205-vsx32l.o" | |
7284e1be UW |
118 | srv_regobj="${srv_regobj} powerpc-e500l.o" |
119 | srv_regobj="${srv_regobj} powerpc-64l.o" | |
120 | srv_regobj="${srv_regobj} powerpc-altivec64l.o" | |
677c5bb1 | 121 | srv_regobj="${srv_regobj} powerpc-vsx64l.o" |
2c4ad781 TJB |
122 | srv_regobj="${srv_regobj} powerpc-isa205-64l.o" |
123 | srv_regobj="${srv_regobj} powerpc-isa205-altivec64l.o" | |
124 | srv_regobj="${srv_regobj} powerpc-isa205-vsx64l.o" | |
9b4b61c8 | 125 | srv_tgtobj="linux-low.o linux-ppc-low.o" |
7284e1be UW |
126 | srv_xmlfiles="rs6000/powerpc-32l.xml" |
127 | srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-altivec32l.xml" | |
677c5bb1 | 128 | srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-vsx32l.xml" |
2c4ad781 TJB |
129 | srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-32l.xml" |
130 | srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-altivec32l.xml" | |
131 | srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-vsx32l.xml" | |
9b4b61c8 | 132 | srv_xmlfiles="${srv_xmlfiles} rs6000/power-altivec.xml" |
677c5bb1 | 133 | srv_xmlfiles="${srv_xmlfiles} rs6000/power-vsx.xml" |
9b4b61c8 | 134 | srv_xmlfiles="${srv_xmlfiles} rs6000/power-core.xml" |
7284e1be | 135 | srv_xmlfiles="${srv_xmlfiles} rs6000/power-linux.xml" |
9b4b61c8 | 136 | srv_xmlfiles="${srv_xmlfiles} rs6000/power-fpu.xml" |
2c4ad781 | 137 | srv_xmlfiles="${srv_xmlfiles} rs6000/power-fpu-isa205.xml" |
7284e1be | 138 | srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-e500l.xml" |
9b4b61c8 | 139 | srv_xmlfiles="${srv_xmlfiles} rs6000/power-spe.xml" |
7284e1be UW |
140 | srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-64l.xml" |
141 | srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-altivec64l.xml" | |
677c5bb1 | 142 | srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-vsx64l.xml" |
2c4ad781 TJB |
143 | srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-64l.xml" |
144 | srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-altivec64l.xml" | |
145 | srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-isa205-vsx64l.xml" | |
550512b8 | 146 | srv_xmlfiles="${srv_xmlfiles} rs6000/power64-core.xml" |
7284e1be | 147 | srv_xmlfiles="${srv_xmlfiles} rs6000/power64-linux.xml" |
58caa3dc | 148 | srv_linux_usrregs=yes |
e9d25b98 | 149 | srv_linux_regsets=yes |
0d62e5e8 | 150 | srv_linux_thread_db=yes |
7ea81414 | 151 | ;; |
550512b8 | 152 | s390*-*-linux*) srv_regobj="reg-s390.o reg-s390x.o" |
265f716b DJ |
153 | srv_tgtobj="linux-low.o linux-s390-low.o" |
154 | srv_linux_usrregs=yes | |
b7149293 UW |
155 | srv_linux_regsets=yes |
156 | srv_linux_thread_db=yes | |
265f716b | 157 | ;; |
7ea81414 DJ |
158 | sh*-*-linux*) srv_regobj=reg-sh.o |
159 | srv_tgtobj="linux-low.o linux-sh-low.o" | |
58caa3dc | 160 | srv_linux_usrregs=yes |
0d37add9 | 161 | srv_linux_regsets=yes |
0d62e5e8 | 162 | srv_linux_thread_db=yes |
58caa3dc | 163 | ;; |
dfb64f85 DJ |
164 | sparc*-*-linux*) srv_regobj=reg-sparc64.o |
165 | srv_tgtobj="linux-low.o linux-sparc-low.o" | |
166 | srv_linux_regsets=yes | |
167 | srv_linux_thread_db=yes | |
168 | ;; | |
a13e2c95 UW |
169 | spu*-*-*) srv_regobj=reg-spu.o |
170 | srv_tgtobj="spu-low.o" | |
171 | ;; | |
8695c747 | 172 | x86_64-*-linux*) srv_regobj=reg-x86-64-linux.o |
58caa3dc DJ |
173 | srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o" |
174 | srv_linux_regsets=yes | |
011a70c2 | 175 | srv_linux_thread_db=yes |
7ea81414 | 176 | ;; |
7f313d07 BC |
177 | xscale*-*-linux*) srv_regobj=reg-arm.o |
178 | srv_tgtobj="linux-low.o linux-arm-low.o" | |
179 | srv_linux_usrregs=yes | |
180 | srv_linux_thread_db=yes | |
181 | ;; | |
1525d545 MG |
182 | xtensa*-*-linux*) srv_regobj=reg-xtensa.o |
183 | srv_tgtobj="linux-low.o linux-xtensa-low.o" | |
184 | srv_linux_regsets=yes | |
185 | ;; | |
7ea81414 DJ |
186 | *) echo "Error: target not supported by gdbserver." |
187 | exit 1 | |
188 | ;; | |
189 | esac |