diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-10-11 17:15:05 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-10-13 11:25:32 -0700 |
commit | 7db238bcb4f95494c7339d036c3f727e7ef0d648 (patch) | |
tree | 6cb429521fa2c23d40e4c8274c84d6c67fec6e85 | |
parent | e4eb6e50f1f38bf89af33b5943b2d3571538565e (diff) | |
download | fsf-binutils-gdb-7db238bcb4f95494c7339d036c3f727e7ef0d648.zip fsf-binutils-gdb-7db238bcb4f95494c7339d036c3f727e7ef0d648.tar.gz fsf-binutils-gdb-7db238bcb4f95494c7339d036c3f727e7ef0d648.tar.bz2 |
riscv-tdep: Export riscv_features_from_bfd.
-rw-r--r-- | gdb/riscv-tdep.c | 2 | ||||
-rw-r--r-- | gdb/riscv-tdep.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c index f7da716..3823626 100644 --- a/gdb/riscv-tdep.c +++ b/gdb/riscv-tdep.c @@ -3576,7 +3576,7 @@ static const struct frame_unwind riscv_frame_unwind = /* Extract a set of required target features out of ABFD. If ABFD is nullptr then a RISCV_GDBARCH_FEATURES is returned in its default state. */ -static struct riscv_gdbarch_features +struct riscv_gdbarch_features riscv_features_from_bfd (const bfd *abfd) { struct riscv_gdbarch_features features; diff --git a/gdb/riscv-tdep.h b/gdb/riscv-tdep.h index 5d4265e..ca386de 100644 --- a/gdb/riscv-tdep.h +++ b/gdb/riscv-tdep.h @@ -196,4 +196,6 @@ extern void riscv_supply_regset (const struct regset *regset, /* The names of the RISC-V target description features. */ extern const char *riscv_feature_name_csr; +extern struct riscv_gdbarch_features riscv_features_from_bfd (const bfd *abfd); + #endif /* RISCV_TDEP_H */ |