RISC-V: Add configure support for riscv*-linux*.
authorJim Wilson <jimw@sifive.com>
Thu, 9 Aug 2018 20:37:45 +0000 (13:37 -0700)
committerJim Wilson <jimw@sifive.com>
Thu, 9 Aug 2018 20:37:45 +0000 (13:37 -0700)
This adds the target and native configure support, and the NEWS entries for
the new target and native configurations.

gdb/
* Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
(ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
* NEWS: Mention new GNU/Linux RISC-V target.
* configure.host: Add riscv*-*-linux*.
* configure.nat: Add riscv*.
* configure.tgt: Add riscv*-*-linux*.

gdb/ChangeLog
gdb/Makefile.in
gdb/NEWS
gdb/configure.host
gdb/configure.nat
gdb/configure.tgt

index 40210bbd33178243d7acf623b35637911b2864cd..338813ab377482cc7bb9a0ecb6ae52dc027cea57 100644 (file)
@@ -1,5 +1,11 @@
 2018-08-09  Jim Wilson  <jimw@sifive.com>
 
+       * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
+       (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
+       * NEWS: Mention new GNU/Linux RISC-V target.
+       * configure.host: Add riscv*-*-linux*.
+       * configure.nat: Add riscv*.
+       * configure.tgt: Add riscv*-*-linux*.
        * riscv-linux-nat.c: New file.
        * riscv-linux-tdep.c: New file.
 
index 59e3dbf9de687b7a1eb080124f98a33fc538115e..c007fbc00082cae9437ffd5ce7f98c11839ba186 100644 (file)
@@ -753,6 +753,7 @@ ALL_TARGET_OBS = \
        ppc-sysv-tdep.o \
        ppc64-tdep.o \
        ravenscar-thread.o \
+       riscv-linux-tdep.o \
        riscv-tdep.o \
        rl78-tdep.o \
        rs6000-aix-tdep.o \
@@ -2304,6 +2305,8 @@ ALLDEPFILES = \
        procfs.c \
        ravenscar-thread.c \
        remote-sim.c \
+       riscv-linux-nat.c \
+       riscv-linux-tdep.c \
        riscv-tdep.c \
        rl78-tdep.c \
        rs6000-lynx178-tdep.c \
index 7f9466567f2fb78d7c9a5566248dc5ede8579422..f27503134543c804c247655f0f3c2dad1e4f4567 100644 (file)
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -41,6 +41,14 @@ thread apply [all | COUNT | -COUNT] [FLAG]... COMMAND
   FLAG arguments allow to control what output to produce and how to handle
   errors raised when applying COMMAND to a thread.
 
+* New native configurations
+
+GNU/Linux/RISC-V               riscv*-*-linux*
+
+* New targets
+
+GNU/Linux/RISC-V               riscv*-*-linux*
+
 *** Changes in GDB 8.2
 
 * The 'set disassembler-options' command now supports specifying options
index 6bcb8da74c25ee0309ffeeb7457f548ee7b8f45d..23a2f1639924a24167c451942af925ecc59c3fc2 100644 (file)
@@ -149,6 +149,8 @@ powerpc64*-*-linux*)        gdb_host=ppc64-linux
                        ;;
 powerpc*-*-linux*)     gdb_host=linux ;;
 
+riscv*-*-linux*)       gdb_host=linux ;;
+
 s390*-*-linux*)                gdb_host=linux ;;
 
 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
index 7611266d86f3ab8ae780cab010c90df9d95f5b8e..feddeaa5e01a6e2979c8d16080d6cd490ee30289 100644 (file)
@@ -267,6 +267,10 @@ case ${gdb_host} in
                # Host: PowerPC, running Linux
                NATDEPFILES="${NATDEPFILES} ppc-linux-nat.o ppc-linux.o"
                ;;
+           riscv*)
+               # Host: RISC-V, running Linux
+               NATDEPFILES="${NATDEPFILES} riscv-linux-nat.o"
+               ;;
            s390)
                # Host: S390, running Linux
                NATDEPFILES="${NATDEPFILES} s390-linux-nat.o"
index f197160896b2fdd3cd631e2c94378b9a95fcb19a..5e3bd5de7180b913da481ad457023a1a3db26ea0 100644 (file)
@@ -517,6 +517,12 @@ s390*-*-linux*)
        build_gdbserver=yes
        ;;
 
+riscv*-*-linux*)
+       # Target: Linux/RISC-V
+       gdb_target_obs="riscv-linux-tdep.o riscv-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="riscv-tdep.o"