Skip to content

Commit

Permalink
Dwarf: rename yet another instance of "index"
Browse files Browse the repository at this point in the history
As before, on sufficiently old glibc this conflicts with a global
identifier in the library headers. While there also zap the unusual
padding by blanks.
  • Loading branch information
jbeulich committed May 4, 2022
1 parent 1343fed commit 3569f4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions binutils/dwarf.c
Original file line number Diff line number Diff line change
Expand Up @@ -825,8 +825,8 @@ fetch_indexed_addr (dwarf_vma offset, uint32_t num_bytes)
Returns 0 if the value could not be found. */

static dwarf_vma
fetch_indexed_value (dwarf_vma index,
enum dwarf_section_display_enum sec_enum)
fetch_indexed_value (dwarf_vma idx,
enum dwarf_section_display_enum sec_enum)
{
struct dwarf_section *section = &debug_displays [sec_enum].section;

Expand All @@ -849,7 +849,7 @@ fetch_indexed_value (dwarf_vma index,
bias = 12;
}

dwarf_vma offset = index * pointer_size;
dwarf_vma offset = idx * pointer_size;

/* Offsets are biased by the size of the section header. */
offset += bias;
Expand Down

0 comments on commit 3569f4a

Please sign in to comment.