Commit | Line | Data |
---|---|---|
c906108c SS |
1 | # Mapping of configurations into GDB host definitions. This is |
2 | # invoked from the autoconf generated configure script. | |
3 | ||
4 | # This file sets the following shell variables: | |
5 | # gdb_host_cpu generic name of host's CPU | |
6 | # gdb_host name of GDB host definition to use | |
7 | ||
8 | # Map host cpu into the config cpu subdirectory name. | |
9 | # The default is $host_cpu. | |
10 | ||
11 | case "${host_cpu}" in | |
12 | ||
13 | alpha*) gdb_host_cpu=alpha ;; | |
f2ae7829 | 14 | arm*) gdb_host_cpu=arm ;; |
c906108c | 15 | hppa*) gdb_host_cpu=pa ;; |
1581182a | 16 | i[34567]86*) gdb_host_cpu=i386 ;; |
c906108c | 17 | m68*) gdb_host_cpu=m68k ;; |
bf2ca189 | 18 | m88*) gdb_host_cpu=m88k ;; |
2aa830e4 | 19 | mips*) gdb_host_cpu=mips ;; |
c906108c | 20 | powerpc*) gdb_host_cpu=powerpc ;; |
ea87b71b | 21 | sparcv9 | sparc64) gdb_host_cpu=sparc ;; |
4009c677 | 22 | s390*) gdb_host_cpu=s390 ;; |
13a38d45 | 23 | sh*) gdb_host_cpu=sh ;; |
abf22e64 | 24 | x86_64*) gdb_host_cpu=i386 ;; |
7a76ced5 | 25 | xscale*) gdb_host_cpu=arm ;; |
ee84457a | 26 | m32r*) gdb_host_cpu=m32r ;; |
c906108c SS |
27 | *) gdb_host_cpu=$host_cpu ;; |
28 | ||
29 | esac | |
30 | ||
31 | # map host info into gdb names. | |
32 | ||
33 | case "${host}" in | |
34 | ||
c906108c SS |
35 | alpha*-*-osf1*) gdb_host=alpha-osf1 ;; |
36 | alpha*-*-osf2*) gdb_host=alpha-osf2 ;; | |
37 | alpha*-*-osf[3456789]*) gdb_host=alpha-osf3 ;; | |
38 | alpha*-*-linux*) gdb_host=alpha-linux ;; | |
59c94889 | 39 | alpha*-*-freebsd*) gdb_host=fbsd ;; |
da8ca43d | 40 | alpha*-*-netbsd*) gdb_host=nbsd ;; |
2031c21a | 41 | alpha*-*-openbsd*) gdb_host=nbsd ;; |
c906108c | 42 | |
f2ae7829 | 43 | arm*-*-linux*) gdb_host=linux ;; |
9eeef8ef JT |
44 | arm*-*-netbsdelf*) gdb_host=nbsdelf ;; |
45 | arm*-*-netbsd*) gdb_host=nbsdaout ;; | |
c906108c | 46 | |
c906108c SS |
47 | hppa*-*-hiux*) gdb_host=hppahpux ;; |
48 | hppa*-*-hpux10.20) gdb_host=hpux1020 ;; | |
5ec846f9 | 49 | hppa*64*-*-hpux11*) gdb_host=hpux11w ;; |
f2ae7829 | 50 | hppa*-*-hpux11*) gdb_host=hpux11 ;; |
c906108c | 51 | hppa*-*-hpux*) gdb_host=hppahpux ;; |
50306a9d | 52 | hppa*-*-linux*) gdb_host=linux ;; |
c906108c | 53 | |
1581182a | 54 | i[34567]86-ncr-*) gdb_host=ncr3000 ;; |
1581182a | 55 | i[34567]86-*-dgux*) gdb_host=i386v4 ;; |
48184fd4 AC |
56 | i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu) |
57 | gdb_host=fbsd ;; | |
58 | i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu) | |
59 | gdb_host=nbsdelf ;; | |
1581182a | 60 | i[34567]86-*-freebsd*) gdb_host=fbsd ;; |
1581182a MK |
61 | i[34567]86-*-netbsd*) gdb_host=nbsdaout ;; |
62 | i[34567]86-*-go32*) gdb_host=go32 ;; | |
63 | i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;; | |
64 | i[34567]86-*-linux*) gdb_host=linux ;; | |
65 | i[34567]86-*-lynxos*) gdb_host=i386lynx ;; | |
66 | i[34567]86-*-gnu*) gdb_host=i386gnu ;; | |
61bb466e | 67 | i[3456]86-*-nto*) gdb_host=nto ;; |
ba361932 MK |
68 | i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3]) |
69 | gdb_host=obsdaout ;; | |
1581182a MK |
70 | i[34567]86-*-openbsd*) gdb_host=obsd ;; |
71 | i[34567]86-*-sco3.2v5*) gdb_host=i386sco5 ;; | |
72 | i[34567]86-*-sco3.2v4*) gdb_host=i386sco4 ;; | |
73 | i[34567]86-*-sco*) gdb_host=i386sco ;; | |
74 | i[34567]86-*-solaris*) gdb_host=i386sol2 ;; | |
75 | i[34567]86-*-sysv4.2*) gdb_host=i386v42mp ;; | |
76 | i[34567]86-*-sysv4*) gdb_host=i386v4 ;; | |
77 | i[34567]86-*-sysv5*) gdb_host=i386v42mp ;; | |
78 | i[34567]86-*-unixware2*) gdb_host=i386v42mp ;; | |
79 | i[34567]86-*-unixware*) gdb_host=i386v4 ;; | |
80 | i[34567]86-*-sysv*) gdb_host=i386v ;; | |
81 | i[34567]86-*-isc*) gdb_host=i386v ;; | |
82 | i[34567]86-*-cygwin*) gdb_host=cygwin ;; | |
eafb8301 | 83 | |
596c9d4b | 84 | ia64-*-aix*) gdb_host=aix ;; |
eafb8301 KB |
85 | ia64-*-linux*) gdb_host=linux ;; |
86 | ||
c906108c | 87 | m68*-*-linux*) gdb_host=linux ;; |
827f338d | 88 | m68*-*-netbsdelf*) gdb_host=nbsdelf ;; |
9eeef8ef | 89 | m68*-*-netbsd*) gdb_host=nbsdaout ;; |
8f2d3ea0 | 90 | m68*-*-openbsd*) gdb_host=obsd ;; |
3c7012f5 | 91 | |
bf2ca189 MK |
92 | m88*-*-openbsd*) gdb_host=obsd ;; |
93 | ||
c906108c | 94 | mips-sgi-irix5*) gdb_host=irix5 ;; |
1d06468c | 95 | mips-sgi-irix6*) gdb_host=irix6 ;; |
2aa830e4 | 96 | mips*-*-linux*) gdb_host=linux ;; |
45888261 | 97 | mips*-*-netbsd*) gdb_host=nbsd ;; |
c906108c | 98 | |
9eeef8ef | 99 | ns32k-*-netbsd*) gdb_host=nbsdaout ;; |
c906108c | 100 | |
c41669e0 KB |
101 | powerpc-*-aix3*) gdb_host=aix ;; |
102 | powerpc-*-aix4.[0-2]*) gdb_host=aix ;; | |
103 | powerpc-*-aix4.3.[0-1]*) gdb_host=aix ;; | |
104 | powerpc-*-aix*) gdb_host=aix432 ;; | |
c906108c | 105 | powerpc-*-linux*) gdb_host=linux ;; |
e42180d7 | 106 | powerpc-*-netbsd*) gdb_host=nbsd ;; |
d195bc9f | 107 | powerpc-*-openbsd*) gdb_host=obsd ;; |
c906108c | 108 | |
8fbb30b1 JB |
109 | powerpc64-*-linux*) gdb_host=ppc64-linux ;; |
110 | ||
c906108c SS |
111 | rs6000-*-lynxos*) gdb_host=rs6000lynx ;; |
112 | rs6000-*-aix4*) gdb_host=aix4 ;; | |
113 | rs6000-*-*) gdb_host=rs6000 ;; | |
114 | ||
4009c677 AC |
115 | s390*-*-*) gdb_host=s390 ;; |
116 | ||
13a38d45 JT |
117 | sh*-*-netbsdelf*) gdb_host=nbsd ;; |
118 | ||
386c036b | 119 | sparc64-*-freebsd*) gdb_host=fbsd ;; |
c906108c | 120 | sparc-*-linux*) gdb_host=linux ;; |
386c036b | 121 | sparc64-*-linux*) gdb_host=linux64 ;; |
f2ae7829 | 122 | sparc-*-netbsdelf*) gdb_host=nbsdelf ;; |
9eeef8ef JT |
123 | sparc-*-netbsdaout*) gdb_host=nbsdaout ;; |
124 | sparc-*-netbsd*) gdb_host=nbsdaout ;; | |
9ce5c36a | 125 | sparc64-*-netbsd*) gdb_host=nbsd64 ;; |
f2cab569 MK |
126 | sparc-*-openbsd*) gdb_host=nbsdelf ;; |
127 | sparc64-*-openbsd*) gdb_host=nbsd64 ;; | |
386c036b MK |
128 | sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*) |
129 | gdb_host=sol2 | |
130 | ;; | |
c906108c | 131 | |
6f606e1c MK |
132 | vax-*-netbsdelf*) gdb_host=nbsdelf ;; |
133 | vax-*-netbsd*) gdb_host=nbsdaout ;; | |
9f076e7a | 134 | vax-*-openbsd*) gdb_host=obsd ;; |
c906108c SS |
135 | vax-*-bsd*) gdb_host=vaxbsd ;; |
136 | vax-*-ultrix2*) gdb_host=vaxult2 ;; | |
137 | vax-*-ultrix*) gdb_host=vaxult ;; | |
138 | ||
9c1488cb | 139 | x86_64-*-linux*) gdb_host=linux64 ;; |
68cc0bfb | 140 | x86_64-*-freebsd*) gdb_host=fbsd64 ;; |
cced5e27 | 141 | x86_64-*-netbsd*) gdb_host=nbsd64 ;; |
e2879ccb | 142 | x86_64-*-openbsd*) gdb_host=obsd64 ;; |
abf22e64 | 143 | |
ee84457a AC |
144 | m32r*-*-linux*) gdb_host=linux ;; |
145 | ||
c906108c | 146 | esac |