Re: File index given line (libdw)

2017-07-13 Thread Sasha Da Rocha Pinheiro
Hi Mark, given a Die, I want to associate each line (from dwarf_getsrclines) to a file (from dwarf_getsrcfiles). The only way to do this is get the filename returned by dwarf_linesrc, and search in the filenames given by dwarf_getsrcfiles and dwarf_filesrc. But this is expensive since this has

Re: File index given line (libdw)

2017-07-13 Thread Mark Wielaard
Hi Sasha, On Thu, 2017-07-13 at 00:25 +, 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 ge