From: John Baldwin Date: Wed, 12 Oct 2022 00:15:05 +0000 (-0700) Subject: riscv-tdep: Export riscv_features_from_bfd. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7db238bcb4f95494c7339d036c3f727e7ef0d648;p=thirdparty%2Fbinutils-gdb.git riscv-tdep: Export riscv_features_from_bfd. --- diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c index f7da7165056..3823626f1c6 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 5d4265e3cfd..ca386defdf4 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 */