Allow reference form for DW_AT_associated and DW_AT_allocated attributes
authorAlok Kumar Sharma <AlokKumar.Sharma@amd.com>
Wed, 1 Jul 2020 06:23:09 +0000 (11:53 +0530)
committeralosharm <AlokKumar.Sharma@amd.com>
Wed, 1 Jul 2020 11:27:17 +0000 (16:57 +0530)
commit9cdf98207c5bab668e3734d11d5a24d6b5375b54
tree64cb7a8e7c5d5011a3926de90b50e9368de5f811
parentcc574a35a22ed984fb2d459669d1bac9f843f920
Allow reference form for DW_AT_associated and DW_AT_allocated attributes

Currently, GDB rejects the (die) reference form while it accepts exprloc
form. It is allowed in DWARF standard. "Table 7.5: Attribute encodings"
in DWARF5 standard. Flang compiler assigns (die) reference to
DW_AT_associated and DW_AT_allocated for some cases.

gdb/ChangeLog

* dwarf2/read.c (set_die_type): Removed conditions to restrict
forms for DW_AT_associated and DW_AT_allocated attributes,
which is already checked in function attr_to_dynamic_prop.
gdb/ChangeLog
gdb/dwarf2/read.c