Re: File index given line (libdw)

2017-07-14 Thread Sasha Da Rocha Pinheiro
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.

Dwarf_FDE (libdw)

2017-07-14 Thread Sasha Da Rocha Pinheiro
Hi, I did not understand how to get the augmentation_data of a FDE. Could anyone explain me? Also, is the start and end of Dwarf_FDE to be used as [initial_location, initial_location+address_range)?? Regards, Sasha typedef struct { /* Section offset of CIE this FDE refers to. This will never

Re: [PATCH] strip: Add --keep-section=SECTION and --remove-section=SECTION.

2017-07-14 Thread Josh Stone
On 07/14/2017 08:28 AM, Mark Wielaard wrote: > Adds two new output options: > > --keep-section=SECTION Keep the named section. SECTION is an extended > wildcard pattern. May be given more than once. I tried this with rust libraries (eu-strip --keep-section=.rustc), an

[PATCH] strip: Add --keep-section=SECTION and --remove-section=SECTION.

2017-07-14 Thread Mark Wielaard
Adds two new output options: --keep-section=SECTION Keep the named section. SECTION is an extended wildcard pattern. May be given more than once. --remove-section=SECTION Remove the named section. SECTION is an extended wildcard pattern.

Re: File index given line (libdw)

2017-07-14 Thread Mark Wielaard
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