summaryrefslogtreecommitdiff
path: root/gdb/windows-tdep.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-07-14 15:00:20 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-07-14 15:00:20 +0000
commitc8f2448ab76c836fc709bf4b5b9e1904f6f38576 (patch)
treef9d9e80fd6c7ac2fb4967877e535d9e9c148b917 /gdb/windows-tdep.c
parent3b80b9cef917b0470f3a15816add26ff077e805d (diff)
downloadbinutils-gdb-c8f2448ab76c836fc709bf4b5b9e1904f6f38576.tar.gz
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/windows-tdep.c')
-rw-r--r--gdb/windows-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/windows-tdep.c b/gdb/windows-tdep.c
index 6e0d17e71ae..5e80aaffae0 100644
--- a/gdb/windows-tdep.c
+++ b/gdb/windows-tdep.c
@@ -256,7 +256,7 @@ tlb_value_write (struct value *v, struct value *fromval)
error (_("Impossible to change the Thread Local Base"));
}
-static struct lval_funcs tlb_value_funcs =
+static const struct lval_funcs tlb_value_funcs =
{
tlb_value_read,
tlb_value_write