File index given line (libdw)

Mark Wielaard mark@klomp.org
Thu Jul 13 09:11:00 GMT 2017


Hi Sasha,

On Thu, 2017-07-13 at 00:25 +0000, Sasha Da Rocha Pinheiro wrote:
> when we get the files given a Die and want to know the file given the
> line, the only way to do this is comparing the return of dwarf_linesrc
> with the list of filenames we had from dwarf_getsrcfiles?
> Why can't we get the index of the file given the line? Just return the unsigned int file in Dwarf_Line_s.

There could be a good reason for that. But I might be missing the bigger
picture of what you are trying to do. Could you give a more complete
code example? What extra information do you want by having the
Dwarf_Files index of the Dwarf_Line?

Thanks,

Mark



More information about the Elfutils-devel mailing list