gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdb / configure.tgt
index 4b3be3fb80009389a4f6548d7ffa0834fd7d97b2..b3f31af763ceec031646518008b5e0dd0ff7ccba 100644 (file)
@@ -5,7 +5,6 @@
 #  gdb_target_obs      target-specific object files to use
 #  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
@@ -14,6 +13,7 @@
 
 case $targ in
  *-*-irix* | \
+ *-*-solaris2.[01] | *-*-solaris2.[2-9]* | *-*-solaris2.10* | \
  alpha*-*-osf* | \
  alpha*-*-freebsd* | \
  alpha*-*-kfreebsd*-gnu | \
@@ -29,6 +29,7 @@ case $targ in
  hppa*-*-hpux* | \
  ia64-*-hpux* | \
  *-*-vxworks* | \
+ mt-*-* | \
  null)
     echo "*** Configuration $targ is obsolete." >&2
     echo "*** Support has been REMOVED." >&2
@@ -36,8 +37,9 @@ case $targ in
     ;;
 esac
 
-i386_tobjs="i386-tdep.o arch/i386.o i387-tdep.o"
-amd64_tobjs="amd64-tdep.o arch/amd64.o"
+x86_tobjs="x86-tdep.o"
+i386_tobjs="i386-tdep.o arch/i386.o i387-tdep.o ${x86_tobjs}"
+amd64_tobjs="amd64-tdep.o arch/amd64.o ${x86_tobjs}"
 
 # Here are three sections to get a list of target specific object
 # files according to target triplet $TARG.
@@ -46,7 +48,9 @@ amd64_tobjs="amd64-tdep.o arch/amd64.o"
 
 case "${targ}" in
 aarch64*-*-*)
-       cpu_obs="aarch64-tdep.o aarch64-insn.o";;
+       cpu_obs="aarch32-tdep.o aarch64-tdep.o arch/aarch32.o \
+                arch/aarch64-insn.o arch/aarch64.o  ravenscar-thread.o \
+                aarch64-ravenscar-thread.o";;
 
 alpha*-*-*)
        # Target: Alpha
@@ -55,11 +59,12 @@ alpha*-*-*)
 
 arc*-*-*)
        # Target: Unidentified ARC target
-       cpu_obs="arc-tdep.o"
+       cpu_obs="arc-tdep.o arch/arc.o"
        ;;
 
 arm*-*-*)
-       cpu_obs="arm.o arm-get-next-pcs.o arm-tdep.o";;
+       cpu_obs="aarch32-tdep.o arch/aarch32.o arch/arm.o \
+                arch/arm-get-next-pcs.o arm-tdep.o";;
 
 hppa*-*-*)
        # Target: HP PA-RISC
@@ -78,6 +83,10 @@ ia64*-*-*)
        cpu_obs="ia64-tdep.o"
        ;;
 
+riscv*-*-*)
+       cpu_obs="riscv-tdep.o arch/riscv.o \
+                ravenscar-thread.o riscv-ravenscar-thread.o";;
+
 x86_64-*-*)
        cpu_obs="${i386_tobjs} ${amd64_tobjs}";;
 
@@ -114,12 +123,11 @@ aarch64*-*-freebsd*)
 
 aarch64*-*-linux*)
        # Target: AArch64 linux
-       gdb_target_obs="aarch64-linux-tdep.o \
-                       arm.o arm-linux.o arm-get-next-pcs.o arm-tdep.o \
-                       arm-linux-tdep.o \
+       gdb_target_obs="aarch64-linux-tdep.o arch/aarch64.o\
+                       arch/arm.o arch/arm-linux.o arch/arm-get-next-pcs.o \
+                       arm-tdep.o arm-linux-tdep.o \
                        glibc-tdep.o linux-tdep.o solib-svr4.o \
                        symfile-mem.o linux-record.o"
-       build_gdbserver=yes
        ;;
 
 alpha*-*-linux*)
@@ -152,13 +160,15 @@ arc*-*-elf32)
 arm*-wince-pe | arm*-*-mingw32ce*)
        # Target: ARM based machine running Windows CE (win32)
        gdb_target_obs="arm-wince-tdep.o windows-tdep.o"
