diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2018-11-29 15:38:29 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2018-11-30 18:13:42 +0000 |
commit | 0ff80bf7b9901b5e3c6805b99d30fd555f512d69 (patch) | |
tree | 2fd4179ca12d7166e18363ddd6241c1996127298 /gdb/riscv-tdep.c | |
parent | 81fbbaf96216ed88973a069e4ed25379d7421ec8 (diff) | |
download | gdb-0ff80bf7b9901b5e3c6805b99d30fd555f512d69.zip gdb-0ff80bf7b9901b5e3c6805b99d30fd555f512d69.tar.gz gdb-0ff80bf7b9901b5e3c6805b99d30fd555f512d69.tar.bz2 |
gdb/riscv: Make some target description functions constant
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.
Diffstat (limited to 'gdb/riscv-tdep.c')
-rw-r--r-- | gdb/riscv-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c index 5965a59..d66fe5c 100644 --- a/gdb/riscv-tdep.c +++ b/gdb/riscv-tdep.c @@ -2793,7 +2793,7 @@ static const struct frame_unwind riscv_frame_unwind = 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; |