# gdb_osabi default OS ABI to use with target
# build_gdbserver set to "yes" if gdbserver supports target
+# 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
+# in Makefile.in!
+
case $targ in
d10v-*-* | \
hppa*-*-hiux* | \
i[34567]86-ncr-* | \
- i[34567]86-*-lynxos* | \
m68*-cisco*-* | \
m68*-tandem-* | \
m68*-*-os68k* | \
alpha*-*-linux*)
# Target: Little-endian Alpha running Linux
gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-linux-tdep.o \
- solib.o solib-svr4.o"
+ linux-tdep.o solib.o solib-svr4.o"
;;
alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
# Target: FreeBSD/alpha
am33_2.0*-*-linux*)
# Target: Matsushita mn10300 (AM33) running Linux
- gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o corelow.o \
- solib.o solib-svr4.o"
+ gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o linux-tdep.o \
+ corelow.o solib.o solib-svr4.o"
;;
arm*-wince-pe | arm*-*-mingw32ce*)
gdb_target_obs="arm-tdep.o armbsd-tdep.o armobsd-tdep.o obsd-tdep.o \
corelow.o solib.o solib-svr4.o"
;;
-arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
+arm*-*-symbianelf*)
+ # Target: SymbianOS/arm
+ gdb_target_obs="arm-tdep.o solib-target.o arm-symbian-tdep.o"
+ ;;
+arm*-*-*)
# Target: ARM embedded system
gdb_target_obs="arm-tdep.o"
gdb_sim=../sim/arm/libsim.a
avr-*-*)
# Target: AVR
gdb_target_obs="avr-tdep.o"
- # There is no simulator provided with gdb (yet).
- # See <http://savannah.gnu.org/projects/simulavr/>
- # for the simulator used during development of avr
- # support for gdb.
+ gdb_sim=../sim/avr/libsim.a
+ ;;
+
+bfin-*-*linux*)
+ # Target: Blackfin Linux
+ gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o"
+ gdb_sim=../sim/bfin/libsim.a
+ build_gdbserver=yes
+ ;;
+bfin-*-*)
+ # Target: Blackfin processor
+ gdb_target_obs="bfin-tdep.o"
+ gdb_sim=../sim/bfin/libsim.a
;;
cris*)
frv-*-*)
# Target: Fujitsu FRV processor
- gdb_target_obs="frv-tdep.o frv-linux-tdep.o \
+ gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o \
solib.o solib-frv.o corelow.o"
gdb_sim=../sim/frv/libsim.a
;;
hppa*-*-linux*)
# Target: HP PA-RISC running Linux
gdb_target_obs="hppa-tdep.o hppa-linux-tdep.o glibc-tdep.o \
- solib.o solib-svr4.o symfile-mem.o"
+ linux-tdep.o solib.o solib-svr4.o symfile-mem.o"
;;
hppa*-*-netbsd*)
# Target: NetBSD/hppa
gdb_target_obs="hppa-tdep.o"
;;
-i[34567]86-*-darwin* | x86_64-*-darwin*)
+i[34567]86-*-darwin*)
# Target: Darwin/i386
- gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
+ gdb_target_obs="i386-tdep.o i387-tdep.o \
i386-darwin-tdep.o solib.o solib-darwin.o"
+ if test "x$enable_64_bit_bfd" = "xyes"; then
+ # Target: GNU/Linux x86-64
+ gdb_target_obs="amd64-tdep.o amd64-darwin-tdep.o ${gdb_target_obs}"
+ fi
;;
i[34567]86-*-dicos*)
# Target: DICOS/i386
# Target: Intel 386 running qnx6.
gdb_target_obs="i386-tdep.o i387-tdep.o corelow.o solib.o solib-svr4.o \
i386-nto-tdep.o nto-tdep.o"
+ build_gdbserver=yes
;;
-i[34567]86-*-solaris2.1[0-9]*)
+i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
# Target: Solaris x86_64
gdb_target_obs="i386-tdep.o i387-tdep.o amd64-tdep.o amd64-sol2-tdep.o \
i386-sol2-tdep.o sol2-tdep.o \
gdb_target_obs="i386-tdep.o i387-tdep.o"
;;
+ia64-*-hpux*)
+ # Target: Intel IA-64 running HP-UX
+ gdb_target_obs="ia64-tdep.o ia64-hpux-tdep.o"
+ ;;
ia64-*-linux*)
# Target: Intel IA-64 running GNU/Linux
- gdb_target_obs="ia64-tdep.o ia64-linux-tdep.o \
+ gdb_target_obs="ia64-tdep.o ia64-linux-tdep.o linux-tdep.o \
solib.o solib-svr4.o symfile-mem.o"
build_gdbserver=yes
;;
m32r*-*-linux*)
# Target: Renesas M32R running GNU/Linux
gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o remote-m32r-sdi.o \
- glibc-tdep.o solib.o solib-svr4.o symfile-mem.o"
+ glibc-tdep.o solib.o solib-svr4.o symfile-mem.o \
+ linux-tdep.o"
gdb_sim=../sim/m32r/libsim.a
build_gdbserver=yes
;;
m68*-*-linux*)
# Target: Motorola m68k with a.out and ELF
gdb_target_obs="m68k-tdep.o m68klinux-tdep.o solib.o solib-svr4.o \
- glibc-tdep.o symfile-mem.o"
+ linux-tdep.o glibc-tdep.o symfile-mem.o"
build_gdbserver=yes
;;
m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
# No sim needed. Target uses SID.
;;
+microblaze*-linux-*|microblaze*-*-linux*)
+ # Target: Xilinx MicroBlaze running Linux
+ gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o microblaze-rom.o \
+ monitor.o dsrec.o solib.o solib-svr4.o corelow.o \
+ symfile-mem.o linux-tdep.o"
+ gdb_sim=../sim/microblaze/libsim.a
+ ;;
+microblaze*-*-*)
+ # Target: Xilinx MicroBlaze running standalone
+ gdb_target_obs="microblaze-tdep.o microblaze-rom.o monitor.o dsrec.o"
+ gdb_sim=../sim/microblaze/libsim.a
+ ;;
+
mips*-sgi-irix5*)
# Target: MIPS SGI running Irix 5
gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib.o solib-irix.o"
mips*-*-linux*)
# Target: Linux/MIPS
gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
- corelow.o solib.o solib-svr4.o symfile-mem.o"
+ corelow.o solib.o solib-svr4.o symfile-mem.o \
+ linux-tdep.o"
gdb_sim=../sim/mips/libsim.a
build_gdbserver=yes
;;
gdb_target_obs="mips-tdep.o mips64obsd-tdep.o \
corelow.o solib.o solib-svr4.o"
;;
+mips*-*-elf)
+ # Target: MIPS ELF
+ gdb_target_obs="mips-tdep.o remote-mips.o"
+ gdb_sim=../sim/mips/libsim.a
+ ;;
mips*-*-*)
# Target: MIPS
gdb_target_obs="mips-tdep.o"
powerpc-*-linux* | powerpc64-*-linux*)
# Target: PowerPC running Linux
gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
- solib.o solib-svr4.o corelow.o symfile-mem.o"
+ solib.o solib-svr4.o solib-spu.o spu-multiarch.o \
+ corelow.o symfile-mem.o linux-tdep.o"
gdb_sim=../sim/ppc/libsim.a
build_gdbserver=yes
;;
s390*-*-*)
# Target: S390 running Linux
- gdb_target_obs="s390-tdep.o solib.o solib-svr4.o"
+ gdb_target_obs="s390-tdep.o solib.o solib-svr4.o linux-tdep.o"
build_gdbserver=yes
;;
+rx-*-elf)
+ # Target: Renesas RX
+ gdb_target_obs="rx-tdep.o"
+ gdb_sim=../sim/rx/libsim.a
+ ;;
+
score-*-*)
# Target: S+core embedded system
- gdb_target_obs="score-tdep.o"
+ gdb_target_obs="score-tdep.o corelow.o"
+ if test -f ../sim/score/Makefile; then
+ gdb_sim=../sim/score/libsim.a
+ fi
+ build_gdbserver=yes
;;
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 glibc-tdep.o"
+ dsrec.o solib.o solib-svr4.o symfile-mem.o \
+ glibc-tdep.o corelow.o linux-tdep.o"
gdb_sim=../sim/sh/libsim.a
build_gdbserver=yes
;;
sparc-*-linux*)
# Target: GNU/Linux SPARC
gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
- sparc-linux-tdep.o solib.o solib-svr4.o symfile-mem.o"
+ sparc-linux-tdep.o solib.o solib-svr4.o symfile-mem.o \
+ linux-tdep.o"
if test "x$enable_64_bit_bfd" = "xyes"; then
# Target: GNU/Linux UltraSPARC
gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
# Target: GNU/Linux UltraSPARC
gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \
sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
- sparc-linux-tdep.o solib.o solib-svr4.o"
+ sparc-linux-tdep.o solib.o solib-svr4.o linux-tdep.o"
build_gdbserver=yes
;;
sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
sparc-sol2-tdep.o sol2-tdep.o solib.o solib-svr4.o"
;;
-sparc-*-rtems*)
- # Target: SPARC embedded with simulator
- gdb_target_obs="sparc-tdep.o"
- gdb_sim=../sim/erc32/libsim.a
- ;;
sparc-*-*)
# Target: SPARC
- gdb_target_obs="sparc-tdep.o"
+ gdb_target_obs="sparc-tdep.o ravenscar-thread.o \
+ ravenscar-sparc-thread.o"
+ gdb_sim=../sim/erc32/libsim.a
;;
sparc64-*-*)
# Target: UltraSPARC
build_gdbserver=yes
;;
+tic6x-*-*linux)
+ # Target: GNU/Linux TI C6x
+ gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \
+ glibc-tdep.o corelow.o linux-tdep.o"
+ ;;
+
+tic6x-*-*)
+ # Target: TI C6X
+ gdb_target_obs="tic6x-tdep.o"
+ ;;
+
xstormy16-*-*)
# Target: Sanyo Xstormy16a processor
gdb_target_obs="xstormy16-tdep.o"
gdb_target_obs="vax-tdep.o"
;;
+x86_64-*-darwin*)
+ # Target: Darwin/x86-64
+ gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
+ i386-darwin-tdep.o amd64-darwin-tdep.o \
+ solib.o solib-darwin.o"
+ ;;
+
x86_64-*-dicos*)
# Target: DICOS/x86-64
gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
gdb_target_obs="amd64-tdep.o amd64-windows-tdep.o \
i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
solib-target.o windows-tdep.o"
+ build_gdbserver=yes
;;
x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
# Target: NetBSD/amd64
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"
+ solib.o solib-svr4.o corelow.o symfile-mem.o \
+ linux-tdep.o"
build_gdbserver=yes
;;
xtensa*)
# map target onto default OS ABI
case "${targ}" in
-*-*-freebsd*) gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
-*-*-linux*) gdb_osabi=GDB_OSABI_LINUX ;;
+*-*-freebsd* | *-*-kfreebsd*-gnu)
+ gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
+*-*-linux* | *-*-uclinux*)
+ gdb_osabi=GDB_OSABI_LINUX ;;
*-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
*-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
*-*-mingw* | *-*-cygwin*)
gdb_osabi=GDB_OSABI_CYGWIN ;;
*-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
+*-*-symbianelf*)
+ gdb_osabi=GDB_OSABI_SYMBIAN ;;
esac