]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* breakpoint.c (update_static_tracepoint): Rename nested `sal' and
authorAndrey Smirnov <ndreys@sourceware.org>
Sat, 10 Dec 2011 00:15:54 +0000 (00:15 +0000)
committerAndrey Smirnov <ndreys@sourceware.org>
Sat, 10 Dec 2011 00:15:54 +0000 (00:15 +0000)
`marker' variables to `sal2' and `tpmarker' respectively
(-Wshadow).

gdb/ChangeLog
gdb/breakpoint.c

index 65056995de1f573f4c1d4f52c5cd8583f9e34e41..20feacf5b002b02219d82ca7fbad66b0e13d1628 100644 (file)
@@ -1,3 +1,9 @@
+2011-12-09  Andrey Smirnov  <andrew.smirnov@gmail.com>
+
+       * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
+       `marker' variables to `sal2' and `tpmarker' respectively
+       (-Wshadow).
+
 2011-12-09  Andrew Pinski  <apinski@cavium.com>
 
        * linespec.c (hash_address_entry): Use iterative_hash_object on each
index 6f4f2d654db1e340415bee4efb1feeb04882085f..0f25ce14e2131d97f346c95635214a72f78c7147 100644 (file)
@@ -11614,26 +11614,26 @@ update_static_tracepoint (struct breakpoint *b, struct symtab_and_line sal)
 
       if (!VEC_empty(static_tracepoint_marker_p, markers))
        {
-         struct symtab_and_line sal;
+         struct symtab_and_line sal2;
          struct symbol *sym;
-         struct static_tracepoint_marker *marker;
+         struct static_tracepoint_marker *tpmarker;
          struct ui_out *uiout = current_uiout;
 
-         marker = VEC_index (static_tracepoint_marker_p, markers, 0);
+         tpmarker = VEC_index (static_tracepoint_marker_p, markers, 0);
 
          xfree (tp->static_trace_marker_id);
-         tp->static_trace_marker_id = xstrdup (marker->str_id);
+         tp->static_trace_marker_id = xstrdup (tpmarker->str_id);
 
          warning (_("marker for static tracepoint %d (%s) not "
                     "found at previous line number"),
                   b->number, tp->static_trace_marker_id);
 
-         init_sal (&sal);
+         init_sal (&sal2);
 
-         sal.pc = marker->address;
+         sal2.pc = tpmarker->address;
 
-         sal = find_pc_line (marker->address, 0);
-         sym = find_pc_sect_function (marker->address, NULL);
+         sal2 = find_pc_line (tpmarker->address, 0);
+         sym = find_pc_sect_function (tpmarker->address, NULL);
          ui_out_text (uiout, "Now in ");
          if (sym)
            {
@@ -11641,37 +11641,37 @@ update_static_tracepoint (struct breakpoint *b, struct symtab_and_line sal)
                                   SYMBOL_PRINT_NAME (sym));
              ui_out_text (uiout, " at ");
            }
-         ui_out_field_string (uiout, "file", sal.symtab->filename);
+         ui_out_field_string (uiout, "file", sal2.symtab->filename);
          ui_out_text (uiout, ":");
 
          if (ui_out_is_mi_like_p (uiout))
            {
-             char *fullname = symtab_to_fullname (sal.symtab);
+             char *fullname = symtab_to_fullname (sal2.symtab);
 
              if (fullname)
                ui_out_field_string (uiout, "fullname", fullname);
            }
 
-         ui_out_field_int (uiout, "line", sal.line);
+         ui_out_field_int (uiout, "line", sal2.line);
          ui_out_text (uiout, "\n");
 
-         b->loc->line_number = sal.line;
+         b->loc->line_number = sal2.line;
 
          xfree (b->loc->source_file);
          if (sym)
-           b->loc->source_file = xstrdup (sal.symtab->filename);
+           b->loc->source_file = xstrdup (sal2.symtab->filename);
          else
            b->loc->source_file = NULL;
 
          xfree (b->addr_string);
          b->addr_string = xstrprintf ("%s:%d",
-                                      sal.symtab->filename,
+                                      sal2.symtab->filename,
                                       b->loc->line_number);
 
          /* Might be nice to check if function changed, and warn if
             so.  */
 
-         release_static_tracepoint_marker (marker);
+         release_static_tracepoint_marker (tpmarker);
        }
     }
   return sal;