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.
ppc-sysv-tdep.o \
ppc64-tdep.o \
ravenscar-thread.o \
+ riscv-linux-tdep.o \
riscv-tdep.o \
rl78-tdep.o \
rs6000-aix-tdep.o \
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 \
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
;;
powerpc*-*-linux*) gdb_host=linux ;;
+riscv*-*-linux*) gdb_host=linux ;;
+
s390*-*-linux*) gdb_host=linux ;;
sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
# 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"
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"