]> Git Repo - binutils.git/blob - gdb/configure.tgt
2003-09-16 Andrew Cagney <[email protected]>
[binutils.git] / gdb / configure.tgt
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
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 ;;
33
34 esac
35
36 # map target info into gdb names.
37
38 case "${target}" in
39
40 x86_64-*-freebsd*)      gdb_target=fbsd64 ;;
41 *-*-freebsd*)           gdb_target=fbsd
42                         ;;
43
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 ;;
48
49 arm*-wince-pe)          gdb_target=wince ;;
50 arm*-*-linux*)          gdb_target=linux
51                         build_gdbserver=yes
52                         ;;
53 arm*-*-netbsd*)         gdb_target=nbsd ;;
54 arm-*-nto*)             gdb_target=nto ;;
55 arm*-*-* | thumb*-*-* | strongarm*-*-*)
56                         gdb_target=embed
57                         configdirs="$configdirs rdi-share"
58                         ;;
59 xscale-*-*)             gdb_target=embed
60                         configdirs="$configdirs rdi-share"
61                         ;;
62
63 avr-*-*)                gdb_target=avr ;;
64
65 cris*)                  gdb_target=cris ;;
66
67 d10v-*-*)               gdb_target=d10v ;;
68
69 h8300-*-*)              gdb_target=h8300 ;;
70 # OBSOLETE h8500-*-*)           gdb_target=h8500 ;;
71
72
73 frv-*-*)                gdb_target=frv ;;
74
75 # OBSOLETE hppa*-*-bsd*)                gdb_target=hppabsd ;;
76 # OBSOLETE hppa*-*-pro*)                gdb_target=hppapro ;;
77 hppa*64*-*-hpux11*)     gdb_target=hppa64 ;;
78 hppa*-*-hpux*)          gdb_target=hppahpux ;;
79 hppa*-*-hiux*)          gdb_target=hppahpux ;;
80 # OBSOLETE hppa*-*-osf*)                gdb_target=hppaosf ;;
81 hppa*-*-*)              gdb_target=hppa ;;
82
83 # OBSOLETE i[3456]86-sequent-bsd*)      gdb_target=symmetry ;;
84 # OBSOLETE i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;;
85 # OBSOLETE i[3456]86-sequent-sysv*) gdb_target=ptx ;;
86 i[34567]86-ncr-*)       gdb_target=ncr3000 ;;
87 i[34567]86-*-bsd*)      gdb_target=i386bsd ;;
88 i[34567]86-*-netbsd*)   gdb_target=nbsd ;;
89 i[34567]86-*-openbsd*)  gdb_target=obsd ;;
90 i[34567]86-*-go32*)     gdb_target=i386aout ;;
91 i[34567]86-*-msdosdjgpp*) gdb_target=go32 ;;
92 i[34567]86-*-nto*)      gdb_target=nto ;;
93 i[34567]86-*-lynxos*)   gdb_target=i386lynx ;;
94 i[34567]86-*-solaris*)  gdb_target=i386sol2 ;;
95 i[34567]86-*-sco*)      gdb_target=i386v ;;
96 i[34567]86-*-sysv*)     gdb_target=i386v ;;
97 i[34567]86-*-linux*)    gdb_target=linux
98                         build_gdbserver=yes
99                         ;;
100 i[34567]86-*-isc*)      gdb_target=i386v ;;
101 i[34567]86-*-gnu*)      gdb_target=i386gnu ;;
102 i[34567]86-*-netware*)  gdb_target=i386nw
103                 configdirs="${configdirs} nlm" ;;
104 i[34567]86-*-cygwin*)   gdb_target=cygwin  ;;
105 i[34567]86-*-vxworks*)  gdb_target=vxworks ;;
106 i[34567]86-*-*)         gdb_target=embed ;;
107
108 ia64-*-aix*)            gdb_target=aix ;;
109 ia64-*-linux*)          gdb_target=linux
110                         build_gdbserver=yes
111                         ;;
112 ia64*-*-*)              gdb_target=ia64 ;;
113
114 m32r-*-*)               gdb_target=m32r ;;
115
116 m68hc11*-*-*|m6811*-*-*)        gdb_target=m68hc11 ;;
117
118 m68000-*-sunos3*)       gdb_target=sun2os3 ;;
119 m68000-*-sunos4*)       gdb_target=sun2os4 ;;
120
121 m68*-bull-sysv*)        gdb_target=dpx2 ;;
122 m68*-att-*)             gdb_target=3b1 ;;
123 m68*-cisco*-*)          gdb_target=cisco ;;
124 m68*-motorola-*)        gdb_target=delta68 ;;
125 m68*-netx-*)            gdb_target=vxworks68 ;;
126 m68*-tandem-*)          gdb_target=st2000 ;;
127 m68*-*-aout*)           gdb_target=monitor ;;
128 m68*-*-coff*)           gdb_target=monitor ;;
129 m68*-*-elf*)            gdb_target=monitor ;;
130 m68*-*-linux*)          gdb_target=linux
131                         build_gdbserver=yes
132                         ;;
133 m68*-*-lynxos*)         gdb_target=m68klynx ;;
134 m68*-*-netbsd*)         gdb_target=nbsdaout ;;
135 m68*-*-os68k*)          gdb_target=os68k ;;
136 m68*-*-sunos3*)         gdb_target=sun3os3 ;;
137 m68*-*-sunos4*)         gdb_target=sun3os4 ;;
138 m68*-*-sysv4*)          gdb_target=m68kv4 ;;
139 m68*-*-vxworks*)        gdb_target=vxworks68 ;;
140
141 mcore*-*-*)             gdb_target=mcore ;;
142
143 # "mipsisa64" targets are 64-bit MIPS, MIPS64 ISA.  They need these
144 # special cases because otherwise they (obviously) are not matched by
145 # the "mips64" target cases, and would therefore be treated as 32-bit.
146 mipsisa64*-*-linux*)    gdb_target=linux64 ;;
147 mipsisa64*-*-*)         gdb_target=embed64 ;;
148 mips*-*-pe)             gdb_target=wince ;;
149 mips*tx39*-elf*)        gdb_target=tx39 ;;
150 mips64*-*-linux*)       gdb_target=linux64 ;;
151 mips*-sgi-irix5*)       gdb_target=irix5 ;;
152 mips*-sgi-irix6*)       gdb_target=irix6 ;;
153 mips*-*-linux*)         gdb_target=linux
154                         build_gdbserver=yes
155                         ;;
156 mips*-*-netbsd*)        gdb_target=nbsd ;;
157 # OBSOLETE mips*-*-mach3*)              gdb_target=mipsm3 ;;
158 mips*-*-sysv4*)         gdb_target=mipsv4 ;;
159 mips*-*-vxworks*)       gdb_target=vxmips ;;
160 mips64*-*-*)            gdb_target=embed64 ;;
161 mips*-*-*)              gdb_target=embed ;;
162
163 # OBSOLETE mn10200-*-*)         gdb_target=mn10200 ;;
164 mn10300-*-*)            gdb_target=mn10300 ;;
165
166 none-*-*)               gdb_target=none ;;
167
168 ns32k-*-netbsd*)        gdb_target=nbsdaout ;;
169
170 powerpc-*-netbsd*)      gdb_target=nbsd ;;
171 powerpc-*-aix*)         gdb_target=aix ;;
172 powerpc-*-linux*)       gdb_target=linux
173                         build_gdbserver=yes
174                         ;;
175 powerpc64-*-linux*)     gdb_target=linux ;;
176 powerpc-*-vxworks*)     gdb_target=vxworks ;;
177 powerpc*-*-*)           if test -f ../sim/ppc/Makefile; then
178                           gdb_target=ppc-sim
179                         else
180                           gdb_target=ppc-eabi
181                         fi ;;
182
183 rs6000-*-lynxos*)       gdb_target=rs6000lynx ;;
184 rs6000-*-aix4*)         gdb_target=aix4 ;;
185 rs6000-*-*)             gdb_target=rs6000 ;;
186
187 s390-*-*)               gdb_target=s390
188                         build_gdbserver=yes
189                         ;;
190 s390x-*-*)              gdb_target=s390x
191                         build_gdbserver=yes
192                         ;;
193
194 sh*-*-pe)               gdb_target=wince ;;
195 sh-*-coff*)             gdb_target=embed ;;
196 sh-*-elf*)              gdb_target=embed ;;
197 # FIXME should that be sh*-*-linux*, perhaps?
198 sh-*-linux*)            gdb_target=linux
199                         build_gdbserver=yes
200                         ;;
201 sh*-*-netbsdelf*)       gdb_target=nbsd ;;
202 sh-*-nto*)              gdb_target=nto ;;
203 sh*)                    gdb_target=embed ;;
204
205 sparc-*-aout*)          gdb_target=sparc-em ;;
206 sparc-*-coff*)          gdb_target=sparc-em ;;
207 sparc-*-elf*)           gdb_target=sparc-em ;;
208 sparc-*-linux*)         gdb_target=linux ;;
209 sparc-*-lynxos*)        gdb_target=sparclynx ;;
210 sparc-*-netbsd*)        gdb_target=nbsd ;;
211 sparc-*-solaris2*)      gdb_target=sun4sol2 ;;
212 sparc-*-sunos4*)        gdb_target=sun4os4 ;;
213 sparc-*-sunos5*)        gdb_target=sun4sol2 ;;
214 sparc-*-vxworks*)       gdb_target=vxsparc ;;
215 sparc-*-*)              gdb_target=sun4os4 ;;
216 # OBSOLETE sparclet-*-*)                gdb_target=sparclet;;
217 # OBSOLETE sparclite-*-*)               gdb_target=sparclite ;;
218 # OBSOLETE sparc86x-*-*)                gdb_target=sparclite ;;
219 # It's not clear what the right solution for "v8plus" systems is yet.
220 # For now, stick with sparc-sun-solaris2 since that's what config.guess
221 # should return.  Work is still needed to get gdb to print the 64 bit
222 # regs (some of which are usable in v8plus) so sp64sol.mt hasn't been
223 # deleted though presumably it should be eventually.
224 #sparc64-*-solaris2*)   gdb_target=sp64sol2 ;;
225 sparc64-*-linux*)       gdb_target=sp64linux ;;
226 sparc64-*-netbsd*)      gdb_target=nbsd64 ;;
227 sparcv9-*-* | sparc64-*-*) gdb_target=sp64 ;;
228
229 xstormy16-*-*)          gdb_target=xstormy16 ;;
230
231 vax-*-*)                gdb_target=vax ;;
232
233 v850*-*-*)              gdb_target=v850
234                         case ${gdb_host} in
235                         cygwin*)
236                                 CONFIG_OBS="${CONFIG_OBS} v850ice.o" ;;
237                         * ) ;;
238                         esac
239                         ;;
240
241 x86_64-*-linux*)        gdb_target=x86-64linux
242                         build_gdbserver=yes
243                         ;;
244
245 # OBSOLETE z8k-*-coff*)         gdb_target=z8k ;;
246
247 esac
248
249 # map target onto default OS ABI
250
251 case "${target}" in
252 *-*-linux*)     gdb_osabi=GDB_OSABI_LINUX ;;
253 *-*-gnu*)       gdb_osabi=GDB_OSABI_HURD ;;
254 *-*-nto*)       gdb_osabi=GDB_OSABI_QNXNTO ;;
255 *-*-solaris*)   gdb_osabi=GDB_OSABI_SOLARIS ;;
256 esac
This page took 0.038968 seconds and 4 git commands to generate.