This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/40040] gfortran invalid DW_AT_location for overridable variables



------- Comment #9 from jan dot kratochvil at redhat dot com  2010-04-20 12:24 -------
(In reply to comment #8)
> BTW, should DW_AT_{,MIPS_}linkage_name be also present on DW_TAG_common_block?
[...]
> for DW_AT_linkage_name to be allowed on DW_TAG_common_block.

For DW_TAG_common_block:
+      /* SYMBOL_VALUE_ADDRESS never gets used as all its fields are static. 
*/
There is only important the user-visible DW_AT_name of DW_TAG_common_block.

Then there are child DIEs DW_TAG_variable.  Good point there should be
DW_AT_*linkage_name present the same way as normal variables should have it.

http://cvs.fedoraproject.org/viewvc/rpms/gdb/F-13/gdb-fortran-common.patch?content-type=text%2Fplain&view=co

 <2><4a>: Abbrev Number: 3 (DW_TAG_common_block)
    <4b>   DW_AT_name        : (indirect string, offset: 0xd3): fo_o
    <51>   DW_AT_location    : 9 byte block: 3 50 c 60 0 0 0 0 0       
(DW_OP_addr: 600c50)
 <3><5f>: Abbrev Number: 4 (DW_TAG_variable)
    <60>   DW_AT_name        : ix
    <65>   DW_AT_type        : <0x114>
    <69>   DW_AT_external    : 1
    <6a>   DW_AT_location    : 9 byte block: 3 50 c 60 0 0 0 0 0       
(DW_OP_addr: 600c50)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40040


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]