From 17a40b44e2aa89d2df08897ea05a42e1afedd06a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 11 Jun 2014 08:02:48 -0600 Subject: make common_block const This changes general_symbol_info to make "common_block" const. 2014-06-18 Tom Tromey * f-valprint.c (info_common_command_for_block): Update. * symtab.h (struct general_symbol_info) : Now const. --- gdb/f-valprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/f-valprint.c') diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index 0040bbd31f2..408c8cc6220 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -424,7 +424,7 @@ info_common_command_for_block (const struct block *block, const char *comname, ALL_BLOCK_SYMBOLS (block, iter, sym) if (SYMBOL_DOMAIN (sym) == COMMON_BLOCK_DOMAIN) { - struct common_block *common = SYMBOL_VALUE_COMMON_BLOCK (sym); + const struct common_block *common = SYMBOL_VALUE_COMMON_BLOCK (sym); size_t index; gdb_assert (SYMBOL_CLASS (sym) == LOC_COMMON_BLOCK); -- cgit v1.2.1