From 270140bd2556ce2b0b9c32ecb31e1dcb3fc1887a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 3 Dec 2012 19:59:14 +0000 Subject: * ada-exp.y (write_object_renaming, write_var_or_type) (write_ambiguous_var, write_var_from_sym): Make blocks const. * ada-lang.c (replace_operator_with_call) (find_old_style_renaming_symbol): Make blocks const. * ada-lang.h (ada_find_renaming_symbol): Update. (struct ada_symbol_info) : Now const. * breakpoint.c (watch_command_1): Update. * breakpoint.h (struct watchpoint) : Now const. * c-exp.y (classify_inner_name, classify_name): Make block argument const. * expprint.c (print_subexp_standard) : Make 'b' const. * expression.h (innermost_block, parse_exp_1): Update. (union exp_element) : Now const. * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union) (lookup_struct): Make block argument const. * gdbtypes.h (lookup_template_type): Update. * go-exp.y (classify_name, classify_packaged_name) (package_name_p): Make block argument const. * objc-lang.c (lookup_struct_typedef): Make block argument const. * objc-lang.h (lookup_struct_typedef): Update. * parse.c (parse_exp_in_context, parse_exp_1) (write_exp_elt_block): Make block arguments const. (expression_context_block, innermost_block): Now const. * parser-defs.h (write_exp_elt_block): Update. (expression_context_block, innermost_block, block_found): Now const. * printcmd.c (struct display) : Now const. * symtab.h (lookup_struct, lookup_union, lookup_enum): Update. * valops.c (address_of_variable): Make block argument const. * value.h (value_of_variable): Update. * varobj.c (struct varobj_root) : Now const. --- gdb/go-exp.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/go-exp.y') diff --git a/gdb/go-exp.y b/gdb/go-exp.y index c3171c3..18669fc 100644 --- a/gdb/go-exp.y +++ b/gdb/go-exp.y @@ -1362,7 +1362,7 @@ build_packaged_name (const char *package, int package_len, to mean the global scope. */ static int -package_name_p (const char *name, struct block *block) +package_name_p (const char *name, const struct block *block) { struct symbol *sym; int is_a_field_of_this; @@ -1402,7 +1402,7 @@ classify_unsafe_function (struct stoken function_name) The result is one of NAME, NAME_OR_INT, or TYPENAME. */ static int -classify_packaged_name (struct block *block) +classify_packaged_name (const struct block *block) { char *copy; struct symbol *sym; @@ -1430,7 +1430,7 @@ classify_packaged_name (struct block *block) The result is one of NAME, NAME_OR_INT, or TYPENAME. */ static int -classify_name (struct block *block) +classify_name (const struct block *block) { struct type *type; struct symbol *sym; -- cgit v1.1