diff options
Diffstat (limited to 'gdb/nat')
-rw-r--r-- | gdb/nat/riscv-linux-tdesc.c | 8 | ||||
-rw-r--r-- | gdb/nat/riscv-linux-tdesc.h | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/gdb/nat/riscv-linux-tdesc.c b/gdb/nat/riscv-linux-tdesc.c index 1b625cf38fc..3220725b875 100644 --- a/gdb/nat/riscv-linux-tdesc.c +++ b/gdb/nat/riscv-linux-tdesc.c @@ -31,10 +31,10 @@ # define NFPREG 33 #endif -/* Determine XLEN and FLEN and return a corresponding target description. */ +/* See nat/riscv-linux-tdesc.h. */ -const struct target_desc * -riscv_linux_read_description (int tid) +struct riscv_gdbarch_features +riscv_linux_read_features (int tid) { struct riscv_gdbarch_features features; elf_fpregset_t regs; @@ -79,5 +79,5 @@ riscv_linux_read_description (int tid) break; } - return riscv_create_target_description (features); + return features; } diff --git a/gdb/nat/riscv-linux-tdesc.h b/gdb/nat/riscv-linux-tdesc.h index 9b57a9e99d5..e9ee64aa5d2 100644 --- a/gdb/nat/riscv-linux-tdesc.h +++ b/gdb/nat/riscv-linux-tdesc.h @@ -19,9 +19,10 @@ #ifndef NAT_RISCV_LINUX_TDESC_H #define NAT_RISCV_LINUX_TDESC_H -struct target_desc; +#include "arch/riscv.h" -/* Return a target description for the LWP identified by TID. */ -const struct target_desc *riscv_linux_read_description (int tid); +/* Determine XLEN and FLEN for the LWP identified by TID, and return a + corresponding features object. */ +struct riscv_gdbarch_features riscv_linux_read_features (int tid); #endif /* NAT_RISCV_LINUX_TDESC_H */ |