From: Tom Tromey Date: Wed, 11 Jun 2014 14:02:48 +0000 (-0600) Subject: make common_block const X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17a40b44e2aa89d2df08897ea05a42e1afedd06a;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d851f71fbfe..dca4ef2bb3e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2014-06-18 Tom Tromey + + * f-valprint.c (info_common_command_for_block): Update. + * symtab.h (struct general_symbol_info) : Now + const. + 2014-06-18 Tom Tromey * symtab.h (struct symtab) : Now const. 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); diff --git a/gdb/symtab.h b/gdb/symtab.h index 5ccc7ecb847..5a6f83106da 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -122,7 +122,7 @@ struct general_symbol_info /* A common block. Used with LOC_COMMON_BLOCK. */ - struct common_block *common_block; + const struct common_block *common_block; /* For opaque typedef struct chain. */