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 avr*) gdb_target_cpu=avr ;;
18 hppa*) gdb_target_cpu=pa ;;
19 i[3456]86*) gdb_target_cpu=i386 ;;
20 m68hc11*|m6811*) gdb_target_cpu=m68hc11 ;;
21 m68*) gdb_target_cpu=m68k ;;
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 s390*) gdb_target_cpu=s390 ;;
27 sh*) gdb_target_cpu=sh ;;
28 strongarm*) gdb_target_cpu=arm ;;
29 xscale*) gdb_target_cpu=arm ;;
30 v850*) gdb_target_cpu=v850 ;;
31 x86_64*) gdb_target_cpu=i386 ;;
32 *) gdb_target_cpu=$target_cpu ;;
36 # map target info into gdb names.
40 *-*-freebsd*) gdb_target=fbsd
43 alpha*-*-osf*) gdb_target=alpha-osf1 ;;
44 alpha*-*-linux*) gdb_target=alpha-linux ;;
45 alpha*-*-netbsd*) gdb_target=nbsd ;;
46 alpha*-*-*) gdb_target=alpha ;;
48 arm*-wince-pe) gdb_target=wince ;;
49 arm*-*-linux*) gdb_target=linux
52 arm*-*-netbsd*) gdb_target=nbsd
54 arm*-*-* | thumb*-*-* | strongarm*-*-*)
56 configdirs="$configdirs rdi-share"
58 xscale-*-*) gdb_target=embed
59 configdirs="$configdirs rdi-share"
62 avr-*-*) gdb_target=avr
66 cris*) gdb_target=cris ;;
68 d10v-*-*) gdb_target=d10v ;;
70 h8300-*-*) gdb_target=h8300 ;;
71 # OBSOLETE h8500-*-*) gdb_target=h8500 ;;
74 frv-*-*) gdb_target=frv ;;
76 hppa*-*-bsd*) gdb_target=hppabsd ;;
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 hppa*-*-*) gdb_target=hppa ;;
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-*-bsd*) gdb_target=i386bsd ;;
89 i[3456]86-*-netbsd*) gdb_target=nbsd ;;
90 i[3456]86-*-openbsd*) gdb_target=obsd ;;
91 i[3456]86-*-go32*) gdb_target=i386aout ;;
92 i[3456]86-*-msdosdjgpp*) gdb_target=go32 ;;
93 i[3456]86-*-lynxos*) gdb_target=i386lynx ;;
94 i[3456]86-*-solaris*) gdb_target=i386sol2 ;;
95 i[3456]86-*-sysv4.2*) gdb_target=i386v42mp ;;
96 i[3456]86-*-sysv4*) gdb_target=i386v4 ;;
97 i[3456]86-*-sysv5*) gdb_target=i386v42mp ;;
98 i[3456]86-*-sco3.2v4*) gdb_target=i386sco4 ;;
99 i[3456]86-*-sco3.2v5*) gdb_target=i386sco5 ;;
100 i[3456]86-*-sco*) gdb_target=i386v ;;
101 i[3456]86-*-sysv*) gdb_target=i386v ;;
102 i[3456]86-*-linux*) gdb_target=linux
105 i[3456]86-*-isc*) gdb_target=i386v ;;
106 i[3456]86-*-gnu*) gdb_target=i386gnu ;;
107 i[3456]86-*-netware*) gdb_target=i386nw
108 configdirs="${configdirs} nlm" ;;
109 i[3456]86-*-cygwin*) gdb_target=cygwin ;;
110 i[3456]86-*-vxworks*) gdb_target=vxworks ;;
111 i[3456]86-*-*) gdb_target=embed ;;
113 ia64-*-aix*) gdb_target=aix ;;
114 ia64-*-linux*) gdb_target=linux
117 ia64*-*-*) gdb_target=ia64 ;;
119 # OBSOLETE m32r-*-elf*) gdb_target=m32r ;;
121 m68hc11*-*-*|m6811*-*-*) gdb_target=m68hc11 ;;
123 m68000-*-sunos3*) gdb_target=sun2os3 ;;
124 m68000-*-sunos4*) gdb_target=sun2os4 ;;
126 m68*-bull-sysv*) gdb_target=dpx2 ;;
127 m68*-att-*) gdb_target=3b1 ;;
128 m68*-cisco*-*) gdb_target=cisco ;;
129 m68*-motorola-*) gdb_target=delta68 ;;
130 m68*-netx-*) gdb_target=vxworks68 ;;
131 m68*-tandem-*) gdb_target=st2000 ;;
132 m68*-*-aout*) gdb_target=monitor ;;
133 m68*-*-coff*) gdb_target=monitor ;;
134 m68*-*-elf*) gdb_target=monitor ;;
135 m68*-*-linux*) gdb_target=linux
138 m68*-*-lynxos*) gdb_target=m68klynx ;;
139 m68*-*-netbsd*) gdb_target=nbsdaout ;;
140 m68*-*-os68k*) gdb_target=os68k ;;
141 m68*-*-sunos3*) gdb_target=sun3os3 ;;
142 m68*-*-sunos4*) gdb_target=sun3os4 ;;
143 m68*-*-sysv4*) gdb_target=m68kv4 ;;
144 m68*-*-vxworks*) gdb_target=vxworks68 ;;
146 mcore*-*-*) gdb_target=mcore ;;
147 mips64*-big-*) gdb_target=bigmips64 ;;
148 mips*-big-*) gdb_target=bigmips ;;
149 mips*-dec-mach3*) gdb_target=mach3 ;;
150 mips*-dec-*) gdb_target=decstation ;;
151 mips*-*-pe) gdb_target=wince ;;
152 mips64*el-*-ecoff*) gdb_target=embedl64 ;;
153 mips64*-*-ecoff*) gdb_target=embed64 ;;
154 mips64*vr4xxx*el-*-elf*)gdb_target=vr4xxxel ;;
155 mips64*vr4xxx*-*-elf*) gdb_target=vr4xxx ;;
156 mips64*vr4300*el-*-elf*) gdb_target=vr4300el ;;
157 mips64*vr4300*-*-elf*) gdb_target=vr4300 ;;
158 mips64*vr4100*el-*-elf*) gdb_target=vr4300el ;;
159 mips64*vr4100*-*-elf*) gdb_target=vr4100 ;;
160 mips64*vr5000*el-*-elf*) gdb_target=vr5000el ;;
161 mips64*vr5000*-*-elf*) gdb_target=vr5000 ;;
162 mips*tx39*el*-elf*) gdb_target=tx39l ;;
163 mips*tx39*-elf*) gdb_target=tx39 ;;
164 mips64*el-*-elf*) gdb_target=embedl64 ;;
165 mips64*-*-elf*) gdb_target=embed64 ;;
166 mips64*-*-linux*) gdb_target=linux64 ;;
167 mips*el-*-ecoff*) gdb_target=embedl ;;
168 mips*-*-ecoff*) gdb_target=embed ;;
169 mips*el-*-elf*) gdb_target=embedl ;;
170 mips*-*-elf*) gdb_target=embed ;;
171 mips*-little-*) gdb_target=littlemips ;;
172 mips*-*-lnews*) gdb_target=embedl ;;
173 mips*-sgi-irix5*) gdb_target=irix5 ;;
174 mips*-sgi-irix6*) gdb_target=irix6 ;;
175 mips*-sgi-*) gdb_target=irix3 ;;
176 mips*-sony-*) gdb_target=bigmips ;;
177 mips*-*-linux*) gdb_target=linux
180 mips*-*-netbsd*) gdb_target=nbsd ;;
181 mips*-*-mach3*) gdb_target=mipsm3 ;;
182 mips*-*-sysv4*) gdb_target=mipsv4 ;;
183 mips*-*-sysv*) gdb_target=bigmips ;;
184 mips*-*-riscos*) gdb_target=bigmips ;;
185 mips*-*-vxworks*) gdb_target=vxmips ;;
186 mips*-*-*) gdb_target=embed ;;
188 # OBSOLETE mn10200-*-*) gdb_target=mn10200 ;;
189 mn10300-*-*) gdb_target=mn10300 ;;
191 none-*-*) gdb_target=none ;;
193 ns32k-*-netbsd*) gdb_target=nbsdaout ;;
195 powerpc-*-netbsd*) gdb_target=nbsd ;;
196 powerpc-*-aix*) gdb_target=aix ;;
197 powerpc-*-linux*) gdb_target=linux
200 powerpc-*-vxworks*) gdb_target=vxworks ;;
201 powerpc*-*-*) if test -f ../sim/ppc/Makefile; then
207 rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
208 rs6000-*-aix4*) gdb_target=aix4 ;;
209 rs6000-*-*) gdb_target=rs6000 ;;
211 s390-*-*) gdb_target=s390
214 s390x-*-*) gdb_target=s390x
218 sh*-*-pe) gdb_target=wince ;;
219 sh-*-coff*) gdb_target=embed ;;
220 sh-*-elf*) gdb_target=embed ;;
221 sh-*-linux*) gdb_target=linux
224 sh*-*-netbsdelf*) gdb_target=nbsd ;;
225 sh*) gdb_target=embed ;;
227 sparc-*-aout*) gdb_target=sparc-em ;;
228 sparc-*-coff*) gdb_target=sparc-em ;;
229 sparc-*-elf*) gdb_target=sparc-em ;;
230 sparc-*-linux*) gdb_target=linux ;;
231 sparc-*-lynxos*) gdb_target=sparclynx ;;
232 sparc-*-netbsd*) gdb_target=nbsd ;;
233 sparc-*-solaris2*) gdb_target=sun4sol2 ;;
234 sparc-*-sunos4*) gdb_target=sun4os4 ;;
235 sparc-*-sunos5*) gdb_target=sun4sol2 ;;
236 sparc-*-vxworks*) gdb_target=vxsparc ;;
237 sparc-*-*) gdb_target=sun4os4 ;;
238 sparclet-*-*) gdb_target=sparclet;;
239 sparclite-*-*) gdb_target=sparclite ;;
240 sparc86x-*-*) gdb_target=sparclite ;;
241 # It's not clear what the right solution for "v8plus" systems is yet.
242 # For now, stick with sparc-sun-solaris2 since that's what config.guess
243 # should return. Work is still needed to get gdb to print the 64 bit
244 # regs (some of which are usable in v8plus) so sp64sol.mt hasn't been
245 # deleted though presumably it should be eventually.
246 #sparc64-*-solaris2*) gdb_target=sp64sol2 ;;
247 sparc64-*-linux*) gdb_target=sp64linux ;;
248 sparc64-*-netbsd*) gdb_target=nbsd64 ;;
249 sparcv9-*-* | sparc64-*-*) gdb_target=sp64 ;;
251 xstormy16-*-*) gdb_target=xstormy16 ;;
253 vax-*-*) gdb_target=vax ;;
255 v850*-*-*) gdb_target=v850
258 CONFIG_OBS="${CONFIG_OBS} v850ice.o" ;;
263 x86_64-*-linux*) gdb_target=x86-64linux
267 # OBSOLETE z8k-*-coff*) gdb_target=z8k ;;
272 # map GDB target onto multi-arch support
274 case "${gdb_target}" in
275 d10v) gdb_multi_arch=yes ;;
276 m68hc11) gdb_multi_arch=yes ;;
277 mn10300) gdb_multi_arch=yes ;;
278 x86-64linux) gdb_multi_arch=yes ;;
279 v850) gdb_multi_arch=yes ;;
280 xstormy16) gdb_multi_arch=yes ;;
281 mcore) gdb_multi_arch=yes ;;
284 # map target onto default OS ABI
287 *-*-linux*) gdb_osabi=GDB_OSABI_LINUX ;;
288 *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;