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[34567]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 x86_64-*-freebsd*) gdb_target=fbsd64 ;;
41 *-*-freebsd*) gdb_target=fbsd
44 alpha*-*-osf*) gdb_target=alpha-osf1 ;;
45 alpha*-*-linux*) gdb_target=alpha-linux ;;
46 alpha*-*-netbsd*) gdb_target=nbsd ;;
47 alpha*-*-*) gdb_target=alpha ;;
49 arm*-wince-pe) gdb_target=wince ;;
50 arm*-*-linux*) gdb_target=linux
53 arm*-*-netbsd*) gdb_target=nbsd ;;
54 arm-*-nto*) gdb_target=nto ;;
55 arm*-*-* | thumb*-*-* | strongarm*-*-*)
57 configdirs="$configdirs rdi-share"
59 xscale-*-*) gdb_target=embed
60 configdirs="$configdirs rdi-share"
63 avr-*-*) gdb_target=avr ;;
65 cris*) gdb_target=cris ;;
67 d10v-*-*) gdb_target=d10v ;;
69 h8300-*-*) gdb_target=h8300 ;;
72 frv-*-*) gdb_target=frv ;;
74 hppa*64*-*-hpux11*) gdb_target=hppa64 ;;
75 hppa*-*-hpux*) gdb_target=hppahpux ;;
76 hppa*-*-hiux*) gdb_target=hppahpux ;;
77 hppa*-*-*) gdb_target=hppa ;;
79 i[34567]86-ncr-*) gdb_target=ncr3000 ;;
80 i[34567]86-*-bsd*) gdb_target=i386bsd ;;
81 i[34567]86-*-netbsd*) gdb_target=nbsd ;;
82 i[34567]86-*-openbsd*) gdb_target=obsd ;;
83 i[34567]86-*-go32*) gdb_target=i386aout ;;
84 i[34567]86-*-msdosdjgpp*) gdb_target=go32 ;;
85 i[34567]86-*-nto*) gdb_target=nto ;;
86 i[34567]86-*-lynxos*) gdb_target=i386lynx ;;
87 i[34567]86-*-solaris*) gdb_target=i386sol2 ;;
88 i[34567]86-*-sco*) gdb_target=i386v ;;
89 i[34567]86-*-sysv*) gdb_target=i386v ;;
90 i[34567]86-*-linux*) gdb_target=linux
93 i[34567]86-*-isc*) gdb_target=i386v ;;
94 i[34567]86-*-gnu*) gdb_target=i386gnu ;;
95 i[34567]86-*-netware*) gdb_target=i386nw
96 configdirs="${configdirs} nlm" ;;
97 i[34567]86-*-cygwin*) gdb_target=cygwin ;;
98 i[34567]86-*-vxworks*) gdb_target=vxworks ;;
99 i[34567]86-*-*) gdb_target=embed ;;
101 ia64-*-aix*) gdb_target=aix ;;
102 ia64-*-linux*) gdb_target=linux
105 ia64*-*-*) gdb_target=ia64 ;;
107 m32r-*-*) gdb_target=m32r ;;
109 m68hc11*-*-*|m6811*-*-*) gdb_target=m68hc11 ;;
111 m68000-*-sunos3*) gdb_target=sun2os3 ;;
112 m68000-*-sunos4*) gdb_target=sun2os4 ;;
114 m68*-bull-sysv*) gdb_target=dpx2 ;;
115 m68*-att-*) gdb_target=3b1 ;;
116 m68*-cisco*-*) gdb_target=cisco ;;
117 m68*-motorola-*) gdb_target=delta68 ;;
118 m68*-netx-*) gdb_target=vxworks68 ;;
119 m68*-tandem-*) gdb_target=st2000 ;;
120 m68*-*-aout*) gdb_target=monitor ;;
121 m68*-*-coff*) gdb_target=monitor ;;
122 m68*-*-elf*) gdb_target=monitor ;;
123 m68*-*-linux*) gdb_target=linux
126 m68*-*-lynxos*) gdb_target=m68klynx ;;
127 m68*-*-netbsd*) gdb_target=nbsdaout ;;
128 m68*-*-os68k*) gdb_target=os68k ;;
129 m68*-*-sunos3*) gdb_target=sun3os3 ;;
130 m68*-*-sunos4*) gdb_target=sun3os4 ;;
131 m68*-*-sysv4*) gdb_target=m68kv4 ;;
132 m68*-*-vxworks*) gdb_target=vxworks68 ;;
134 mcore*-*-*) gdb_target=mcore ;;
136 mips*-*-pe) gdb_target=wince ;;
137 mips*-sgi-irix5*) gdb_target=irix5 ;;
138 mips*-sgi-irix6*) gdb_target=irix6 ;;
139 mips*-*-linux*) gdb_target=linux
142 mips*-*-netbsd*) gdb_target=nbsd ;;
143 mips*-*-sysv4*) gdb_target=mipsv4 ;;
144 mips*-*-vxworks*) gdb_target=vxmips ;;
145 mips*-*-*) gdb_target=embed ;;
147 mn10300-*-*) gdb_target=mn10300 ;;
149 none-*-*) gdb_target=none ;;
151 ns32k-*-netbsd*) gdb_target=nbsdaout ;;
153 powerpc-*-netbsd*) gdb_target=nbsd ;;
154 powerpc-*-aix*) gdb_target=aix ;;
155 powerpc-*-linux*) gdb_target=linux
158 powerpc64-*-linux*) gdb_target=linux ;;
159 powerpc-*-vxworks*) gdb_target=vxworks ;;
160 powerpc*-*-*) if test -f ../sim/ppc/Makefile; then
166 rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
167 rs6000-*-aix4*) gdb_target=aix4 ;;
168 rs6000-*-*) gdb_target=rs6000 ;;
170 s390-*-*) gdb_target=s390
173 s390x-*-*) gdb_target=s390x
177 sh*-*-pe) gdb_target=wince ;;
178 sh-*-coff*) gdb_target=embed ;;
179 sh-*-elf*) gdb_target=embed ;;
180 # FIXME should that be sh*-*-linux*, perhaps?
181 sh-*-linux*) gdb_target=linux
184 sh*-*-netbsdelf*) gdb_target=nbsd ;;
185 sh-*-nto*) gdb_target=nto ;;
186 sh*) gdb_target=embed ;;
188 sparc-*-aout*) gdb_target=sparc-em ;;
189 sparc-*-coff*) gdb_target=sparc-em ;;
190 sparc-*-elf*) gdb_target=sparc-em ;;
191 sparc-*-linux*) gdb_target=linux ;;
192 sparc-*-lynxos*) gdb_target=sparclynx ;;
193 sparc-*-netbsd*) gdb_target=nbsd ;;
194 sparc-*-solaris2*) gdb_target=sun4sol2 ;;
195 sparc-*-sunos4*) gdb_target=sun4os4 ;;
196 sparc-*-sunos5*) gdb_target=sun4sol2 ;;
197 sparc-*-vxworks*) gdb_target=vxsparc ;;
198 sparc-*-*) gdb_target=sun4os4 ;;
199 # It's not clear what the right solution for "v8plus" systems is yet.
200 # For now, stick with sparc-sun-solaris2 since that's what config.guess
201 # should return. Work is still needed to get gdb to print the 64 bit
202 # regs (some of which are usable in v8plus) so sp64sol.mt hasn't been
203 # deleted though presumably it should be eventually.
204 #sparc64-*-solaris2*) gdb_target=sp64sol2 ;;
205 sparc64-*-linux*) gdb_target=sp64linux ;;
206 sparc64-*-netbsd*) gdb_target=nbsd64 ;;
207 sparcv9-*-* | sparc64-*-*) gdb_target=sp64 ;;
209 xstormy16-*-*) gdb_target=xstormy16 ;;
211 vax-*-*) gdb_target=vax ;;
213 v850*-*-*) gdb_target=v850
216 CONFIG_OBS="${CONFIG_OBS} v850ice.o" ;;
221 x86_64-*-linux*) gdb_target=x86-64linux
224 x86_64-*-netbsd*) gdb_target=nbsd64 ;;
228 # map target onto default OS ABI
231 *-*-linux*) gdb_osabi=GDB_OSABI_LINUX ;;
232 *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
233 *-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
234 *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;