[PATCH] Allow reference form for DW_AT_associated and DW_AT_allocated attributes

Sharma, Alok Kumar AlokKumar.Sharma@amd.com
Wed Jul 1 07:01:53 GMT 2020


Hi All,

I request you all to please review this patch. Below are the details.

Problem Description:
    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. 
Resolution:
    Now ' set_die_type' Is modified to accept reference form as well.
This change will not impact testsuite for gfortran, and will fix failures for
Flang compiler with existing testsuite.

    gdb/ChangeLog

            * dwarf2/read.c (set_die_type): Allow reference form for
            DW_AT_associated and DW_AT_allocated attributes.

Please let me know your valuable comments.

Regards,
Alok



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Allow-reference-form-for-DW_AT_associated-and-DW_AT_.patch
Type: application/octet-stream
Size: 2215 bytes
Desc: 0001-Allow-reference-form-for-DW_AT_associated-and-DW_AT_.patch
URL: <https://sourceware.org/pipermail/gdb-patches/attachments/20200701/d28128f2/attachment.obj>


More information about the Gdb-patches mailing list