-       build_gdbserver=yes
        ;;
 arm*-*-linux*)
        # Target: ARM based machine running GNU/Linux
-       gdb_target_obs="arm-linux.o arm-linux-tdep.o glibc-tdep.o \
+       gdb_target_obs="arch/arm-linux.o arm-linux-tdep.o glibc-tdep.o \
                        solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
-       build_gdbserver=yes
+       ;;
+arm*-*-freebsd*)
+       # Target: FreeBSD/arm
+       gdb_target_obs="arm-fbsd-tdep.o"
        ;;
 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
        # Target: NetBSD/arm
@@ -174,6 +184,7 @@ arm*-*-symbianelf*)
        ;;
 arm*-*-*)
        # Target: ARM embedded system
+       gdb_target_obs="arm-pikeos-tdep.o"
        gdb_sim=../sim/arm/libsim.a
        ;;
 
@@ -187,7 +198,6 @@ 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
@@ -200,6 +210,17 @@ cris*)
        gdb_target_obs="cris-tdep.o cris-linux-tdep.o linux-tdep.o solib-svr4.o"
        ;;
 
+csky*-*-linux*)
+       # Target: CSKY running GNU/Linux
+       gdb_target_obs="csky-tdep.o csky-linux-tdep.o glibc-tdep.o \
+                       linux-tdep.o solib-svr4.o"
+       ;;
+
+csky*-*-*)
+       # Target: CSKY bare metal
+       gdb_target_obs="csky-tdep.o"
+       ;;
+
 frv-*-*)
        # Target: Fujitsu FRV processor
        gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o"
@@ -259,7 +280,6 @@ i[34567]86-*-nto*)
        # Target: Intel 386 running qnx6.
        gdb_target_obs="solib-svr4.o \
                        i386-nto-tdep.o nto-tdep.o"
-       build_gdbserver=yes
        ;;
 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
        # Target: Solaris x86_64
@@ -277,7 +297,6 @@ i[34567]86-*-linux*)
            # Target: GNU/Linux x86-64
            gdb_target_obs="amd64-linux-tdep.o ${gdb_target_obs}"
        fi
-       build_gdbserver=yes
        ;;
 i[34567]86-*-gnu*)
        # Target: Intel 386 running the GNU Hurd
@@ -285,13 +304,11 @@ i[34567]86-*-gnu*)
        ;;
 i[34567]86-*-cygwin*)
        # Target: Intel 386 running win32
-       gdb_target_obs="i386-cygwin-tdep.o windows-tdep.o"
-       build_gdbserver=yes
+       gdb_target_obs="i386-windows-tdep.o windows-tdep.o"
        ;;
 i[34567]86-*-mingw32*)
        # Target: Intel 386 running win32
-       gdb_target_obs="i386-cygwin-tdep.o windows-tdep.o"
-       build_gdbserver=yes
+       gdb_target_obs="i386-windows-tdep.o windows-tdep.o"
        ;;
 i[34567]86-*-go32* | i[34567]86-*-msdosdjgpp*)
        # Target: i386 running DJGPP/go32.
@@ -302,7 +319,6 @@ ia64-*-linux*)
        # Target: Intel IA-64 running GNU/Linux
        gdb_target_obs="ia64-linux-tdep.o linux-tdep.o \
                        solib-svr4.o symfile-mem.o"
-       build_gdbserver=yes
        ;;
 ia64-*-*vms*)
        # Target: Intel IA-64 running OpenVMS
@@ -333,7 +349,6 @@ m32r*-*-linux*)
                        glibc-tdep.o solib-svr4.o symfile-mem.o \
                        linux-tdep.o"
        gdb_sim=../sim/m32r/libsim.a
-       build_gdbserver=yes
        ;;
 m32r*-*-*)
        # Target: Renesas m32r processor
@@ -356,7 +371,6 @@ m68*-*-linux*)
        # Target: Motorola m68k with a.out and ELF
        gdb_target_obs="m68k-tdep.o m68k-linux-tdep.o solib-svr4.o \
                        linux-tdep.o glibc-tdep.o symfile-mem.o"
