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