This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 27/348] Fix -Wsahdow warnings


>From 4bbe9414818924fbcea173f3e4cc3cb7a63bcd41 Mon Sep 17 00:00:00 2001
From: Andrey Smirnov <andrew.smirnov@gmail.com>
Date: Tue, 22 Nov 2011 17:46:53 +0700
Subject: [PATCH 27/39] Fix -Wshadow warnings.

* bfd-target.c (target_bfd_reopen): Fix -Wshadow
warnings.
---
 gdb/ChangeLog    |    5 +++++
 gdb/bfd-target.c |    6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7de4610..fcd7868 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 2011-11-22  Andrey Smirnov <andrew.smirnov@gmail.com>
 
+	* bfd-target.c (target_bfd_reopen): Fix -Wshadow
+	warnings.
+
+2011-11-22  Andrey Smirnov <andrew.smirnov@gmail.com>
+
 	* bcache.c (bcache_memory_used): Fix -Wshadow
 	warnings.
 
diff --git a/gdb/bfd-target.c b/gdb/bfd-target.c
index cfeb0b1..d1c8caf 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 *binary_descr)
 {
   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 = binary_descr;
+  build_section_table (binary_descr, &data->table.sections, &data->table.sections_end);
 
   t = XZALLOC (struct target_ops);
   t->to_shortname = "bfd";
-- 
1.7.5.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]