This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/2 v2] Generalize cu_sec_idx


On Fri, 2017-12-08 at 16:06 +0100, Ulf Hermann wrote:
> Apparently CUs can appear in other sections than IDX_debug_info and
> IDX_types. Rather than relying on the indirect indication provided by
> type_offset we compare the addresses directly to figure out which section
> a given CU belongs to.

This is clever and indeed cu_sec_idx () is not generic enough.
But this is also somewhat inefficient. I am working on DWARF5 support
and there a CU can come from even more different sections (or file). So
I am changing Dwarf_CU to have an explicit section to which is it is
associated. This can then also be used by the "fake" CUs like created
in dwarf_getmacros.

Thanks,

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]