aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Smirnov <ndreys@sourceware.org>2011-12-11 02:27:24 +0000
committerAndrey Smirnov <ndreys@sourceware.org>2011-12-11 02:27:24 +0000
commite5e61bd728a2088867aaaca57c139965d1b47915 (patch)
treefc40e26b48b634a368b2f6b691ebffcccadc43df
parentb4082c70007bc92982af478df267643b662bf19d (diff)
downloadgdb-e5e61bd728a2088867aaaca57c139965d1b47915.zip
gdb-e5e61bd728a2088867aaaca57c139965d1b47915.tar.gz
gdb-e5e61bd728a2088867aaaca57c139965d1b47915.tar.bz2
* ada-exp.y (write_var_or_type): Rename nested `renaming' to
`ren_sym'(-Wshadow).
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ada-exp.y6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 57d2dfe..4e3edce 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
+
+ * ada-exp.y (write_var_or_type): Rename nested `renaming' to
+ `ren_sym'(-Wshadow).
+
2011-12-10 Doug Evans <dje@google.com>
* dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index 9576be5e..bfa3913 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -1287,12 +1287,12 @@ write_var_or_type (struct block *block, struct stoken name0)
FIXME pnh 7/20/2007. */
if (nsyms == 1)
{
- struct symbol *renaming =
+ struct symbol *ren_sym =
ada_find_renaming_symbol (SYMBOL_LINKAGE_NAME (syms[0].sym),
syms[0].block);
- if (renaming != NULL)
- syms[0].sym = renaming;
+ if (ren_sym != NULL)
+ syms[0].sym = ren_sym;
}
type_sym = select_possible_type_sym (syms, nsyms);