* breakpoint.c (insert_breakpoint_locations): Rename `error' to
authorAndrey Smirnov <ndreys@sourceware.org>
Sun, 11 Dec 2011 02:53:28 +0000 (02:53 +0000)
committerAndrey Smirnov <ndreys@sourceware.org>
Sun, 11 Dec 2011 02:53:28 +0000 (02:53 +0000)
`error_flag'(-Wshadow).

gdb/ChangeLog
gdb/breakpoint.c

index a7d7cccaaa4460acd245514e9c53876c4b349665..b385559630ecf5e21aa3ac0bbab59e6060adb171 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
+
+       * breakpoint.c (insert_breakpoint_locations): Rename `error' to
+       `error_flag'(-Wshadow).
+
 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
 
        * bfd-target.c (target_bfd_reopen): Rename `bfd' to
index 47559ba79e2b01c060214070041306fa9bdac57c..e683c20daa011c8d5d40aa0d5aab4493b1e01ce3 100644 (file)
@@ -1974,7 +1974,7 @@ insert_breakpoint_locations (void)
 {
   struct breakpoint *bpt;
   struct bp_location *bl, **blp_tmp;
-  int error = 0;
+  int error_flag = 0;
   int val = 0;
   int disabled_breaks = 0;
   int hw_breakpoint_error = 0;
@@ -2013,7 +2013,7 @@ insert_breakpoint_locations (void)
       val = insert_bp_location (bl, tmp_error_stream, &disabled_breaks,
                                    &hw_breakpoint_error);
       if (val)
-       error = val;
+       error_flag = val;
     }
 
   /* If we failed to insert all locations of a watchpoint, remove
@@ -2048,11 +2048,11 @@ insert_breakpoint_locations (void)
          fprintf_unfiltered (tmp_error_stream,
                              "Could not insert hardware watchpoint %d.\n", 
                              bpt->number);
-         error = -1;
+         error_flag = -1;
        }
     }
 
-  if (error)
+  if (error_flag)
     {
       /* If a hardware breakpoint or watchpoint was inserted, add a
          message about possibly exhausted resources.  */