On Fri, 2017-07-21 at 21:29 +0200, Mark Wielaard wrote:
> But I was working on adding support for DWARF5 .debug_lines and since
> files (and directories) can have arbitrary attributes in that version it
> makes sense to go from Dwarf_Line to the associated Dwarf_Files/index.
> Instead of duplicatin
On Mon, 2017-07-17 at 17:28 +, Sasha Da Rocha Pinheiro wrote:
> I understand your argument. Since I was doing:
>
>dwarf_getsrclines(&cuDIE, &lineBuffer, &lineCount)
>dwarf_getsrcfiles(&cuDIE, &files, &filecount)
>
> I knew they were related because I used the same DIE. But someone
rom: Mark Wielaard
Sent: Monday, July 17, 2017 8:04 AM
To: Sasha Da Rocha Pinheiro
Cc: elfutils-devel@sourceware.org
Subject: Re: File index given line (libdw)
On Mon, 2017-07-17 at 04:10 +, Sasha Da Rocha Pinheiro wrote:
> [Resending cause it seems it didn't go]
Probably because
On Mon, 2017-07-17 at 04:10 +, Sasha Da Rocha Pinheiro wrote:
> [Resending cause it seems it didn't go]
Probably because it had an HTML attachement.
The mailinglist rejects emails with HTML.
> You understood what I need when you said:
> "So you want to keep a vector with filenames for a parti
7 8:56 AM
To: Sasha Da Rocha Pinheiro
Cc: elfutils-devel@sourceware.org
Subject: Re: File index given line (libdw)
On Sat, 2017-07-15 at 01:22 +, Sasha Da Rocha Pinheiro wrote:
> >But why do you want to do that?
>
> Performance and save memory space.
>
> >If we would
On Sat, 2017-07-15 at 01:22 +, Sasha Da Rocha Pinheiro wrote:
> >But why do you want to do that?
>
> Performance and save memory space.
>
> >If we would add int dwarf_line_index (Dwarf_Line *line, size_t *idx) how
> >exactly would you use it?
>
> I would get idx and save it in my data struct
Hi Mark,
>But why do you want to do that?
Performance and save memory space.
>If we would add int dwarf_line_index (Dwarf_Line *line, size_t *idx) how
>exactly would you use it?
I would get idx and save it in my data structure so I don't have to save the
file name repeatedly for each line.
On Thu, 2017-07-13 at 17:33 +, Sasha Da Rocha Pinheiro wrote:
> 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_getsrcf
has to be done for each line.
Instead, if I could get the file index in the array "struct Dwarf_Fileinfo_s
info", I wouldn't need to search.
From: Mark Wielaard
Sent: Thursday, July 13, 2017 4:11:09 AM
To: Sasha Da Rocha Pinheiro
Cc: elfutils-devel@sourceware.org
Subject: Re: F
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
10 matches
Mail list logo