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