# 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* | \
arm*-*-linux*)
# Target: ARM based machine running GNU/Linux
gdb_target_obs="arm-tdep.o arm-linux-tdep.o glibc-tdep.o \
- solib.o solib-svr4.o symfile-mem.o corelow.o"
+ solib.o solib-svr4.o symfile-mem.o corelow.o linux-tdep.o"
build_gdbserver=yes
;;
arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
gdb_target_obs="arm-tdep.o armbsd-tdep.o armobsd-tdep.o obsd-tdep.o \
corelow.o solib.o solib-svr4.o"
;;
+arm*-*-symbianelf*)
+ # Target: SymbianOS/arm
+ gdb_target_obs="arm-tdep.o solib-target.o arm-symbian-tdep.o"
+ ;;
arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
# Target: ARM embedded system
gdb_target_obs="arm-tdep.o"
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
;;
cris*)
gdb_sim=../sim/frv/libsim.a
;;
+moxie-*-elf)
+ gdb_target_obs="moxie-tdep.o"
+ gdb_sim=../sim/moxie/libsim.a
+ ;;
+
h8300-*-*)
# Target: H8300 with HMS monitor and H8 simulator
gdb_target_obs="h8300-tdep.o monitor.o dsrec.o"
gdb_target_obs="hppa-tdep.o"
;;
+i[34567]86-*-darwin*)
+ # Target: Darwin/i386
+ 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
+ gdb_target_obs="i386-tdep.o i387-tdep.o \
+ dicos-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 \
# 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 \
i[34567]86-*-linux*)
# Target: Intel 386 running GNU/Linux
gdb_target_obs="i386-tdep.o i386-linux-tdep.o glibc-tdep.o i387-tdep.o \
- solib.o solib-svr4.o symfile-mem.o corelow.o"
+ solib.o solib-svr4.o symfile-mem.o corelow.o \
+ linux-tdep.o linux-record.o"
+ if test "x$enable_64_bit_bfd" = "xyes"; then
+ # Target: GNU/Linux x86-64
+ gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o ${gdb_target_obs}"
+ fi
build_gdbserver=yes
;;
i[34567]86-*-gnu*)
i[34567]86-*-cygwin*)
# Target: Intel 386 running win32
gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
- solib-target.o corelow.o"
+ solib-target.o corelow.o windows-tdep.o"
build_gdbserver=yes
;;
i[34567]86-*-mingw32*)
# Target: Intel 386 running win32
gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
- solib-target.o corelow.o"
+ solib-target.o corelow.o windows-tdep.o"
build_gdbserver=yes
;;
i[34567]86-*-*)
gdb_sim=../sim/iq2000/libsim.a
;;
+lm32-*-*)
+ gdb_target_obs="lm32-tdep.o"
+ gdb_sim=../sim/lm32/libsim.a
+ ;;
+
m32c-*-*)
# Target: Renesas M32C family
gdb_target_obs="m32c-tdep.o prologue-value.o"
# No sim needed. Target uses SID.
;;
+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"
+ gdb_sim=../sim/microblaze/libsim.a
+ ;;
+microblaze*-xilinx-*)
+ # 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 \
+ gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
corelow.o solib.o solib-svr4.o symfile-mem.o"
gdb_sim=../sim/mips/libsim.a
build_gdbserver=yes
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"
gdb_sim=../sim/sh/libsim.a
build_gdbserver=yes
;;
# 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"
+ if test "x$enable_64_bit_bfd" = "xyes"; then
+ # Target: GNU/Linux UltraSPARC
+ gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
+ sparc64-linux-tdep.o ${gdb_target_obs}"
+ fi
;;
sparc64-*-linux*)
# 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"
+ build_gdbserver=yes
;;
sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
# Target: FreeBSD/sparc64
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 \
+ dicos-tdep.o i386-dicos-tdep.o amd64-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 i386-linux-tdep.o glibc-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 \
+ linux-record.o"
build_gdbserver=yes
;;
x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
bsd-uthread.o corelow.o solib.o solib-svr4.o"
;;
+x86_64-*-mingw*)
+ # Target: MingW/amd64
+ 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
gdb_target_obs="amd64-tdep.o amd64nbsd-tdep.o i386-tdep.o i387-tdep.o \
;;
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
*-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
*-*-mingw* | *-*-cygwin*)
gdb_osabi=GDB_OSABI_CYGWIN ;;
+*-*-dicos*) gdb_osabi=GDB_OSABI_DICOS ;;
+*-*-symbianelf*)
+ gdb_osabi=GDB_OSABI_SYMBIAN ;;
esac