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

Tobias Burnus burnus@net-b.de
Mon Nov 18 19:06:01 GMT 2013


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 I come up with.
> [...]
>
> ---[ 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". If the files are 
generated independently, the "reference to $1" is not available. At 
least that's how I understand it. (My DWARF knowledge is rather weak.)

Tobias




More information about the Dwarf-discuss mailing list