Makes more of the interface related to fetching target descriptions
constant.
gdb/ChangeLog:
* arch/riscv.h (riscv_create_target_description): Make return type
const.
* arch/riscv.c (riscv_create_target_description): Likewise.
* riscv-tdep.c (riscv_find_default_target_description): Likewise.
+2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * arch/riscv.h (riscv_create_target_description): Make return type
+ const.
+ * arch/riscv.c (riscv_create_target_description): Likewise.
+ * riscv-tdep.c (riscv_find_default_target_description): Likewise.
+
2018-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
Keith Seitz <keiths@redhat.com>
Tom Tromey <tom@tromey.com>
/* See arch/riscv.h. */
-target_desc *
+const target_desc *
riscv_create_target_description (struct riscv_gdbarch_features features)
{
target_desc *tdesc = allocate_target_description ();
/* Create and return a target description that is compatible with
FEATURES. */
-target_desc *riscv_create_target_description
+const target_desc *riscv_create_target_description
(struct riscv_gdbarch_features features);
#endif /* ARCH_RISCV_H */
specifically the bfd object being executed, to guide the selection of a
suitable default target description. */
-static struct target_desc *
+static const struct target_desc *
riscv_find_default_target_description (const struct gdbarch_info info)
{
struct riscv_gdbarch_features features;