* breakpoint.c (init_breakpoint_sal): Remove nested definitions of
authorAndrey Smirnov <ndreys@sourceware.org>
Mon, 5 Dec 2011 04:10:47 +0000 (04:10 +0000)
committerAndrey Smirnov <ndreys@sourceware.org>
Mon, 5 Dec 2011 04:10:47 +0000 (04:10 +0000)
  `i'(-Wshadow).

gdb/ChangeLog
gdb/breakpoint.c

index 9cbded963fc10fcc13977bd69878970ff1e34875..971a1653200dfaace62492cf476a32b49f56ab40 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
+
+       * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
+       `i'(-Wshadow).
+
 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
 
        * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
index fa80018859355786bd32f22a246c65be6ff671cf..c6b8e05baa28a7e8bfd3f6d88761980952d49113 100644 (file)
@@ -7265,9 +7265,11 @@ init_breakpoint_sal (struct breakpoint *b, struct gdbarch *gdbarch,
 
   if (type == bp_hardware_breakpoint)
     {
-      int i = hw_breakpoint_used_count ();
-      int target_resources_ok = 
-       target_can_use_hardware_watchpoint (bp_hardware_breakpoint, 
+      int target_resources_ok;
+
+      i = hw_breakpoint_used_count ();
+      target_resources_ok =
+       target_can_use_hardware_watchpoint (bp_hardware_breakpoint,
                                            i + 1, 0);
       if (target_resources_ok == 0)
        error (_("No hardware breakpoint support in the target."));
@@ -7316,7 +7318,6 @@ init_breakpoint_sal (struct breakpoint *b, struct gdbarch *gdbarch,
                  char *p = &addr_string[3];
                  char *endp;
                  char *marker_str;
-                 int i;
 
                  p = skip_spaces (p);