[Ltrace-devel] Getting prototypes from debug information

Mark Wielaard mjw at redhat.com
Mon May 12 18:05:00 UTC 2014


On Mon, 2014-05-12 at 16:36 +0200, Petr Machata wrote:
> I see it now.  So correct me if I'm wrong, but that means that after the
> first dwfl_report_elf, dwfl_nextcu would iterate over just that one
> module. However after second dwfl_report_elf, dwfl_nextcu would again
> iterate over the first module, as well as the second module.
> 
> If that's correct, then I believe what we should store at struct library
> is Dwfl_Module, not Dwfl itself.

Yes, that seems correct. dwfl_report_elf does report the Dwfl_Module (or
NULL on failure). So you can use that and dwfl_module_nextcu.

Cheers,

Mark




More information about the Ltrace-devel mailing list