------- Comment #13 from redi at gcc dot gnu dot org  2010-08-13 11:05 -------
(In reply to comment #7)
> Also, how does on locate the DIEs for variables/functions that are listed in
> the .debug_pubnames section($ eu-readelf -wpubnames <file>). The list of
> variables/functions that are *defined* in the same compilation unit and are
> *visible/accessible from outside* of it.

Can't you look for DIEs which have DW_AT_external and which have a later
DW_AT_specification, which completes the earlier non-defining declaration.

DW_AT_specification tells you it's defined, DW_AT_external tells you it's
visible.


-- 


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

Reply via email to