diff options
author | Tom Tromey <tom@tromey.com> | 2021-03-26 09:37:22 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-03-26 09:37:22 -0600 |
commit | bab287cdcfb47ac472da9e8d3c8db8b15880c12c (patch) | |
tree | a74014e35507b6d96edc175a57ffadd723b47b84 /gdb/ChangeLog | |
parent | 3c2dcf90b55fea84260ac83ab968c5df3b44d34d (diff) | |
download | gdb-bab287cdcfb47ac472da9e8d3c8db8b15880c12c.zip gdb-bab287cdcfb47ac472da9e8d3c8db8b15880c12c.tar.gz gdb-bab287cdcfb47ac472da9e8d3c8db8b15880c12c.tar.bz2 |
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 173b08b..8e7b920 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +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. + 2021-03-25 Pedro Alves <pedro@palves.net> * gdb.server/bkpt-other-inferior.exp: Only enable remote output |