Re: [Dwarf-Discuss] Using DW_TAG_imported_declaration with Fortran's DW_TAG_namelist

2013-11-18 Thread Cary Coutant
(Putting this discussion back on the original thread…) >>> ---[ sketch of DWARF for file 2 ]--- >>> >>> DW_TAG_subprogram 'read_nml' >>> DW_TAG_imported_declaration '/nml' >>> DW_AT_import DW_FORM_ref_addr [ somehow a reference to $1 ] >> >> Well, that's probably the problem: The "somehow".

Re: [Dwarf-Discuss] Dwarf-Discuss Digest, Vol 72, Issue 3

2013-11-18 Thread Jonas Maebe
On 18 Nov 2013, at 20:06, Tobias Burnus wrote: > Bishop, John E wrote: >> ---[ sketch of DWARF for file 2 ]--- >> >> DW_TAG_subprogram 'read_nml' >> DW_TAG_imported_declaration '/nml' >> DW_AT_import DW_FORM_ref_addr [ somehow a reference to $1 ] > > Well, that's probably the problem: The

Re: [Dwarf-Discuss] Dwarf-Discuss Digest, Vol 72, Issue 3

2013-11-18 Thread Tobias Burnus
Bishop, John E wrote: I think if you are importing, you don't even need the DW_TAG_namelist: DW_TAG_imported_declaration '/nml' DW_AT_import DW_FORM_ref_addr [ reference to other file's DWARF ] I'm a bit weak on how that cross-file reference works, but reading section 3.2.3 that's what

Re: [Dwarf-Discuss] Dwarf-Discuss Digest, Vol 72, Issue 3

2013-11-18 Thread Bishop, John E
Question: Would it be permissible to create a DW_TAG_imported_declaration for a DW_TAG_namelist with an empty DW_TAG_namelist_item list and rely on the compiler to fetch the namelist items from the module's DW_TAG_namelist? I think if you are importing, you don't even need the DW_TAG_name