Change die_info methods to check the attribute's form
authorTom Tromey <tom@tromey.com>
Wed, 30 Sep 2020 00:49:08 +0000 (18:49 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 30 Sep 2020 02:29:07 +0000 (20:29 -0600)
commit52c14d112840423f0515f7334063f532ec3950b1
treed14d72ab4fcd70b11d7ca48a510683ac04aaa47b
parente8e5c1585dc9df0b21ffddd7e6e9053b5512a726
Change die_info methods to check the attribute's form

This changes two die_info methods to check the form of the attribute
before using it.

gdb/ChangeLog
2020-09-29  Tom Tromey  <tom@tromey.com>

* dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
the attribute's form.
gdb/ChangeLog
gdb/dwarf2/die.h