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
_______________________________________________
Dwarf-Discuss mailing list
Dwarf-Discuss@lists.dwarfstd.org
http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org

Reply via email to