-       build_gdbserver=yes
        ;;
 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
        # Target: NetBSD/m68k
@@ -367,11 +381,6 @@ m68*-*-openbsd*)
        gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o"
        ;;
 
-m88*-*-openbsd*)
-       # Target: OpenBSD/m88k
-       gdb_target_obs="m88k-tdep.o"
-       ;;
-
 mep-*-*)
        # Target: Toshiba Media Processor (MEP)
        gdb_target_obs="mep-tdep.o"
@@ -395,7 +404,6 @@ mips*-*-linux*)
        gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
                        solib-svr4.o symfile-mem.o linux-tdep.o"
        gdb_sim=../sim/mips/libsim.a
-       build_gdbserver=yes
        ;;
 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
        # Target: MIPS running NetBSD
@@ -433,16 +441,11 @@ mn10300-*-*)
        gdb_sim=../sim/mn10300/libsim.a
        ;;
 
-msp430*-*-elf)
+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"
-       ;;
-
 nds32*-*-elf)
        # Target: AndesTech NDS32 core
        gdb_target_obs="nds32-tdep.o"
@@ -459,6 +462,19 @@ nios2*-*-*)
        gdb_target_obs="nios2-tdep.o"
        ;;
 
+or1k*-*-linux*)
+       # Target: OpenCores OpenRISC 1000 32-bit running Linux
+       gdb_target_obs="or1k-tdep.o or1k-linux-tdep.o solib-svr4.o \
+                       symfile-mem.o glibc-tdep.o linux-tdep.o"
+       gdb_sim=../sim/or1k/libsim.a
+       ;;
+
+or1k-*-* | or1knd-*-*)
+       # Target: OpenCores OpenRISC 1000 32-bit implementation bare metal
+       gdb_target_obs="or1k-tdep.o"
+       gdb_sim=../sim/or1k/libsim.a
+       ;;
+
 powerpc*-*-freebsd*)
        # Target: FreeBSD/powerpc
        gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
@@ -486,13 +502,12 @@ powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
 powerpc*-*-linux*)
        # Target: PowerPC running Linux
        gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
-                       ppc64-tdep.o solib-svr4.o solib-spu.o \
-                       spu-multiarch.o \
+                       ppc64-tdep.o solib-svr4.o \
                        glibc-tdep.o symfile-mem.o linux-tdep.o \
                        ravenscar-thread.o ppc-ravenscar-thread.o \
-                       linux-record.o "
+                       linux-record.o \
+                       arch/ppc-linux-common.o"
        gdb_sim=../sim/ppc/libsim.a
-       build_gdbserver=yes
        ;;
 powerpc-*-lynx*178)
        # Target: PowerPC running Lynx178.
@@ -509,9 +524,24 @@ powerpc*-*-*)
 
 s390*-*-linux*)
        # Target: S390 running Linux
-       gdb_target_obs="s390-linux-tdep.o solib-svr4.o linux-tdep.o \
-                       linux-record.o"
-       build_gdbserver=yes
+       gdb_target_obs="s390-linux-tdep.o s390-tdep.o solib-svr4.o \
+                       linux-tdep.o linux-record.o symfile-mem.o"
+       ;;
+
+riscv*-*-freebsd*)
+       # Target: FreeBSD/riscv
+       gdb_target_obs="riscv-fbsd-tdep.o"
+       ;;
+
+riscv*-*-linux*)
+       # Target: Linux/RISC-V
+       gdb_target_obs="riscv-linux-tdep.o glibc-tdep.o \
+                       linux-tdep.o solib-svr4.o symfile-mem.o linux-record.o"
+       ;;
+
+riscv*-*-*)
+       # Target: RISC-V architecture
+       gdb_target_obs=""
        ;;
 
 rl78-*-elf)
@@ -529,16 +559,14 @@ rx-*-elf)
 score-*-*)
        # Target: S+core embedded system
        gdb_target_obs="score-tdep.o"
-       build_gdbserver=yes
        ;;
 
 sh*-*-linux*)
        # Target: GNU/Linux Super-H
