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/arch | |
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/arch')
-rw-r--r-- | gdb/arch/riscv.c | 2 | ||||
-rw-r--r-- | gdb/arch/riscv.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/arch/riscv.c b/gdb/arch/riscv.c index ca2238d..cb715fa 100644 --- a/gdb/arch/riscv.c +++ b/gdb/arch/riscv.c @@ -26,7 +26,7 @@ /* See arch/riscv.h. */ -target_desc * +const target_desc * riscv_create_target_description (struct riscv_gdbarch_features features) { target_desc *tdesc = allocate_target_description (); diff --git a/gdb/arch/riscv.h b/gdb/arch/riscv.h index 0079440..ec4d5f3 100644 --- a/gdb/arch/riscv.h +++ b/gdb/arch/riscv.h @@ -58,7 +58,7 @@ struct riscv_gdbarch_features /* 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 */ |