Rewrite new die_info methods
authorTom Tromey <tom@tromey.com>
Thu, 26 Mar 2020 15:28:08 +0000 (09:28 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 26 Mar 2020 15:28:26 +0000 (09:28 -0600)
commiteeb647814fbfd71dddea45f36cb4847341f5cde7
treeea50e03859b54fe84ea4fdda4078c595eae66d05
parenta39fdb411d43824b27d886bab42cada62a9fe431
Rewrite new die_info methods

This rewrites the two new die_info methods to iterate over attributes
rather than to do two separate searches.

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

* dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
Rewrite.
gdb/ChangeLog
gdb/dwarf2/die.h