1 # Mappings from configurations to GDB target definitions. This is
2 # invoked from the autoconf generated configure script.
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
8 # This file may also modify configdirs.
10 # Map target cpu into the config cpu subdirectory name.
11 # The default is $target_cpu.
13 case "${target_cpu}" in
15 alpha*) gdb_target_cpu=alpha ;;
16 arm*) gdb_target_cpu=arm ;;
17 hppa*) gdb_target_cpu=pa ;;
18 i[3456]86*) gdb_target_cpu=i386 ;;
19 m68hc11*|m6811*) gdb_target_cpu=m68hc11 ;;
20 m68*) gdb_target_cpu=m68k ;;
21 m88*) gdb_target_cpu=m88k ;;
22 mips*) gdb_target_cpu=mips ;;
23 powerpc*) gdb_target_cpu=powerpc ;;
24 sparc*) gdb_target_cpu=sparc ;;
25 thumb*) gdb_target_cpu=arm ;;
26 strongarm*) gdb_target_cpu=arm ;;
27 xscale*) gdb_target_cpu=arm ;;
28 v850*) gdb_target_cpu=v850 ;;
29 *) gdb_target_cpu=$target_cpu ;;
33 # map target info into gdb names.
37 a29k-*-aout*) gdb_target=a29k ;;
38 a29k-*-coff*) gdb_target=a29k ;;
39 a29k-*-elf*) gdb_target=a29k ;;
40 a29k-*-ebmon*) gdb_target=a29k ;;
41 a29k-*-kern*) gdb_target=a29k-kern ;;
42 a29k-*-none*) gdb_target=a29k ;;
43 a29k-*-sym1*) gdb_target=ultra3 ;;
44 a29k-*-udi*) gdb_target=a29k-udi ;;
45 a29k-*-vxworks*) gdb_target=vx29k ;;
47 alpha*-*-osf*) gdb_target=alpha-osf1 ;;
48 alpha*-*-linux*) gdb_target=alpha-linux ;;
49 alpha*-*-freebsd*) gdb_target=fbsd ;;
51 arc-*-*) gdb_target=arc ;;
53 arm*-wince-pe) gdb_target=wince ;;
54 arm*-*-linux*) gdb_target=linux
55 configdirs="$configdirs gdbserver"
57 arm*-*-* | thumb*-*-* | strongarm*-*-*)
59 configdirs="$configdirs rdi-share"
61 xscale-*-*) gdb_target=embed
62 configdirs="$configdirs rdi-share"
65 d10v-*-*) gdb_target=d10v ;;
66 d30v-*-*) gdb_target=d30v ;;
68 h8300-*-*) gdb_target=h8300 ;;
69 h8500-*-*) gdb_target=h8500 ;;
72 fr30-*-elf*) gdb_target=fr30 ;;
75 hppa*-*-bsd*) gdb_target=hppabsd
76 configdirs="${configdirs} gdbserver" ;;
77 hppa*-*-pro*) gdb_target=hppapro ;;
78 hppa*64*-*-hpux11*) gdb_target=hppa64 ;;
79 hppa*-*-hpux*) gdb_target=hppahpux ;;
80 hppa*-*-hiux*) gdb_target=hppahpux ;;
81 hppa*-*-osf*) gdb_target=hppaosf
82 configdirs="${configdirs} gdbserver" ;;
84 i[3456]86-sequent-bsd*) gdb_target=symmetry ;;
85 i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;;
86 i[3456]86-sequent-sysv*) gdb_target=ptx ;;
87 i[3456]86-ncr-*) gdb_target=ncr3000 ;;
88 i[3456]86-*-aout*) gdb_target=embed ;;
89 i[3456]86-*-coff*) gdb_target=embed ;;
90 i[3456]86-*-elf*) gdb_target=embed ;;
91 i[3456]86-*-aix*) gdb_target=i386aix ;;
92 i[3456]86-*-bsd*) gdb_target=i386bsd ;;
93 i[3456]86-*-freebsd*) gdb_target=fbsd ;;
94 i[3456]86-*-netbsdelf*) gdb_target=nbsdelf
95 configdirs="${configdirs} gdbserver" ;;
96 i[3456]86-*-netbsd*) gdb_target=nbsd
97 configdirs="${configdirs} gdbserver" ;;
98 i[3456]86-*-os9k) gdb_target=i386os9k ;;
99 i[3456]86-*-go32*) gdb_target=i386aout ;;
100 i[3456]86-*-msdosdjgpp*) gdb_target=go32 ;;
101 i[3456]86-*-lynxos*) gdb_target=i386lynx
102 configdirs="${configdirs} gdbserver" ;;
103 i[3456]86-*-solaris*) gdb_target=i386sol2 ;;
104 i[3456]86-*-sunos*) gdb_target=sun386 ;;
105 i[3456]86-*-sysv4.2*) gdb_target=i386v42mp ;;
106 i[3456]86-*-sysv4*) gdb_target=i386v4 ;;
107 i[3456]86-*-sysv5*) gdb_target=i386v42mp ;;
108 i[3456]86-*-unixware2*) gdb_target=i386v42mp ;;
109 i[3456]86-*-unixware*) gdb_target=i386v4 ;;
110 i[3456]86-*-sco3.2v4*) gdb_target=i386sco4 ;;
111 i[3456]86-*-sco3.2v5*) gdb_target=i386sco5 ;;
112 i[3456]86-*-sco*) gdb_target=i386v ;;
113 i[3456]86-*-sysv*) gdb_target=i386v ;;
114 i[3456]86-*-linux*) gdb_target=linux
115 configdirs="${configdirs} gdbserver" ;;
116 i[3456]86-pc-linux-gnu) gdb_target=linux
117 configdirs="${configdirs} gdbserver" ;;
118 i[3456]86-*-isc*) gdb_target=i386v ;;
119 i[3456]86-*-mach3*) gdb_target=i386m3 ;;
120 i[3456]86-*-gnu*) gdb_target=i386gnu ;;
121 i[3456]86-*-netware*) gdb_target=i386nw
122 configdirs="${configdirs} nlm" ;;
123 i[3456]86-*-osf1mk*) gdb_target=i386mk ;;
124 i[3456]86-*-cygwin*) gdb_target=cygwin ;;
125 i[3456]86-*-vxworks*) gdb_target=vxworks ;;
127 i960-*-bout*) gdb_target=vxworks960 ;;
128 i960-nindy-coff*) gdb_target=nindy960 ;;
129 i960-*-coff*) gdb_target=mon960 ;;
130 i960-nindy-elf*) gdb_target=nindy960 ;;
131 i960-*-elf*) gdb_target=mon960 ;;
132 i960-*-nindy*) gdb_target=nindy960 ;;
133 i960-*-vxworks*) gdb_target=vxworks960 ;;
135 ia64-*-aix*) gdb_target=aix ;;
136 ia64-*-linux*) gdb_target=linux ;;
138 m32r-*-elf*) gdb_target=m32r ;;
140 m68hc11*-*-*|m6811*-*-*) gdb_target=m68hc11 ;;
142 m68000-*-sunos3*) gdb_target=sun2os3 ;;
143 m68000-*-sunos4*) gdb_target=sun2os4 ;;
145 m68*-apollo*-bsd*) gdb_target=apollo68b ;;
146 m68*-bull-sysv*) gdb_target=dpx2 ;;
147 m68*-hp-bsd*) gdb_target=hp300bsd ;;
148 m68*-hp-hpux*) gdb_target=hp300hpux ;;
149 m68*-att-*) gdb_target=3b1 ;;
150 m68*-cisco*-*) gdb_target=cisco ;;
151 m68*-ericsson-*) gdb_target=es1800 ;;
152 m68*-isi-*) gdb_target=isi ;;
153 m68*-motorola-*) gdb_target=delta68 ;;
154 m68*-netx-*) gdb_target=vxworks68 ;;
155 m68*-sony-*) gdb_target=news ;;
156 m68*-tandem-*) gdb_target=st2000 ;;
157 m68*-rom68k-*) gdb_target=monitor ;;
158 m68*-*bug-*) gdb_target=monitor ;;
159 m68*-monitor-*) gdb_target=monitor ;;
160 m68*-est-*) gdb_target=monitor ;;
161 m68*-*-aout*) gdb_target=monitor ;;
162 m68*-*-coff*) gdb_target=monitor ;;
163 m68*-*-elf*) gdb_target=monitor ;;
164 m68*-*-linux*) gdb_target=linux
165 configdirs="${configdirs} gdbserver" ;;
166 m68*-*-lynxos*) gdb_target=m68klynx
167 configdirs="${configdirs} gdbserver" ;;
168 m68*-*-netbsd*) gdb_target=nbsd
169 configdirs="${configdirs} gdbserver" ;;
170 m68*-*-os68k*) gdb_target=os68k ;;
171 m68*-*-sunos3*) gdb_target=sun3os3 ;;
172 m68*-*-sunos4*) gdb_target=sun3os4
173 configdirs="${configdirs} gdbserver" ;;
174 m68*-*-sysv4*) gdb_target=m68kv4 ;;
175 m68*-*-vxworks*) gdb_target=vxworks68 ;;
177 # OBSOLETE m88*-harris-cxux*) gdb_target=cxux ;;
178 m88*-motorola-sysv4*) gdb_target=delta88v4 ;;
179 m88*-motorola-*) gdb_target=delta88 ;;
180 m88*-*-*) gdb_target=m88k ;;
182 mcore*-*-*) gdb_target=mcore ;;
183 mips64*-big-*) gdb_target=bigmips64 ;;
184 mips*-big-*) gdb_target=bigmips ;;
185 mips*-dec-mach3*) gdb_target=mach3 ;;
186 mips*-dec-*) gdb_target=decstation ;;
187 mips*-*-pe) gdb_target=wince ;;
188 mips64*el-*-ecoff*) gdb_target=embedl64 ;;
189 mips64*-*-ecoff*) gdb_target=embed64 ;;
190 mips64*vr4xxx*el-*-elf*)gdb_target=vr4xxxel ;;
191 mips64*vr4xxx*-*-elf*) gdb_target=vr4xxx ;;
192 mips64*vr4300*el-*-elf*) gdb_target=vr4300el ;;
193 mips64*vr4300*-*-elf*) gdb_target=vr4300 ;;
194 mips64*vr4100*el-*-elf*) gdb_target=vr4300el ;;
195 mips64*vr4100*-*-elf*) gdb_target=vr4100 ;;
196 mips64*vr5000*el-*-elf*) gdb_target=vr5000el ;;
197 mips64*vr5000*-*-elf*) gdb_target=vr5000
198 configdirs="${configdirs} gdbserver" ;;
199 mips*tx39*el*-elf*) gdb_target=tx39l ;;
200 mips*tx39*-elf*) gdb_target=tx39 ;;
201 mips64*el-*-elf*) gdb_target=embedl64 ;;
202 mips64*-*-elf*) gdb_target=embed64 ;;
203 mips*el-*-ecoff*) gdb_target=embedl ;;
204 mips*-*-ecoff*) gdb_target=embed ;;
205 mips*el-*-elf*) gdb_target=embedl ;;
206 mips*-*-elf*) gdb_target=embed ;;
207 mips*-little-*) gdb_target=littlemips ;;
208 mips*-*-lnews*) gdb_target=embedl ;;
209 mips*-sgi-irix5*) gdb_target=irix5 ;;
210 mips*-sgi-irix6*) gdb_target=irix5 ;;
211 mips*-sgi-*) gdb_target=irix3 ;;
212 mips*-sony-*) gdb_target=bigmips ;;
213 mips*-*-mach3*) gdb_target=mipsm3 ;;
214 mips*-*-sysv4*) gdb_target=mipsv4 ;;
215 mips*-*-sysv*) gdb_target=bigmips ;;
216 mips*-*-riscos*) gdb_target=bigmips ;;
217 mips*-*-vxworks*) gdb_target=vxmips ;;
219 mn10200-*-*) gdb_target=mn10200 ;;
220 mn10300-*-*) gdb_target=mn10300 ;;
222 none-*-*) gdb_target=none ;;
224 # OBSOLETE ns32k-*-mach3*) gdb_target=ns32km3 ;;
225 ns32k-*-netbsd*) gdb_target=nbsd
226 configdirs="${configdirs} gdbserver" ;;
227 # OBSOLETE ns32k-utek-sysv*) gdb_target=merlin ;;
228 # OBSOLETE ns32k-utek-*) gdb_target=umax ;;
230 powerpc-*-macos*) gdb_target=macos ;;
231 powerpc-*-netbsd*) gdb_target=nbsd
232 configdirs="${configdirs} gdbserver" ;;
233 powerpc-*-netware*) gdb_target=ppc-nw
234 configdirs="${configdirs} nlm" ;;
236 powerpc-*-aix*) gdb_target=aix ;;
237 powerpcle-*-cygwin*) gdb_target=cygwin ;;
238 powerpcle-*-solaris*) gdb_target=solaris ;;
239 powerpc-*-eabi* | powerpc-*-sysv* | powerpc-*-elf*)
240 if test -f ../sim/ppc/Makefile; then
245 powerpcle-*-eabi* | powerpcle-*-sysv* | powerpcle-*-elf*)
246 if test -f ../sim/ppc/Makefile; then
249 gdb_target=ppcle-eabi
251 powerpc-*-linux*) gdb_target=linux ;;
252 powerpc-*-vxworks*) gdb_target=vxworks ;;
254 rs6000-*-lynxos*) gdb_target=rs6000lynx
255 configdirs="${configdirs} gdbserver" ;;
256 rs6000-*-aix4*) gdb_target=aix4 ;;
257 rs6000-*-*) gdb_target=rs6000 ;;
259 sh*-*-pe) gdb_target=wince ;;
260 sh-*-hms) gdb_target=embed ;;
261 sh-*-coff*) gdb_target=embed ;;
262 sh-*-elf*) gdb_target=embed ;;
263 sh-*-linux*) gdb_target=linux ;;
265 sparc-*-aout*) gdb_target=sparc-em ;;
266 sparc-*-coff*) gdb_target=sparc-em ;;
267 sparc-*-elf*) gdb_target=sparc-em ;;
268 sparc-*-linux*) gdb_target=linux ;;
269 sparc-*-lynxos*) gdb_target=sparclynx
270 configdirs="${configdirs} gdbserver" ;;
271 sparc-*-netbsd*) gdb_target=nbsd ;;
272 sparc-*-solaris2*) gdb_target=sun4sol2 ;;
273 sparc-*-sunos4*) gdb_target=sun4os4
274 configdirs="${configdirs} gdbserver" ;;
275 sparc-*-sunos5*) gdb_target=sun4sol2 ;;
276 sparc-*-vxworks*) gdb_target=vxsparc ;;
277 sparc-*-*) gdb_target=sun4os4 ;;
278 sparclet-*-*) gdb_target=sparclet;;
279 sparclite-*-*) gdb_target=sparclite ;;
280 sparc86x-*-*) gdb_target=sparclite ;;
281 # It's not clear what the right solution for "v8plus" systems is yet.
282 # For now, stick with sparc-sun-solaris2 since that's what config.guess
283 # should return. Work is still needed to get gdb to print the 64 bit
284 # regs (some of which are usable in v8plus) so sp64sol.mt hasn't been
285 # deleted though presumably it should be eventually.
286 #sparc64-*-solaris2*) gdb_target=sp64sol2 ;;
287 sparc64-*-linux*) gdb_target=sp64linux ;;
288 sparc64-*-*) gdb_target=sp64 ;;
290 # OBSOLETE tic80-*-*) gdb_target=tic80
291 # OBSOLETE configdirs="${configdirs} gdbserver" ;;
293 vax-*-*) gdb_target=vax ;;
295 fr30-*-*) gdb_target=fr30
298 v850*-*-*) gdb_target=v850
301 CONFIG_OBS="${CONFIG_OBS} v850ice.o" ;;
306 # OBSOLETE w65-*-*) gdb_target=w65 ;;
308 z8k-*-coff*) gdb_target=z8k ;;
313 # map GDB target onto multi-arch support
315 case "${gdb_target}" in
316 m68hc11) gdb_multi_arch=yes ;;