* [PATCH] Dwarf: rename yet another instance of "index"
@ 2022-05-04 6:35 Jan Beulich
0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2022-05-04 6:35 UTC (permalink / raw)
To: Binutils
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.
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -825,8 +825,8 @@ fetch_indexed_addr (dwarf_vma offset, ui
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;
@@ -849,7 +849,7 @@ fetch_indexed_value (dwarf_vma
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-04 6:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-04 6:35 [PATCH] Dwarf: rename yet another instance of "index" Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).