public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* File index given line (libdw)
@ 2017-07-13  0:25 Sasha Da Rocha Pinheiro
  2017-07-13  9:11 ` Mark Wielaard
  0 siblings, 1 reply; 11+ messages in thread
From: Sasha Da Rocha Pinheiro @ 2017-07-13  0:25 UTC (permalink / raw)
  To: elfutils-devel

Hi guys, 
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.


/* Find line information for address.  */
extern const char *dwarf_linesrc (Dwarf_Line *line,
                                             Dwarf_Word *mtime, Dwarf_Word *length);


* Get the file source files used in the CU.  */
extern int dwarf_getsrcfiles (Dwarf_Die *cudie, Dwarf_Files **files,
			                     size_t *nfiles)
__nonnull_attribute__ (2);


Regards,
Sasha

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-07-26 21:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-13  0:25 File index given line (libdw) Sasha Da Rocha Pinheiro
2017-07-13  9:11 ` Mark Wielaard
2017-07-13 17:33   ` Sasha Da Rocha Pinheiro
2017-07-14 10:03     ` Mark Wielaard
2017-07-15  1:22       ` Sasha Da Rocha Pinheiro
2017-07-15 13:56         ` Mark Wielaard
2017-07-17  4:11           ` Sasha Da Rocha Pinheiro
2017-07-17 13:04             ` Mark Wielaard
2017-07-17 17:28               ` Sasha Da Rocha Pinheiro
2017-07-21 19:29                 ` Mark Wielaard
2017-07-26 21:25                   ` Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).