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
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
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