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 ;;
73 case "${host_vendor}" in
74 sony) gdb_host=news1000 ;;
79 case "${host_vendor}" in
80 sony) gdb_host=bigmips ;;
81 dec) gdb_host=decstation ;;
82 little) gdb_host=littlemips ;;
85 sysv) gdb_host=irix3 ;;
86 irix4) gdb_host=irix4 ;;
97 case "${host_vendor}" in
98 sun) gdb_host=sun386 ;;
99 sco) gdb_host=i386sco ;;
100 sequent) gdb_host=symmetry ;;
103 sysv32) gdb_host=i386v32 ;;
104 sysv4*) gdb_host=i386v4 ;;
105 sysv*) gdb_host=i386v ;;
106 scosysv*) gdb_host=i386sco ;;
107 mach) gdb_host=i386mach ;;
113 c1 | c2) gdb_host=convex ;;
116 case "${host_vendor}" in
117 umax) gdb_host=umax ;;
134 case "${host_vendor}" in
151 arm | merlin | none | np1 | pn | pyramid | tahoe)
163 if [ ! -f ${srcdir}/config/mh-${gdb_host} ]; then
164 echo '***' "Gdb does not support host ${host}" 1>&2
168 # We really shouldn't depend on there being a space after XM_FILE= ...
169 hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <${srcdir}/config/mh-${gdb_host}`
173 case "${target_cpu}" in
176 case "${target_vendor}" in
177 att) gdb_target=3b1 ;;
178 altos) gdb_target=altos ;;
181 amigados) gdb_host=amigados ;;
182 sysv4*) gdb_target=amix ;;
186 case "${target_os}" in
187 bsd) gdb_target=hp300bsd ;;
188 hpux) gdb_target=hp300hpux ;;
192 case "${target_os}" in
193 sunos3) gdb_target=sun3os3 ;;
194 sunos4) gdb_target=sun3os4 ;;
195 *) gdb_target=sun3 ;;
198 wrs) gdb_target=vxworks68 ;;
199 isi) gdb_target=isi ;;
200 sony) gdb_target=news ;;
202 case "${target_os}" in
203 os68k) gdb_target=os68k ;;
208 case "${target_vendor}" in
210 case "${target_os}" in
211 sunos3) gdb_target=sun2os3 ;;
212 sunos4) gdb_target=sun2os4 ;;
213 *) gdb_target=sun2 ;;
219 case "${target_vendor}" in
220 sony) gdb_target=news1000 ;;
224 none | arm | tahoe | vax | np1 | pn | np1 | pn | pyramid | merlin)
225 gdb_target=${target_cpu} ;;
228 case "${target_vendor}" in
229 motorola) gdb_target=delta88 ;;
230 *) gdb_target=dgux ;;
234 case "${target_os}" in
235 none|aout|coff) gdb_target=a29k ;;
236 sym1) gdb_target=ultra3 ;;
237 kern) gdb_target=a29k-kern ;;
238 ebmon) gdb_target=a29k;;
243 case "${target_vendor}" in
244 sony) gdb_target=bigmips ;;
245 big) gdb_target=bigmips ;;
246 dec) gdb_target=decstation ;;
247 little) gdb_target=littlemips ;;
248 sgi) gdb_target=irix3 ;;
252 c1 | c2) gdb_target=convex ;;
255 case "${target_vendor}" in
257 case "${target_os}" in
258 sunos3) gdb_target=sun4os3 ;;
259 sunos4) gdb_target=sun4os4 ;;
260 *) gdb_target=sun4 ;;
270 i860) gdb_target=stratus
274 case "${target_vendor}" in
275 sco) gdb_target=i386sco ;;
276 sun) gdb_target=sun386 ;;
277 sequent) gdb_target=symmetry ;;
279 case "${target_os}" in
280 sysv32) gdb_target=i386v32 ;;
281 scosysv3*) gdb_target=i386v32 ;;
282 sysv4*) gdb_target=i386v4 ;;
283 sysv*) gdb_target=i386v ;;
284 mach) gdb_target=i386mach ;;
285 coff) gdb_target=i386v ;;
286 aout) gdb_target=i386aout ;;
292 case "${target_vendor}" in
293 bout | wrs) gdb_target=vxworks960 ;;
294 coff | intel) gdb_target=nindy960 ;;
299 case "${target_vendor}" in
300 utek) gdb_target=umax ;;
308 ### unhandled targets
315 if [ ! -f ${srcdir}/config/mt-${gdb_target} ]; then
316 echo '***' "Gdb does not support target ${target}" 1>&2
320 if [ -z "${removing}" ] ; then
321 cat ${srcdir}/config/mh-${gdb_host} ${srcdir}/config/mt-${gdb_target} | awk '$1 == "#msg" {
325 # We really shouldn't depend on there being a space after TM_FILE= ...
326 targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/config/mt-${gdb_target}`
328 host_makefile_frag=config/mh-${gdb_host}
329 target_makefile_frag=config/mt-${gdb_target}
331 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) is not set in the
332 # ?config/* file, we don't make the corresponding links. But we have
333 # to remove the xm.h files and tm.h files anyway, e.g. when switching
334 # from "configure host" to "configure none".
338 if [ "${hostfile}" != "" ]; then
339 files="${files} ${hostfile}"
340 links="${links} xm.h"
343 if [ "${targetfile}" != "" ]; then
344 files="${files} ${targetfile}"
345 links="${links} tm.h"
354 grep -s "source ${srcdir}/.gdbinit" .gdbinit 2>/dev/null || \
355 echo "source ${srcdir}/.gdbinit" >> .gdbinit
358 cat ${srcdir}/alldeps.mak ${srcdir}/depend >>Makefile