From: Sasha Da Rocha Pinheiro <darochapinhe@wisc.edu>
To: "elfutils-devel@sourceware.org" <elfutils-devel@sourceware.org>
Subject: File index given line (libdw)
Date: Thu, 13 Jul 2017 00:25:00 -0000 [thread overview]
Message-ID: <DM2PR06MB2722055FEC31FDB9F819FF5A6AC0@DM2PR06MB272.namprd06.prod.outlook.com> (raw)
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
next reply other threads:[~2017-07-13 0:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-13 0:25 Sasha Da Rocha Pinheiro [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DM2PR06MB2722055FEC31FDB9F819FF5A6AC0@DM2PR06MB272.namprd06.prod.outlook.com \
--to=darochapinhe@wisc.edu \
--cc=elfutils-devel@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).