8 # map host info into gdb names.
13 case "${host_vendor}" in
16 sysv*) gdb_host=apollo68v ;;
22 gas) gdb_host=altosgas ;;
29 amigados) gdb_host=amigados ;;
30 sysv4*) gdb_host=amix ;;
36 hpux) gdb_host=hp300hpux ;;
37 bsd) gdb_host=hp300bsd ;;
42 sony) gdb_host=news ;;
45 sunos3) gdb_host=sun3os3 ;;
46 sunos4) gdb_host=sun3os4 ;;
54 case "${host_vendor}" in
57 sunos3) gdb_host=sun2os3 ;;
58 sunos4) gdb_host=sun2os4 ;;
66 sunos3) gdb_host=sun4os3 ;;
67 sunos4) gdb_host=sun4os4 ;;
68 solaris2*) gdb_host=sun4sol2 ;;
74 case "${host_vendor}" in
75 sony) gdb_host=news1000 ;;
80 case "${host_vendor}" in
81 sony) gdb_host=bigmips ;;
82 dec) gdb_host=decstation ;;
83 little) gdb_host=littlemips ;;
86 irix3) gdb_host=irix3 ;;
87 irix4) gdb_host=irix4 ;;
98 case "${host_vendor}" in
99 sun) gdb_host=sun386 ;;
100 sco) gdb_host=i386sco ;;
101 sequent) gdb_host=symmetry ;;
102 ncr) gdb_host=ncr3000 ;;
105 go32) gdb_host=go32 ;;
106 sysv32) gdb_host=i386v32 ;;
107 sysv4*) gdb_host=i386v4 ;;
108 sysv*) gdb_host=i386v ;;
109 scosysv*) gdb_host=i386sco ;;
110 mach) gdb_host=i386mach ;;
116 c1 | c2) gdb_host=convex ;;
119 case "${host_vendor}" in
120 umax) gdb_host=umax ;;
137 case "${host_vendor}" in
154 arm | merlin | none | np1 | pn | pyramid | tahoe)
159 case "${host_vendor}" in
162 hpux) gdb_host=hppahpux ;;
163 bsd) gdb_host=hppabsd ;;
177 if [ ! -f ${srcdir}/config/${gdb_host}.mh ]; then
178 echo '***' "Gdb does not support host ${host}" 1>&2
182 # We really shouldn't depend on there being a space after XM_FILE= ...
183 hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <${srcdir}/config/${gdb_host}.mh`
187 case "${target_cpu}" in
190 case "${target_vendor}" in
191 att) gdb_target=3b1 ;;
192 altos) gdb_target=altos ;;
195 amigados) gdb_host=amigados ;;
196 sysv4*) gdb_target=amix ;;
200 case "${target_os}" in
201 bsd) gdb_target=hp300bsd ;;
202 hpux) gdb_target=hp300hpux ;;
206 case "${target_os}" in
207 sunos3) gdb_target=sun3os3 ;;
208 sunos4) gdb_target=sun3os4 ;;
209 *) gdb_target=sun3 ;;
212 wrs) gdb_target=vxworks68 ;;
213 isi) gdb_target=isi ;;
214 sony) gdb_target=news ;;
216 case "${target_os}" in
217 os68k) gdb_target=os68k ;;
222 case "${target_vendor}" in
224 case "${target_os}" in
225 sunos3) gdb_target=sun2os3 ;;
226 sunos4) gdb_target=sun2os4 ;;
227 *) gdb_target=sun2 ;;
230 wrs) gdb_target=vxworks68 ;;
235 case "${target_vendor}" in
236 wrs) gdb_target=vxworks68 ;;
241 case "${target_vendor}" in
242 sony) gdb_target=news1000 ;;
243 wrs) gdb_target=vxworks68 ;;
248 case "${target_vendor}" in
249 tandem) gdb_target=st2000 ;;
253 none | arm | tahoe | vax | np1 | pn | np1 | pn | pyramid | merlin)
254 gdb_target=${target_cpu} ;;
257 case "${target_vendor}" in
258 motorola) gdb_target=delta88 ;;
259 *) gdb_target=dgux ;;
263 case "${target_os}" in
264 none|aout|coff) gdb_target=a29k ;;
265 sym1) gdb_target=ultra3 ;;
266 kern) gdb_target=a29k-kern ;;
267 ebmon) gdb_target=a29k;;
268 udi) gdb_target=a29k-udi;;
273 case "${target_vendor}" in
274 sony) gdb_target=bigmips ;;
275 big) gdb_target=bigmips ;;
276 dec) gdb_target=decstation ;;
277 little) gdb_target=littlemips ;;
278 sgi) gdb_target=irix3 ;;
282 c1 | c2) gdb_target=convex ;;
285 case "${target_vendor}" in
287 case "${target_os}" in
288 sunos3) gdb_target=sun4os3 ;;
289 sunos4) gdb_target=sun4os4 ;;
290 solaris2*) gdb_target=sun4sol2 ;;
291 *) gdb_target=sun4 ;;
301 i860) gdb_target=stratus
305 case "${target_vendor}" in
306 sco) gdb_target=i386sco ;;
307 sun) gdb_target=sun386 ;;
308 sequent) gdb_target=symmetry ;;
309 ncr) gdb_target=ncr3000 ;;
311 case "${target_os}" in
312 sysv32) gdb_target=i386v32 ;;
313 scosysv3*) gdb_target=i386v32 ;;
314 sysv4*) gdb_target=i386v4 ;;
315 sysv*) gdb_target=i386v ;;
316 mach) gdb_target=i386mach ;;
317 coff) gdb_target=i386v ;;
318 aout) gdb_target=i386aout ;;
324 case "${target_vendor}" in
325 bout | wrs) gdb_target=vxworks960 ;;
326 coff | intel) gdb_target=nindy960 ;;
331 case "${target_vendor}" in
332 utek) gdb_target=umax ;;
341 case "${target_vendor}" in
343 case "${target_os}" in
344 hpux) gdb_target=hppahpux ;;
345 bsd) gdb_target=hppabsd ;;
351 ### unhandled targets
358 if [ ! -f ${srcdir}/config/${gdb_target}.mt ]; then
359 echo '***' "Gdb does not support target ${target}" 1>&2
363 if [ -z "${removing}" ] ; then
364 cat ${srcdir}/config/${gdb_host}.mh ${srcdir}/config/${gdb_target}.mt | awk '$1 == "#msg" {
368 # We really shouldn't depend on there being a space after TM_FILE= ...
369 targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/config/${gdb_target}.mt`
371 host_makefile_frag=config/${gdb_host}.mh
372 target_makefile_frag=config/${gdb_target}.mt
374 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) is not set in the
375 # ?config/* file, we don't make the corresponding links. But we have
376 # to remove the xm.h files and tm.h files anyway, e.g. when switching
377 # from "configure host" to "configure none".
381 if [ "${hostfile}" != "" ]; then
382 files="${files} ${hostfile}"
383 links="${links} xm.h"
386 if [ "${targetfile}" != "" ]; then
387 files="${files} ${targetfile}"
388 links="${links} tm.h"
397 grep -s "source ${srcdir}/.gdbinit" .gdbinit 2>/dev/null || \
398 echo "source ${srcdir}/.gdbinit" >> .gdbinit
401 cat ${srcdir}/alldeps.mak ${srcdir}/depend >>Makefile