-       gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o \
+       gdb_target_obs="sh-tdep.o sh-linux-tdep.o \
                        solib-svr4.o symfile-mem.o \
                        glibc-tdep.o linux-tdep.o"
        gdb_sim=../sim/sh/libsim.a
-       build_gdbserver=yes
        ;;
 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
        # Target: NetBSD/sh
@@ -547,16 +575,11 @@ sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
        ;;
 sh*-*-openbsd*)
        # Target: OpenBSD/sh
-       gdb_target_obs="sh-tdep.o sh64-tdep.o sh-nbsd-tdep.o"
-       ;;
-sh64-*-elf*)
-       # Target: Renesas/Super-H 64 bit with simulator
-       gdb_target_obs="sh-tdep.o sh64-tdep.o"
-       gdb_sim=../sim/sh64/libsim.a
+       gdb_target_obs="sh-tdep.o sh-nbsd-tdep.o"
        ;;
 sh*)
        # Target: Embedded Renesas Super-H processor
-       gdb_target_obs="sh-tdep.o sh64-tdep.o"
+       gdb_target_obs="sh-tdep.o"
        gdb_sim=../sim/sh/libsim.a
        ;;
 
@@ -571,7 +594,6 @@ sparc-*-linux*)
            gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
                            sparc64-linux-tdep.o ${gdb_target_obs}"
        fi
-       build_gdbserver=yes
        ;;
 sparc64-*-linux*)
        # Target: GNU/Linux UltraSPARC
@@ -579,7 +601,6 @@ sparc64-*-linux*)
                        sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
                        sparc-linux-tdep.o solib-svr4.o linux-tdep.o \
                        ravenscar-thread.o sparc-ravenscar-thread.o"
-       build_gdbserver=yes
        ;;
 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
        # Target: FreeBSD/sparc64
@@ -628,10 +649,9 @@ sparc64-*-*)
                        ravenscar-thread.o sparc-ravenscar-thread.o"
        ;;
 
-spu*-*-*)
-       # Target: Cell BE SPU
-       gdb_target_obs="spu-tdep.o"
-       build_gdbserver=yes
+s12z-*-*)
+       # Target: Freescale S12z
+       gdb_target_obs="s12z-tdep.o"
        ;;
 
 tic6x-*-*linux)
@@ -649,7 +669,6 @@ tilegx-*-linux*)
        # 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-*-*)
@@ -702,7 +721,6 @@ x86_64-*-linux*)
        gdb_target_obs="amd64-linux-tdep.o ${i386_tobjs}  \
                        i386-linux-tdep.o glibc-tdep.o \
                        solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
-       build_gdbserver=yes
        ;;
 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
        # Target: FreeBSD/amd64
@@ -712,9 +730,8 @@ x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
 x86_64-*-mingw* | x86_64-*-cygwin*)
         # Target: MingW/amd64
        gdb_target_obs="amd64-windows-tdep.o \
-                        ${i386_tobjs} i386-cygwin-tdep.o \
+                        ${i386_tobjs} i386-windows-tdep.o \
                         windows-tdep.o"
-       build_gdbserver=yes
         ;;
 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
        # Target: NetBSD/amd64
@@ -729,10 +746,9 @@ x86_64-*-openbsd*)
 x86_64-*-rtems*)
        gdb_target_obs="${amd64_tobjs} ${i386_tobjs} i386-bsd-tdep.o"
        ;;
-xtensa*-*-linux*)      gdb_target=linux
+xtensa*-*-*linux*)
        # Target: GNU/Linux Xtensa
        gdb_target_obs="xtensa-linux-tdep.o symfile-mem.o linux-tdep.o"
-       build_gdbserver=yes
        ;;
 
 esac
@@ -755,8 +771,8 @@ m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
 *-*-*-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 ;;
+*-*-mingw*)    gdb_osabi=GDB_OSABI_WINDOWS ;;
+*-*-cygwin*)   gdb_osabi=GDB_OSABI_CYGWIN ;;
 *-*-dicos*)    gdb_osabi=GDB_OSABI_DICOS ;;
 *-*-symbianelf*)
                gdb_osabi=GDB_OSABI_SYMBIAN ;;
This page took 0.028252 seconds and 4 git commands to generate.