diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-07-14 15:00:20 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-07-14 15:00:20 +0000 |
commit | c8f2448ab76c836fc709bf4b5b9e1904f6f38576 (patch) | |
tree | f9d9e80fd6c7ac2fb4967877e535d9e9c148b917 /gdb/value.h | |
parent | 3b80b9cef917b0470f3a15816add26ff077e805d (diff) | |
download | gdb-c8f2448ab76c836fc709bf4b5b9e1904f6f38576.zip gdb-c8f2448ab76c836fc709bf4b5b9e1904f6f38576.tar.gz gdb-c8f2448ab76c836fc709bf4b5b9e1904f6f38576.tar.bz2 |
gdb/
Code cleanup - constify struct lval_funcs.
* dwarf2loc.c (pieced_value_funcs): Make it const.
* infrun.c (siginfo_value_funcs): Likewise.
* opencl-lang.c (opencl_value_funcs): Likewise.
* valops.c (value_assign, value_ind): Make the funcs variable const.
* value.c (struct value): Make location.computed.funcs target const.
Rearrange the comments.
(allocate_computed_value): Make the funcs parameter target const.
(value_computed_funcs): Return the funcs target const.
(value_free, value_copy, set_value_component_location): Make the funcs
variable const.
* value.h (allocate_computed_value): Make the funcs parameter target
const.
(value_computed_funcs): Return the funcs target const.
* windows-tdep.c (tlb_value_funcs): Make it const.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/value.h b/gdb/value.h index 3079831..3bcd839 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -204,14 +204,14 @@ struct lval_funcs and closure CLOSURE. */ extern struct value *allocate_computed_value (struct type *type, - struct lval_funcs *funcs, - void *closure); + const struct lval_funcs *funcs, + void *closure); extern struct value *allocate_optimized_out_value (struct type *type); /* If VALUE is lval_computed, return its lval_funcs structure. */ -extern struct lval_funcs *value_computed_funcs (struct value *value); +extern const struct lval_funcs *value_computed_funcs (struct value *value); /* If VALUE is lval_computed, return its closure. The meaning of the returned value depends on the functions VALUE uses. */ |