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 | ;; |
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 | ;; |
9b4b61c8 UW |
109 | powerpc64-*-linux*) srv_regobj="reg-ppc64.o powerpc-64.o" |
110 | srv_tgtobj="linux-low.o linux-ppc64-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" | |
eee84df1 | 115 | srv_linux_usrregs=yes |
e9d25b98 | 116 | srv_linux_regsets=yes |
eee84df1 DJ |
117 | srv_linux_thread_db=yes |
118 | ;; | |
9b4b61c8 UW |
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" | |
58caa3dc | 127 | srv_linux_usrregs=yes |
e9d25b98 | 128 | srv_linux_regsets=yes |
0d62e5e8 | 129 | srv_linux_thread_db=yes |
7ea81414 | 130 | ;; |
265f716b DJ |
131 | s390-*-linux*) srv_regobj=reg-s390.o |
132 | srv_tgtobj="linux-low.o linux-s390-low.o" | |
133 | srv_linux_usrregs=yes | |
b7149293 UW |
134 | srv_linux_regsets=yes |
135 | srv_linux_thread_db=yes | |
265f716b | 136 | ;; |
d61ddec4 | 137 | s390x-*-linux*) srv_regobj="reg-s390.o reg-s390x.o" |
265f716b DJ |
138 | srv_tgtobj="linux-low.o linux-s390-low.o" |
139 | srv_linux_usrregs=yes | |
b7149293 UW |
140 | srv_linux_regsets=yes |
141 | srv_linux_thread_db=yes | |
265f716b | 142 | ;; |
7ea81414 DJ |
143 | sh*-*-linux*) srv_regobj=reg-sh.o |
144 | srv_tgtobj="linux-low.o linux-sh-low.o" | |
58caa3dc | 145 | srv_linux_usrregs=yes |
0d37add9 | 146 | srv_linux_regsets=yes |
0d62e5e8 | 147 | srv_linux_thread_db=yes |
58caa3dc | 148 | ;; |
a13e2c95 UW |
149 | spu*-*-*) srv_regobj=reg-spu.o |
150 | srv_tgtobj="spu-low.o" | |
151 | ;; | |
8695c747 | 152 | x86_64-*-linux*) srv_regobj=reg-x86-64-linux.o |
58caa3dc DJ |
153 | srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o" |
154 | srv_linux_regsets=yes | |
011a70c2 | 155 | srv_linux_thread_db=yes |
7ea81414 | 156 | ;; |
7f313d07 BC |
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 | ;; | |
1525d545 MG |
162 | xtensa*-*-linux*) srv_regobj=reg-xtensa.o |
163 | srv_tgtobj="linux-low.o linux-xtensa-low.o" | |
164 | srv_linux_regsets=yes | |
165 | ;; | |
7ea81414 DJ |
166 | *) echo "Error: target not supported by gdbserver." |
167 | exit 1 | |
168 | ;; | |
169 | esac |