Commit | Line | Data |
---|---|---|
c906108c SS |
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 ;; | |
ed9a39eb | 16 | arm*) gdb_target_cpu=arm ;; |
c906108c SS |
17 | hppa*) gdb_target_cpu=pa ;; |
18 | i[3456]86*) gdb_target_cpu=i386 ;; | |
78073dd8 | 19 | m68hc11*|m6811*) gdb_target_cpu=m68hc11 ;; |
c906108c SS |
20 | m68*) gdb_target_cpu=m68k ;; |
21 | m88*) gdb_target_cpu=m88k ;; | |
22 | mips*) gdb_target_cpu=mips ;; | |
c906108c | 23 | powerpc*) gdb_target_cpu=powerpc ;; |
c906108c SS |
24 | sparc*) gdb_target_cpu=sparc ;; |
25 | thumb*) gdb_target_cpu=arm ;; | |
4009c677 | 26 | s390*) gdb_target_cpu=s390 ;; |
c906108c | 27 | strongarm*) gdb_target_cpu=arm ;; |
7cf6486b | 28 | xscale*) gdb_target_cpu=arm ;; |
c906108c SS |
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 ;; | |
4a1968f4 | 42 | # OBSOLETE a29k-*-kern*) gdb_target=a29k-kern ;; |
c906108c | 43 | a29k-*-none*) gdb_target=a29k ;; |
4a1968f4 | 44 | # OBSOLETE a29k-*-sym1*) gdb_target=ultra3 ;; |
c906108c SS |
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 ;; | |
59c94889 | 50 | alpha*-*-freebsd*) gdb_target=fbsd ;; |
c906108c SS |
51 | |
52 | arc-*-*) gdb_target=arc ;; | |
53 | ||
091be84d | 54 | arm*-wince-pe) gdb_target=wince ;; |
41c49b06 SB |
55 | arm*-*-linux*) gdb_target=linux |
56 | configdirs="$configdirs gdbserver" | |
57 | ;; | |
ed9a39eb JM |
58 | arm*-*-* | thumb*-*-* | strongarm*-*-*) |
59 | gdb_target=embed | |
7be570e7 | 60 | configdirs="$configdirs rdi-share" |
7cf6486b NC |
61 | ;; |
62 | xscale-*-*) gdb_target=embed | |
63 | configdirs="$configdirs rdi-share" | |
7be570e7 | 64 | ;; |
c906108c | 65 | |
29134980 OF |
66 | cris*) gdb_target=cris ;; |
67 | ||
c906108c SS |
68 | d10v-*-*) gdb_target=d10v ;; |
69 | d30v-*-*) gdb_target=d30v ;; | |
70 | ||
71 | h8300-*-*) gdb_target=h8300 ;; | |
72 | h8500-*-*) gdb_target=h8500 ;; | |
73 | ||
0fda6bd2 | 74 | |
c906108c SS |
75 | fr30-*-elf*) gdb_target=fr30 ;; |
76 | ||
adf40b2e | 77 | |
6477a14a C |
78 | hppa*-*-bsd*) gdb_target=hppabsd |
79 | configdirs="${configdirs} gdbserver" ;; | |
c906108c | 80 | hppa*-*-pro*) gdb_target=hppapro ;; |
5ec846f9 | 81 | hppa*64*-*-hpux11*) gdb_target=hppa64 ;; |
c906108c SS |
82 | hppa*-*-hpux*) gdb_target=hppahpux ;; |
83 | hppa*-*-hiux*) gdb_target=hppahpux ;; | |
6477a14a C |
84 | hppa*-*-osf*) gdb_target=hppaosf |
85 | configdirs="${configdirs} gdbserver" ;; | |
c906108c SS |
86 | |
87 | i[3456]86-sequent-bsd*) gdb_target=symmetry ;; | |
88 | i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;; | |
89 | i[3456]86-sequent-sysv*) gdb_target=ptx ;; | |
90 | i[3456]86-ncr-*) gdb_target=ncr3000 ;; | |
7be570e7 JM |
91 | i[3456]86-*-aout*) gdb_target=embed ;; |
92 | i[3456]86-*-coff*) gdb_target=embed ;; | |
93 | i[3456]86-*-elf*) gdb_target=embed ;; | |
c906108c SS |
94 | i[3456]86-*-aix*) gdb_target=i386aix ;; |
95 | i[3456]86-*-bsd*) gdb_target=i386bsd ;; | |
96 | i[3456]86-*-freebsd*) gdb_target=fbsd ;; | |
b0cb5b8d C |
97 | i[3456]86-*-netbsdelf*) gdb_target=nbsdelf |
98 | configdirs="${configdirs} gdbserver" ;; | |
d6e9fb05 JK |
99 | i[3456]86-*-netbsd*) gdb_target=nbsd |
100 | configdirs="${configdirs} gdbserver" ;; | |
c906108c SS |
101 | i[3456]86-*-os9k) gdb_target=i386os9k ;; |
102 | i[3456]86-*-go32*) gdb_target=i386aout ;; | |
7a292a7a | 103 | i[3456]86-*-msdosdjgpp*) gdb_target=go32 ;; |
c906108c SS |
104 | i[3456]86-*-lynxos*) gdb_target=i386lynx |
105 | configdirs="${configdirs} gdbserver" ;; | |
eb7cedd9 | 106 | i[3456]86-*-openbsd*) gdb_target=obsd ;; |
c906108c | 107 | i[3456]86-*-solaris*) gdb_target=i386sol2 ;; |
24f89b68 | 108 | # OBSOLETE i[3456]86-*-sunos*) gdb_target=sun386 ;; |
7a292a7a | 109 | i[3456]86-*-sysv4.2*) gdb_target=i386v42mp ;; |
c906108c | 110 | i[3456]86-*-sysv4*) gdb_target=i386v4 ;; |
7a292a7a | 111 | i[3456]86-*-sysv5*) gdb_target=i386v42mp ;; |
c906108c SS |
112 | i[3456]86-*-unixware2*) gdb_target=i386v42mp ;; |
113 | i[3456]86-*-unixware*) gdb_target=i386v4 ;; | |
114 | i[3456]86-*-sco3.2v4*) gdb_target=i386sco4 ;; | |
115 | i[3456]86-*-sco3.2v5*) gdb_target=i386sco5 ;; | |
116 | i[3456]86-*-sco*) gdb_target=i386v ;; | |
117 | i[3456]86-*-sysv*) gdb_target=i386v ;; | |
118 | i[3456]86-*-linux*) gdb_target=linux | |
119 | configdirs="${configdirs} gdbserver" ;; | |
120 | i[3456]86-pc-linux-gnu) gdb_target=linux | |
121 | configdirs="${configdirs} gdbserver" ;; | |
122 | i[3456]86-*-isc*) gdb_target=i386v ;; | |
123 | i[3456]86-*-mach3*) gdb_target=i386m3 ;; | |
124 | i[3456]86-*-gnu*) gdb_target=i386gnu ;; | |
125 | i[3456]86-*-netware*) gdb_target=i386nw | |
126 | configdirs="${configdirs} nlm" ;; | |
127 | i[3456]86-*-osf1mk*) gdb_target=i386mk ;; | |
128 | i[3456]86-*-cygwin*) gdb_target=cygwin ;; | |
b4fc7a30 | 129 | i[3456]86-*-pe*) gdb_target=embed ;; |
adf40b2e | 130 | i[3456]86-*-vxworks*) gdb_target=vxworks ;; |
7a292a7a | 131 | |
c906108c SS |
132 | i960-*-bout*) gdb_target=vxworks960 ;; |
133 | i960-nindy-coff*) gdb_target=nindy960 ;; | |
134 | i960-*-coff*) gdb_target=mon960 ;; | |
135 | i960-nindy-elf*) gdb_target=nindy960 ;; | |
136 | i960-*-elf*) gdb_target=mon960 ;; | |
c906108c SS |
137 | i960-*-nindy*) gdb_target=nindy960 ;; |
138 | i960-*-vxworks*) gdb_target=vxworks960 ;; | |
139 | ||
596c9d4b | 140 | ia64-*-aix*) gdb_target=aix ;; |
eafb8301 KB |
141 | ia64-*-linux*) gdb_target=linux ;; |
142 | ||
c906108c SS |
143 | m32r-*-elf*) gdb_target=m32r ;; |
144 | ||
78073dd8 AC |
145 | m68hc11*-*-*|m6811*-*-*) gdb_target=m68hc11 ;; |
146 | ||
c906108c SS |
147 | m68000-*-sunos3*) gdb_target=sun2os3 ;; |
148 | m68000-*-sunos4*) gdb_target=sun2os4 ;; | |
149 | ||
150 | m68*-apollo*-bsd*) gdb_target=apollo68b ;; | |
151 | m68*-bull-sysv*) gdb_target=dpx2 ;; | |
152 | m68*-hp-bsd*) gdb_target=hp300bsd ;; | |
153 | m68*-hp-hpux*) gdb_target=hp300hpux ;; | |
c906108c SS |
154 | m68*-att-*) gdb_target=3b1 ;; |
155 | m68*-cisco*-*) gdb_target=cisco ;; | |
156 | m68*-ericsson-*) gdb_target=es1800 ;; | |
514e603d | 157 | # OBSOLETE m68*-isi-*) gdb_target=isi ;; |
c906108c SS |
158 | m68*-motorola-*) gdb_target=delta68 ;; |
159 | m68*-netx-*) gdb_target=vxworks68 ;; | |
514e603d | 160 | # OBSOLETE m68*-sony-*) gdb_target=news ;; |
c906108c | 161 | m68*-tandem-*) gdb_target=st2000 ;; |
514e603d AC |
162 | # OBSOLETE m68*-rom68k-*) gdb_target=monitor ;; |
163 | # OBSOLETE m68*-*bug-*) gdb_target=monitor ;; | |
164 | # OBSOLETE m68*-monitor-*) gdb_target=monitor ;; | |
165 | # OBSOLETE m68*-est-*) gdb_target=monitor ;; | |
c906108c SS |
166 | m68*-*-aout*) gdb_target=monitor ;; |
167 | m68*-*-coff*) gdb_target=monitor ;; | |
168 | m68*-*-elf*) gdb_target=monitor ;; | |
169 | m68*-*-linux*) gdb_target=linux | |
170 | configdirs="${configdirs} gdbserver" ;; | |
171 | m68*-*-lynxos*) gdb_target=m68klynx | |
172 | configdirs="${configdirs} gdbserver" ;; | |
bd2fa4f6 C |
173 | m68*-*-netbsd*) gdb_target=nbsd |
174 | configdirs="${configdirs} gdbserver" ;; | |
c906108c SS |
175 | m68*-*-os68k*) gdb_target=os68k ;; |
176 | m68*-*-sunos3*) gdb_target=sun3os3 ;; | |
6477a14a C |
177 | m68*-*-sunos4*) gdb_target=sun3os4 |
178 | configdirs="${configdirs} gdbserver" ;; | |
c906108c SS |
179 | m68*-*-sysv4*) gdb_target=m68kv4 ;; |
180 | m68*-*-vxworks*) gdb_target=vxworks68 ;; | |
181 | ||
1b594327 | 182 | # OBSOLETE m88*-harris-cxux*) gdb_target=cxux ;; |
c906108c SS |
183 | m88*-motorola-sysv4*) gdb_target=delta88v4 ;; |
184 | m88*-motorola-*) gdb_target=delta88 ;; | |
185 | m88*-*-*) gdb_target=m88k ;; | |
186 | ||
96baa820 | 187 | mcore*-*-*) gdb_target=mcore ;; |
c906108c SS |
188 | mips64*-big-*) gdb_target=bigmips64 ;; |
189 | mips*-big-*) gdb_target=bigmips ;; | |
190 | mips*-dec-mach3*) gdb_target=mach3 ;; | |
191 | mips*-dec-*) gdb_target=decstation ;; | |
091be84d | 192 | mips*-*-pe) gdb_target=wince ;; |
c906108c SS |
193 | mips64*el-*-ecoff*) gdb_target=embedl64 ;; |
194 | mips64*-*-ecoff*) gdb_target=embed64 ;; | |
c2d11a7d JM |
195 | mips64*vr4xxx*el-*-elf*)gdb_target=vr4xxxel ;; |
196 | mips64*vr4xxx*-*-elf*) gdb_target=vr4xxx ;; | |
c906108c SS |
197 | mips64*vr4300*el-*-elf*) gdb_target=vr4300el ;; |
198 | mips64*vr4300*-*-elf*) gdb_target=vr4300 ;; | |
199 | mips64*vr4100*el-*-elf*) gdb_target=vr4300el ;; | |
200 | mips64*vr4100*-*-elf*) gdb_target=vr4100 ;; | |
201 | mips64*vr5000*el-*-elf*) gdb_target=vr5000el ;; | |
202 | mips64*vr5000*-*-elf*) gdb_target=vr5000 | |
203 | configdirs="${configdirs} gdbserver" ;; | |
204 | mips*tx39*el*-elf*) gdb_target=tx39l ;; | |
205 | mips*tx39*-elf*) gdb_target=tx39 ;; | |
206 | mips64*el-*-elf*) gdb_target=embedl64 ;; | |
207 | mips64*-*-elf*) gdb_target=embed64 ;; | |
208 | mips*el-*-ecoff*) gdb_target=embedl ;; | |
209 | mips*-*-ecoff*) gdb_target=embed ;; | |
210 | mips*el-*-elf*) gdb_target=embedl ;; | |
211 | mips*-*-elf*) gdb_target=embed ;; | |
212 | mips*-little-*) gdb_target=littlemips ;; | |
213 | mips*-*-lnews*) gdb_target=embedl ;; | |
214 | mips*-sgi-irix5*) gdb_target=irix5 ;; | |
1d06468c | 215 | mips*-sgi-irix6*) gdb_target=irix6 ;; |
c906108c SS |
216 | mips*-sgi-*) gdb_target=irix3 ;; |
217 | mips*-sony-*) gdb_target=bigmips ;; | |
2aa830e4 | 218 | mips*-*-linux*) gdb_target=linux ;; |
c906108c SS |
219 | mips*-*-mach3*) gdb_target=mipsm3 ;; |
220 | mips*-*-sysv4*) gdb_target=mipsv4 ;; | |
221 | mips*-*-sysv*) gdb_target=bigmips ;; | |
222 | mips*-*-riscos*) gdb_target=bigmips ;; | |
223 | mips*-*-vxworks*) gdb_target=vxmips ;; | |
224 | ||
225 | mn10200-*-*) gdb_target=mn10200 ;; | |
226 | mn10300-*-*) gdb_target=mn10300 ;; | |
227 | ||
228 | none-*-*) gdb_target=none ;; | |
229 | ||
bb19ff3b | 230 | # OBSOLETE ns32k-*-mach3*) gdb_target=ns32km3 ;; |
bd2fa4f6 C |
231 | ns32k-*-netbsd*) gdb_target=nbsd |
232 | configdirs="${configdirs} gdbserver" ;; | |
bb19ff3b AC |
233 | # OBSOLETE ns32k-utek-sysv*) gdb_target=merlin ;; |
234 | # OBSOLETE ns32k-utek-*) gdb_target=umax ;; | |
c906108c | 235 | |
c906108c | 236 | powerpc-*-macos*) gdb_target=macos ;; |
9cebe72f C |
237 | powerpc-*-netbsd*) gdb_target=nbsd |
238 | configdirs="${configdirs} gdbserver" ;; | |
1b2b2c16 AC |
239 | # OBSOLETE powerpc-*-netware*) gdb_target=ppc-nw |
240 | # OBSOLETE configdirs="${configdirs} nlm" ;; | |
c906108c SS |
241 | |
242 | powerpc-*-aix*) gdb_target=aix ;; | |
1b2b2c16 AC |
243 | # OBSOLETE powerpcle-*-cygwin*) gdb_target=cygwin ;; |
244 | # OBSOLETE powerpcle-*-solaris*) gdb_target=solaris ;; | |
2559291b | 245 | powerpc-*-eabi* | powerpc-*-sysv* | powerpc-*-elf*) |
c906108c SS |
246 | if test -f ../sim/ppc/Makefile; then |
247 | gdb_target=ppc-sim | |
248 | else | |
249 | gdb_target=ppc-eabi | |
250 | fi ;; | |
251 | powerpcle-*-eabi* | powerpcle-*-sysv* | powerpcle-*-elf*) | |
252 | if test -f ../sim/ppc/Makefile; then | |
253 | gdb_target=ppcle-sim | |
254 | else | |
255 | gdb_target=ppcle-eabi | |
256 | fi ;; | |
2559291b | 257 | powerpc-*-linux*) gdb_target=linux ;; |
adf40b2e | 258 | powerpc-*-vxworks*) gdb_target=vxworks ;; |
c906108c | 259 | |
6477a14a C |
260 | rs6000-*-lynxos*) gdb_target=rs6000lynx |
261 | configdirs="${configdirs} gdbserver" ;; | |
c906108c SS |
262 | rs6000-*-aix4*) gdb_target=aix4 ;; |
263 | rs6000-*-*) gdb_target=rs6000 ;; | |
264 | ||
4009c677 AC |
265 | s390-*-*) gdb_target=s390 ;; |
266 | s390x-*-*) gdb_target=s390x ;; | |
267 | ||
091be84d | 268 | sh*-*-pe) gdb_target=wince ;; |
10214f55 C |
269 | sh-*-hms) gdb_target=embed ;; |
270 | sh-*-coff*) gdb_target=embed ;; | |
271 | sh-*-elf*) gdb_target=embed ;; | |
272 | sh-*-linux*) gdb_target=linux ;; | |
cce74817 | 273 | |
c906108c SS |
274 | sparc-*-aout*) gdb_target=sparc-em ;; |
275 | sparc-*-coff*) gdb_target=sparc-em ;; | |
276 | sparc-*-elf*) gdb_target=sparc-em ;; | |
277 | sparc-*-linux*) gdb_target=linux ;; | |
278 | sparc-*-lynxos*) gdb_target=sparclynx | |
279 | configdirs="${configdirs} gdbserver" ;; | |
280 | sparc-*-netbsd*) gdb_target=nbsd ;; | |
281 | sparc-*-solaris2*) gdb_target=sun4sol2 ;; | |
6477a14a C |
282 | sparc-*-sunos4*) gdb_target=sun4os4 |
283 | configdirs="${configdirs} gdbserver" ;; | |
c906108c SS |
284 | sparc-*-sunos5*) gdb_target=sun4sol2 ;; |
285 | sparc-*-vxworks*) gdb_target=vxsparc ;; | |
286 | sparc-*-*) gdb_target=sun4os4 ;; | |
287 | sparclet-*-*) gdb_target=sparclet;; | |
288 | sparclite-*-*) gdb_target=sparclite ;; | |
289 | sparc86x-*-*) gdb_target=sparclite ;; | |
290 | # It's not clear what the right solution for "v8plus" systems is yet. | |
291 | # For now, stick with sparc-sun-solaris2 since that's what config.guess | |
292 | # should return. Work is still needed to get gdb to print the 64 bit | |
293 | # regs (some of which are usable in v8plus) so sp64sol.mt hasn't been | |
294 | # deleted though presumably it should be eventually. | |
295 | #sparc64-*-solaris2*) gdb_target=sp64sol2 ;; | |
86168def | 296 | sparc64-*-linux*) gdb_target=sp64linux ;; |
c906108c SS |
297 | sparc64-*-*) gdb_target=sp64 ;; |
298 | ||
c906108c SS |
299 | vax-*-*) gdb_target=vax ;; |
300 | ||
301 | fr30-*-*) gdb_target=fr30 | |
302 | ;; | |
303 | ||
304 | v850*-*-*) gdb_target=v850 | |
cce74817 JM |
305 | case ${gdb_host} in |
306 | cygwin*) | |
307 | CONFIG_OBS="${CONFIG_OBS} v850ice.o" ;; | |
308 | * ) ;; | |
309 | esac | |
c906108c SS |
310 | ;; |
311 | ||
c906108c SS |
312 | z8k-*-coff*) gdb_target=z8k ;; |
313 | ||
314 | esac | |
2acceee2 | 315 | |
78073dd8 AC |
316 | |
317 | # map GDB target onto multi-arch support | |
318 | ||
319 | case "${gdb_target}" in | |
29134980 | 320 | cris) gdb_multi_arch=yes ;; |
21624696 | 321 | d10v) gdb_multi_arch=yes ;; |
78073dd8 | 322 | m68hc11) gdb_multi_arch=yes ;; |
6ca173e3 | 323 | mn10300) gdb_multi_arch=yes ;; |
78073dd8 | 324 | esac |