summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Smirnov <ndreys@sourceware.org>2011-12-11 02:46:54 +0000
committerAndrey Smirnov <ndreys@sourceware.org>2011-12-11 02:46:54 +0000
commitad13d8dfa3f77ae30c6b69d649c36e160044ffe4 (patch)
tree1000b8d55b0e38d2e04e71728cd8bc3669ed6b87
parent917793afae7ed8e9145445cefd11c58362b9a0f7 (diff)
downloadbinutils-gdb-ad13d8dfa3f77ae30c6b69d649c36e160044ffe4.tar.gz
* bfd-target.c (target_bfd_reopen): Rename `bfd' to
`abfd'(-Wshadow).
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/bfd-target.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fa6e37bad5c..a7d7cccaaa4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
+ * bfd-target.c (target_bfd_reopen): Rename `bfd' to
+ `abfd'(-Wshadow).
+
+2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
+
* annotate.c (annotate_array_section_begin): Rename `index' to
`idx'(-Wshadow).
diff --git a/gdb/bfd-target.c b/gdb/bfd-target.c
index cfeb0b12f65..17b3a56f6de 100644
--- a/gdb/bfd-target.c
+++ b/gdb/bfd-target.c
@@ -78,14 +78,14 @@ target_bfd_xclose (struct target_ops *t, int quitting)
}
struct target_ops *
-target_bfd_reopen (struct bfd *bfd)
+target_bfd_reopen (struct bfd *abfd)
{
struct target_ops *t;
struct target_bfd_data *data;
data = XZALLOC (struct target_bfd_data);
- data->bfd = bfd;
- build_section_table (bfd, &data->table.sections, &data->table.sections_end);
+ data->bfd = abfd;
+ build_section_table (abfd, &data->table.sections, &data->table.sections_end);
t = XZALLOC (struct target_ops);
t->to_shortname = "bfd";