]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
riscv-tdep: Export riscv_features_from_bfd.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 12 Oct 2022 00:15:05 +0000 (17:15 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 13 Oct 2022 18:25:32 +0000 (11:25 -0700)
gdb/riscv-tdep.c
gdb/riscv-tdep.h

index f7da7165056a864191da4c78998f92caf65500ca..3823626f1c6dd6b67cfe076692aea0569f2e894e 100644 (file)
@@ -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;
index 5d4265e3cfd3fc12ad478cc3e052819c2440ec2e..ca386defdf4738ef92e3a857acc44e90903eb967 100644 (file)
@@ -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 */