Commit | Line | Data |
---|---|---|
943e243c SS |
1 | # Mappings from configurations to GDB target definitions. This is |
2 | # invoked from the autoconf generated configure script. | |
3 | ||
4 | # This file sets the following shell variables: | |
5 | # gdb_target_cpu generic name of CPU | |
6 | # gdb_target name of GDB target definition to use | |
7 | ||
8 | # This file may also modify configdirs. | |
9 | ||
10 | # Map target cpu into the config cpu subdirectory name. | |
11 | # The default is $target_cpu. | |
12 | ||
13 | case "${target_cpu}" in | |
14 | ||
ffa1f5b9 | 15 | alpha*) gdb_target_cpu=alpha ;; |
943e243c SS |
16 | c[12]) gdb_target_cpu=convex ;; |
17 | hppa*) gdb_target_cpu=pa ;; | |
8ddf07a2 | 18 | i[3456]86*) gdb_target_cpu=i386 ;; |
943e243c SS |
19 | m68*) gdb_target_cpu=m68k ;; |
20 | m88*) gdb_target_cpu=m88k ;; | |
21 | mips*) gdb_target_cpu=mips ;; | |
22 | np1) gdb_target_cpu=gould ;; | |
23 | powerpc*) gdb_target_cpu=powerpc ;; | |
24 | pn) gdb_target_cpu=gould ;; | |
25 | pyramid) gdb_target_cpu=pyr ;; | |
26 | sparc*) gdb_target_cpu=sparc ;; | |
89b993af | 27 | thumb*) gdb_target_cpu=arm ;; |
943e243c SS |
28 | *) gdb_target_cpu=$target_cpu ;; |
29 | ||
30 | esac | |
31 | ||
32 | # map target info into gdb names. | |
33 | ||
34 | case "${target}" in | |
35 | ||
36 | a29k-*-aout*) gdb_target=a29k ;; | |
37 | a29k-*-coff*) gdb_target=a29k ;; | |
38 | a29k-*-elf*) gdb_target=a29k ;; | |
39 | a29k-*-ebmon*) gdb_target=a29k ;; | |
40 | a29k-*-kern*) gdb_target=a29k-kern ;; | |
41 | a29k-*-none*) gdb_target=a29k ;; | |
42 | a29k-*-sym1*) gdb_target=ultra3 ;; | |
43 | a29k-*-udi*) gdb_target=a29k-udi ;; | |
44 | a29k-*-vxworks*) gdb_target=vx29k ;; | |
45 | ||
ffa1f5b9 RH |
46 | alpha*-*-osf*) gdb_target=alpha-osf1 ;; |
47 | alpha*-*-linux*) gdb_target=alpha-linux ;; | |
943e243c | 48 | |
943e243c | 49 | arc-*-*) gdb_target=arc ;; |
943e243c | 50 | |
3a9c3d12 NC |
51 | arm-*-* | thumb-*-*) gdb_target=arm |
52 | ||
53 | # rdi doesn't work for wingdb yet | |
54 | case $gdb_host in | |
55 | windows) ;; | |
56 | *) | |
57 | configdirs="$configdirs rdi-share" | |
58 | CONFIG_OBS="$CONFIG_OBS remote-rdi.o rdi-share/libangsd.a" | |
59 | ;; | |
60 | esac | |
61 | ;; | |
943e243c SS |
62 | |
63 | c1-*-*) gdb_target=convex ;; | |
64 | c2-*-*) gdb_target=convex ;; | |
65 | ||
943e243c | 66 | d10v-*-*) gdb_target=d10v ;; |
45a70ed6 SG |
67 | # start-sanitize-d30v |
68 | d30v-*-*) gdb_target=d30v ;; | |
943e243c | 69 | |
45a70ed6 | 70 | # end-sanitize-d30v |
943e243c SS |
71 | h8300-*-*) gdb_target=h8300 ;; |
72 | h8500-*-*) gdb_target=h8500 ;; | |
73 | ||
74 | sh-*-*) gdb_target=sh ;; | |
75 | ||
76 | hppa*-*-bsd*) gdb_target=hppabsd ;; | |
77 | hppa*-*-pro*) gdb_target=hppapro ;; | |
78 | hppa*-*-hpux*) gdb_target=hppahpux ;; | |
79 | hppa*-*-hiux*) gdb_target=hppahpux ;; | |
80 | hppa*-*-osf*) gdb_target=hppaosf ;; | |
81 | ||
82 | i[3456]86-sequent-bsd*) gdb_target=symmetry ;; | |
83 | i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;; | |
84 | i[3456]86-sequent-sysv*) gdb_target=ptx ;; | |
85 | i[3456]86-ncr-*) gdb_target=ncr3000 ;; | |
86 | i[3456]86-*-aout*) gdb_target=i386aout ;; | |
87 | i[3456]86-*-coff*) gdb_target=i386v ;; | |
88 | i[3456]86-*-elf*) gdb_target=i386v ;; | |
89 | i[3456]86-*-aix*) gdb_target=i386aix ;; | |
90 | i[3456]86-*-bsd*) gdb_target=i386bsd ;; | |
91 | i[3456]86-*-freebsd*) gdb_target=fbsd ;; | |
92 | i[3456]86-*-netbsd*) gdb_target=nbsd ;; | |
93 | i[3456]86-*-os9k) gdb_target=i386os9k ;; | |
94 | i[3456]86-*-go32*) gdb_target=i386aout ;; | |
95 | i[3456]86-*-lynxos*) gdb_target=i386lynx | |
96 | configdirs="${configdirs} gdbserver" ;; | |
97 | i[3456]86-*-solaris*) gdb_target=i386sol2 ;; | |
98 | i[3456]86-*-sunos*) gdb_target=sun386 ;; | |
9e3977b9 | 99 | i[3456]86-*-sysv4.2MP) gdb_target=i386v42mp ;; |
943e243c | 100 | i[3456]86-*-sysv4*) gdb_target=i386v4 ;; |
9e3977b9 GN |
101 | i[3456]86-*-unixware2*) gdb_target=i386v42mp ;; |
102 | i[3456]86-*-unixware*) gdb_target=i386v4 ;; | |
943e243c SS |
103 | i[3456]86-*-sco*) gdb_target=i386v ;; |
104 | i[3456]86-*-sysv*) gdb_target=i386v ;; | |
105 | i[3456]86-*-linux*) gdb_target=linux | |
106 | configdirs="${configdirs} gdbserver" ;; | |
8ddf07a2 MA |
107 | i[3456]86-pc-linux-gnu) gdb_target=linux |
108 | configdirs="${configdirs} gdbserver" ;; | |
943e243c SS |
109 | i[3456]86-*-isc*) gdb_target=i386v ;; |
110 | i[3456]86-*-mach3*) gdb_target=i386m3 ;; | |
943e243c SS |
111 | i[3456]86-*-gnu*) gdb_target=i386gnu ;; |
112 | i[3456]86-*-netware*) gdb_target=i386nw | |
113 | configdirs="${configdirs} nlm" ;; | |
114 | i[3456]86-*-osf1mk*) gdb_target=i386mk ;; | |
115 | i[3456]86-*-cygwin32) gdb_target=cygwin32 ;; | |
116 | i960-*-bout*) gdb_target=vxworks960 ;; | |
117 | i960-nindy-coff*) gdb_target=nindy960 ;; | |
118 | i960-*-coff*) gdb_target=mon960 ;; | |
119 | i960-nindy-elf*) gdb_target=nindy960 ;; | |
120 | i960-*-elf*) gdb_target=mon960 ;; | |
121 | ||
122 | i960-*-nindy*) gdb_target=nindy960 ;; | |
123 | i960-*-vxworks*) gdb_target=vxworks960 ;; | |
124 | ||
8665f3dc | 125 | m32r-*-elf*) gdb_target=m32r ;; |
8665f3dc | 126 | |
943e243c SS |
127 | m68000-*-sunos3*) gdb_target=sun2os3 ;; |
128 | m68000-*-sunos4*) gdb_target=sun2os4 ;; | |
129 | ||
130 | m68*-apollo*-bsd*) gdb_target=apollo68b ;; | |
131 | m68*-bull-sysv*) gdb_target=dpx2 ;; | |
132 | m68*-hp-bsd*) gdb_target=hp300bsd ;; | |
133 | m68*-hp-hpux*) gdb_target=hp300hpux ;; | |
134 | m68*-altos-*) gdb_target=altos ;; | |
135 | m68*-att-*) gdb_target=3b1 ;; | |
136 | m68*-cisco*-*) gdb_target=cisco ;; | |
137 | m68*-ericsson-*) gdb_target=es1800 ;; | |
138 | m68*-isi-*) gdb_target=isi ;; | |
139 | m68*-motorola-*) gdb_target=delta68 ;; | |
140 | m68*-netx-*) gdb_target=vxworks68 ;; | |
141 | m68*-sony-*) gdb_target=news ;; | |
142 | m68*-tandem-*) gdb_target=st2000 ;; | |
143 | m68*-rom68k-*) gdb_target=monitor ;; | |
144 | m68*-*bug-*) gdb_target=monitor ;; | |
145 | m68*-monitor-*) gdb_target=monitor ;; | |
146 | m68*-est-*) gdb_target=monitor ;; | |
147 | m68*-*-aout*) gdb_target=monitor ;; | |
148 | m68*-*-coff*) gdb_target=monitor ;; | |
149 | m68*-*-elf*) gdb_target=monitor ;; | |
150 | m68*-*-lynxos*) gdb_target=m68klynx | |
151 | configdirs="${configdirs} gdbserver" ;; | |
152 | m68*-*-netbsd*) gdb_target=nbsd ;; | |
153 | m68*-*-os68k*) gdb_target=os68k ;; | |
154 | m68*-*-sunos3*) gdb_target=sun3os3 ;; | |
155 | m68*-*-sunos4*) gdb_target=sun3os4 ;; | |
156 | m68*-*-sysv4*) gdb_target=m68kv4 ;; | |
157 | m68*-*-vxworks*) gdb_target=vxworks68 ;; | |
158 | ||
159 | m88*-harris-cxux*) gdb_target=cxux ;; | |
160 | m88*-motorola-sysv4*) gdb_target=delta88v4 ;; | |
943e243c SS |
161 | m88*-motorola-*) gdb_target=delta88 ;; |
162 | m88*-*-*) gdb_target=m88k ;; | |
163 | ||
164 | mips64*-big-*) gdb_target=bigmips64 ;; | |
165 | mips*-big-*) gdb_target=bigmips ;; | |
166 | mips*-dec-mach3*) gdb_target=mach3 ;; | |
167 | mips*-dec-*) gdb_target=decstation ;; | |
168 | mips64*el-*-ecoff*) gdb_target=embedl64 ;; | |
169 | mips64*-*-ecoff*) gdb_target=embed64 ;; | |
e4e30cdc GRK |
170 | # start-sanitize-vr4320 |
171 | mips64*vr4320*el-*-elf*)gdb_target=vr4300el ;; | |
a47fe057 | 172 | mips64*vr4320*-*-elf*) gdb_target=vr4320 ;; |
e4e30cdc | 173 | # end-sanitize-vr4320 |
943e243c SS |
174 | mips64*vr4300*el-*-elf*) gdb_target=vr4300el ;; |
175 | mips64*vr4300*-*-elf*) gdb_target=vr4300 ;; | |
176 | mips64*vr4100*el-*-elf*) gdb_target=vr4300el ;; | |
2425869c | 177 | mips64*vr4100*-*-elf*) gdb_target=vr4xxx ;; |
26c87277 | 178 | mips64*vr5000*el-*-elf*) gdb_target=vr5000el ;; |
28954a6e MA |
179 | mips64*vr5000*-*-elf*) gdb_target=vr5000 |
180 | configdirs="${configdirs} gdbserver" ;; | |
c08075aa AC |
181 | # start-sanitize-vr5400 |
182 | mips64*vr5400*el-*-elf*) gdb_target=vr5000el ;; | |
183 | mips64*vr5400*-*-elf*) gdb_target=vr5000 | |
184 | configdirs="${configdirs} gdbserver" ;; | |
185 | # end-sanitize-vr5400 | |
5f3ba16b DE |
186 | # start-sanitize-sky |
187 | mips64*r5900*-sky-elf*) gdb_target=txvu ;; | |
188 | # end-sanitize-sky | |
276c2d7d | 189 | # start-sanitize-r5900 |
91ee2779 | 190 | mips64*r5900*-*-elf*) gdb_target=r5900 ;; |
276c2d7d | 191 | # end-sanitize-r5900 |
899c4021 MA |
192 | # start-sanitize-tx19 |
193 | mips-tx19*el-* | mips*tx19*el-*-*) | |
411a624c | 194 | gdb_target=tx19l ;; |
899c4021 MA |
195 | mips-tx19*-* | mips*tx19*-*-*) |
196 | gdb_target=tx19 ;; | |
197 | # end-sanitize-tx19 | |
411a624c | 198 | mips*tx39*el*-elf*) gdb_target=tx39l ;; |
00e40d11 | 199 | mips*tx39*-elf*) gdb_target=tx39 ;; |
e7ab2a47 AC |
200 | # start-sanitize-tx49 |
201 | mips64*tx49*el-*-elf*) gdb_target=tx49el ;; | |
202 | mips64*tx49*-*-elf*) gdb_target=tx49 ;; | |
203 | # end-sanitize-tx49 | |
943e243c SS |
204 | mips64*el-*-elf*) gdb_target=embedl64 ;; |
205 | mips64*-*-elf*) gdb_target=embed64 ;; | |
206 | mips*el-*-ecoff*) gdb_target=embedl ;; | |
207 | mips*-*-ecoff*) gdb_target=embed ;; | |
943e243c SS |
208 | mips*el-*-elf*) gdb_target=embedl ;; |
209 | mips*-*-elf*) gdb_target=embed ;; | |
210 | mips*-little-*) gdb_target=littlemips ;; | |
84fdbc86 | 211 | mips*-*-lnews*) gdb_target=embedl ;; |
943e243c | 212 | mips*-sgi-irix5*) gdb_target=irix5 ;; |
0db3fe94 | 213 | mips*-sgi-irix6*) gdb_target=irix5 ;; |
943e243c SS |
214 | mips*-sgi-*) gdb_target=irix3 ;; |
215 | mips*-sony-*) gdb_target=bigmips ;; | |
4133151f | 216 | mips*-*-mach3*) gdb_target=mipsm3 ;; |
943e243c SS |
217 | mips*-*-sysv4*) gdb_target=mipsv4 ;; |
218 | mips*-*-sysv*) gdb_target=bigmips ;; | |
219 | mips*-*-riscos*) gdb_target=bigmips ;; | |
220 | mips*-*-vxworks*) gdb_target=vxmips ;; | |
221 | ||
d9ecb24c | 222 | mn10200-*-*) gdb_target=mn10200 ;; |
c5c44952 GN |
223 | mn10300-*-*) gdb_target=mn10300 ;; |
224 | ||
943e243c SS |
225 | none-*-*) gdb_target=none ;; |
226 | ||
227 | np1-*-*) gdb_target=np1 ;; | |
228 | ||
4133151f | 229 | ns32k-*-mach3*) gdb_target=ns32km3 ;; |
943e243c SS |
230 | ns32k-*-netbsd*) gdb_target=nbsd ;; |
231 | ns32k-utek-sysv*) gdb_target=merlin ;; | |
232 | ns32k-utek-*) gdb_target=umax ;; | |
233 | ||
234 | pn-*-*) gdb_target=pn ;; | |
235 | powerpc-*-macos*) gdb_target=macos ;; | |
236 | powerpc-*-netware*) gdb_target=ppc-nw | |
237 | configdirs="${configdirs} nlm" ;; | |
238 | ||
943e243c SS |
239 | powerpc-*-aix*) gdb_target=aix ;; |
240 | powerpcle-*-cygwin32) gdb_target=cygwin32 ;; | |
241 | powerpcle-*-solaris*) gdb_target=solaris ;; | |
242 | powerpc-*-eabi* | powerpc-*-linux* | powerpc-*-sysv* | powerpc-*-elf*) | |
23e92f3f | 243 | if test -f ../sim/ppc/Makefile; then |
943e243c SS |
244 | gdb_target=ppc-sim |
245 | else | |
246 | gdb_target=ppc-eabi | |
247 | fi ;; | |
248 | powerpcle-*-eabi* | powerpcle-*-sysv* | powerpcle-*-elf*) | |
23e92f3f | 249 | if test -f ../sim/ppc/Makefile; then |
943e243c SS |
250 | gdb_target=ppcle-sim |
251 | else | |
252 | gdb_target=ppcle-eabi | |
253 | fi ;; | |
254 | ||
255 | pyramid-*-*) gdb_target=pyramid ;; | |
256 | ||
257 | rs6000-*-lynxos*) gdb_target=rs6000lynx ;; | |
258 | rs6000-*-aix4*) gdb_target=aix4 ;; | |
259 | rs6000-*-*) gdb_target=rs6000 ;; | |
260 | ||
261 | sparc-*-aout*) gdb_target=sparc-em ;; | |
262 | sparc-*-coff*) gdb_target=sparc-em ;; | |
263 | sparc-*-elf*) gdb_target=sparc-em ;; | |
6cc922a9 | 264 | sparc-*-linux*) gdb_target=linux ;; |
943e243c SS |
265 | sparc-*-lynxos*) gdb_target=sparclynx |
266 | configdirs="${configdirs} gdbserver" ;; | |
267 | sparc-*-netbsd*) gdb_target=nbsd ;; | |
268 | sparc-*-solaris2*) gdb_target=sun4sol2 ;; | |
269 | sparc-*-sunos4*) gdb_target=sun4os4 ;; | |
270 | sparc-*-sunos5*) gdb_target=sun4sol2 ;; | |
271 | sparc-*-vxworks*) gdb_target=vxsparc ;; | |
272 | sparc-*-*) gdb_target=sun4os4 ;; | |
273 | sparclet-*-*) gdb_target=sparclet;; | |
7c0892b3 SC |
274 | sparclite-*-*) gdb_target=sparclite ;; |
275 | sparc86x-*-*) gdb_target=sparclite ;; | |
943e243c SS |
276 | # It's not clear what the right solution for "v8plus" systems is yet. |
277 | # For now, stick with sparc-sun-solaris2 since that's what config.guess | |
278 | # should return. Work is still needed to get gdb to print the 64 bit | |
279 | # regs (some of which are usable in v8plus) so sp64sol.mt hasn't been | |
280 | # deleted though presumably it should be eventually. | |
281 | #sparc64-*-solaris2*) gdb_target=sp64sol2 ;; | |
282 | sparc64-*-*) gdb_target=sp64 ;; | |
283 | ||
284 | tahoe-*-*) gdb_target=tahoe ;; | |
285 | ||
12967062 | 286 | # start-sanitize-tic80 |
28954a6e MA |
287 | tic80-*-*) gdb_target=tic80 |
288 | configdirs="${configdirs} gdbserver" ;; | |
12967062 FF |
289 | # end-sanitize-tic80 |
290 | ||
943e243c SS |
291 | vax-*-*) gdb_target=vax ;; |
292 | ||
6c310da8 SG |
293 | v850-*-*) gdb_target=v850 |
294 | case $gdb_host in | |
295 | windows) | |
296 | CONFIG_OBS="${CONFIG_OBS} v850ice.o" | |
afa38b3d | 297 | LIBS="${LIBS} necmsg.lib" ;; |
895cc8ab KS |
298 | cygwin32) |
299 | CONFIG_OBS="${CONFIG_OBS} v850ice.o" ;; | |
6c310da8 SG |
300 | esac |
301 | ;; | |
ab11a82c NC |
302 | # start-sanitize-v850e |
303 | v850e-*-*) gdb_target=v850 | |
304 | gdb_target_cpu=v850 | |
305 | case $gdb_host in | |
306 | windows) | |
307 | CONFIG_OBS="${CONFIG_OBS} v850ice.o" | |
308 | LIBS="${LIBS} v850.lib" ;; | |
895cc8ab KS |
309 | cygwin32) |
310 | CONFIG_OBS="${CONFIG_OBS} v850ice.o" ;; | |
ab11a82c NC |
311 | esac |
312 | ;; | |
cd66558c | 313 | v850ea-*-*) gdb_target=v850 |
ab11a82c NC |
314 | gdb_target_cpu=v850 |
315 | case $gdb_host in | |
316 | windows) | |
317 | CONFIG_OBS="${CONFIG_OBS} v850ice.o" | |
318 | LIBS="${LIBS} v850.lib" ;; | |
895cc8ab KS |
319 | cygwin32) |
320 | CONFIG_OBS="${CONFIG_OBS} v850ice.o" ;; | |
ab11a82c NC |
321 | esac |
322 | ;; | |
446df8b8 | 323 | # end-sanitize-v850e |
943e243c SS |
324 | w65-*-*) gdb_target=w65 ;; |
325 | ||
326 | z8k-*-coff*) gdb_target=z8k ;; | |
327 | ||
328 | esac |