# gdb_sim simulator library for target
# gdb_osabi default OS ABI to use with target
# build_gdbserver set to "yes" if gdbserver supports target
+# gdb_have_gcore set to "true"/"false" if this target can run gcore
# NOTE: Every file added to a gdb_target_obs variable for any target here
# must also be added to either ALL_TARGET_OBS or ALL_64_TARGET_OBS
# map target info into gdb names.
case "${targ}" in
+aarch64*-*-elf)
+ # Target: AArch64 embedded system
+ gdb_target_obs="aarch64-tdep.o aarch64-newlib-tdep.o"
+ ;;
+
+aarch64*-*-linux*)
+ # Target: AArch64 linux
+ gdb_target_obs="aarch64-tdep.o aarch64-linux-tdep.o \
+ glibc-tdep.o linux-tdep.o solib-svr4.o \
+ symfile-mem.o"
+ build_gdbserver=yes
+ ;;
alpha*-*-osf*)
# Target: Little-endian Alpha running OSF/1
cris*)
# Target: CRIS
- gdb_target_obs="cris-tdep.o solib-svr4.o"
+ gdb_target_obs="cris-tdep.o cris-linux-tdep.o linux-tdep.o solib-svr4.o"
;;
frv-*-*)
gdb_sim=../sim/frv/libsim.a
;;
-moxie-*-elf)
+moxie-*-elf | moxie-*-rtems*)
gdb_target_obs="moxie-tdep.o"
gdb_sim=../sim/moxie/libsim.a
;;
gdb_sim=../sim/mn10300/libsim.a
;;
+msp430*-*-elf)
+ gdb_target_obs="msp430-tdep.o"
+ gdb_sim=../sim/msp430/libsim.a
+ ;;
+
mt-*-*)
# Target: Morpho Technologies ms1 processor
gdb_target_obs="mt-tdep.o"
;;
+nios2*-*-linux*)
+ # Target: Altera Nios II running Linux
+ gdb_target_obs="nios2-tdep.o nios2-linux-tdep.o solib-svr4.o \
+ symfile-mem.o glibc-tdep.o linux-tdep.o"
+ ;;
+
+nios2*-*-*)
+ # Target: Altera Nios II bare-metal
+ gdb_target_obs="nios2-tdep.o"
+ ;;
+
+powerpc*-*-freebsd*)
+ # Target: FreeBSD/powerpc
+ gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
+ ppcfbsd-tdep.o solib-svr4.o \
+ ravenscar-thread.o ppc-ravenscar-thread.o"
+ ;;
+
powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
# Target: NetBSD/powerpc
gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcnbsd-tdep.o \
solib-svr4.o \
ravenscar-thread.o ppc-ravenscar-thread.o"
;;
-powerpc-*-aix* | rs6000-*-*)
+powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
# Target: PowerPC running AIX
gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
- ppc-sysv-tdep.o solib-svr4.o \
+ ppc-sysv-tdep.o solib-aix.o \
ravenscar-thread.o ppc-ravenscar-thread.o"
;;
-powerpc-*-linux* | powerpc64-*-linux*)
+powerpc*-*-linux*)
# Target: PowerPC running Linux
gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
- solib-svr4.o solib-spu.o spu-multiarch.o \
+ ppc64-tdep.o solib-svr4.o solib-spu.o \
+ spu-multiarch.o \
glibc-tdep.o symfile-mem.o linux-tdep.o \
ravenscar-thread.o ppc-ravenscar-thread.o"
gdb_sim=../sim/ppc/libsim.a
build_gdbserver=yes
;;
+powerpc-*-lynx*178)
+ # Target: PowerPC running Lynx178.
+ gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \
+ xcoffread.o monitor.o dsrec.o ppc-sysv-tdep.o \
+ ravenscar-thread.o ppc-ravenscar-thread.o"
+ ;;
powerpc*-*-*)
# Target: PowerPC running eabi
gdb_target_obs="rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o \
;;
sparc-*-*)
# Target: SPARC
- gdb_target_obs="sparc-tdep.o
+ gdb_target_obs="sparc-tdep.o \
ravenscar-thread.o sparc-ravenscar-thread.o"
gdb_sim=../sim/erc32/libsim.a
;;
;;
tilegx-*-linux*)
- # Target: TILE-Gx
- gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
+ # Target: TILE-Gx
+ gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
symfile-mem.o glibc-tdep.o linux-tdep.o"
- ;;
+ build_gdbserver=yes
+ ;;
xstormy16-*-*)
# Target: Sanyo Xstormy16a processor
i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
bsd-uthread.o solib-svr4.o"
;;
-x86_64-*-mingw*)
+x86_64-*-mingw* | x86_64-*-cygwin*)
# Target: MingW/amd64
gdb_target_obs="amd64-tdep.o amd64-windows-tdep.o \
i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
*-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
*-*-symbianelf*)
gdb_osabi=GDB_OSABI_SYMBIAN ;;
+powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
+ gdb_osabi=GDB_OSABI_AIX ;;
esac
+
+# Check whether this target supports gcore.
+# Such target has to call set_gdbarch_find_memory_regions.
+gdb_have_gcore=false
+for t in x ${gdb_target_obs}; do
+ if test "$t" = linux-tdep.o; then
+ gdb_have_gcore=true
+ fi
+done