From c8f2448ab76c836fc709bf4b5b9e1904f6f38576 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 14 Jul 2011 15:00:20 +0000 Subject: 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. --- gdb/opencl-lang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/opencl-lang.c') diff --git a/gdb/opencl-lang.c b/gdb/opencl-lang.c index 22d1611..79ad5f6 100644 --- a/gdb/opencl-lang.c +++ b/gdb/opencl-lang.c @@ -354,7 +354,7 @@ lval_func_free_closure (struct value *v) } } -static struct lval_funcs opencl_value_funcs = +static const struct lval_funcs opencl_value_funcs = { lval_func_read, lval_func_write, -- cgit v1.1