Avoid some pointer chasing in DWARF reader
authorTom Tromey <tom@tromey.com>
Fri, 26 Mar 2021 15:37:22 +0000 (09:37 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 26 Mar 2021 15:37:22 +0000 (09:37 -0600)
commitbab287cdcfb47ac472da9e8d3c8db8b15880c12c
treea74014e35507b6d96edc175a57ffadd723b47b84
parent3c2dcf90b55fea84260ac83ab968c5df3b44d34d
Avoid some pointer chasing in DWARF reader

I noticed a spot in the DWARF reader using "per_objfile->per_bfd",
where a local per_bfd variable had already been created.  Looking
through the file, I found a number of such spots.  This patch changes
them to use the already-existing local, avoiding a bit of excess
pointer chasing.

gdb/ChangeLog
2021-03-26  Tom Tromey  <tom@tromey.com>

* dwarf2/read.c (dwarf2_read_debug_names)
(dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
(dw2_debug_names_iterator::next, create_type_unit_group):
Simplify.
gdb/ChangeLog
gdb/dwarf2/read.c