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