# gdb_osabi default OS ABI to use with target
# build_gdbserver set to "yes" if gdbserver supports target
-case $target in
+case $targ in
d10v-*-* | \
hppa*-*-hiux* | \
i[34567]86-ncr-* | \
rs6000-*-lynxos* | \
sh*-*-pe | \
null)
- echo "*** Configuration $target is obsolete." >&2
+ echo "*** Configuration $targ is obsolete." >&2
echo "*** Support has been REMOVED." >&2
exit 1
;;
# map target info into gdb names.
-case "${target}" in
+case "${targ}" in
alpha*-*-osf*)
# Target: Little-endian Alpha running OSF/1
gdb_target_obs="hppa-tdep.o hppa-linux-tdep.o glibc-tdep.o \
solib.o solib-svr4.o symfile-mem.o"
;;
+hppa*-*-netbsd*)
+ # Target: NetBSD/hppa
+ gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppanbsd-tdep.o \
+ corelow.o solib.o solib-svr4.o"
+ ;;
hppa*-*-openbsd*)
# Target: OpenBSD/hppa
- gdb_target_obs="hppa-tdep.o hppabsd-tdep.o \
+ gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppaobsd-tdep.o \
corelow.o solib.o solib-svr4.o"
;;
hppa*-*-*)
gdb_target_obs="hppa-tdep.o"
;;
+i[34567]86-*-dicos*)
+ # Target: DICOS/i386
+ gdb_target_obs="i386-tdep.o i387-tdep.o \
+ i386-dicos-tdep.o \
+ corelow.o solib.o solib-target.o"
+ ;;
i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
# Target: FreeBSD/i386
gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
gdb_target_obs="score-tdep.o"
;;
-# FIXME should that be sh*-*-linux*, perhaps?
-sh-*-linux*)
+sh*-*-linux*)
# Target: GNU/Linux Super-H
gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o monitor.o \
- dsrec.o solib.o solib-svr4.o symfile-mem.o"
+ dsrec.o solib.o solib-svr4.o symfile-mem.o glibc-tdep.o"
gdb_sim=../sim/sh/libsim.a
build_gdbserver=yes
;;
gdb_target_obs="vax-tdep.o"
;;
+x86_64-*-dicos*)
+ # Target: DICOS/x86-64
+ gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
+ i386-dicos-tdep.o \
+ corelow.o solib.o solib-target.o"
+ ;;
x86_64-*-linux*)
# Target: GNU/Linux x86-64
gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o i386-tdep.o \
i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
bsd-uthread.o corelow.o solib.o solib-svr4.o"
;;
-
+xtensa*-*-linux*) gdb_target=linux
+ # Target: GNU/Linux Xtensa
+ gdb_target_obs="xtensa-tdep.o xtensa-config.o xtensa-linux-tdep.o \
+ solib.o solib-svr4.o corelow.o symfile-mem.o"
+ build_gdbserver=yes
+ ;;
xtensa*)
# Target: Tensilica Xtensa processors
- gdb_target_obs="xtensa-tdep.o xtensa-config.o"
+ gdb_target_obs="xtensa-tdep.o xtensa-config.o solib.o solib-svr4.o"
;;
esac
# map target onto default OS ABI
-case "${target}" in
+case "${targ}" in
*-*-freebsd*) gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
*-*-linux*) gdb_osabi=GDB_OSABI_LINUX ;;
*-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
*-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;;
*-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below
*-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;;
+*-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
+*-*-mingw* | *-*-cygwin*)
+ gdb_osabi=GDB_OSABI_CYGWIN ;;
+*-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
esac