diff options
author | Tom Tromey <tromey@redhat.com> | 2014-06-11 08:02:48 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-06-18 08:17:00 -0600 |
commit | 17a40b44e2aa89d2df08897ea05a42e1afedd06a (patch) | |
tree | a1b570cb5f388e97663d8d9f793cad5b2ed5f1da /gdb/f-valprint.c | |
parent | 346d1dfebdbc5b7c8ce7d84f9250cbb8f4ec3e6c (diff) | |
download | gdb-17a40b44e2aa89d2df08897ea05a42e1afedd06a.zip gdb-17a40b44e2aa89d2df08897ea05a42e1afedd06a.tar.gz gdb-17a40b44e2aa89d2df08897ea05a42e1afedd06a.tar.bz2 |
make common_block const
This changes general_symbol_info to make "common_block" const.
2014-06-18 Tom Tromey <tromey@redhat.com>
* f-valprint.c (info_common_command_for_block): Update.
* symtab.h (struct general_symbol_info) <common_block>: Now
const.
Diffstat (limited to 'gdb/f-valprint.c')
-rw-r--r-- | gdb/f-valprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index 0040bbd..408c8cc 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); |