Re: [PATCH] libdw: Handle GNU DebugFission split ranges.

2018-05-24 Thread Mark Wielaard
On Sat, 2018-05-19 at 16:03 +0200, Mark Wielaard wrote: > GNU DebugFission split dwarf handles DW_FORM_sec_offset specially for > attributes that point to ranges. The .debug_ranges section is not in > the .dwo file, but in the main/skeleton object file. The sec_offset is > not relocated (in the ELF

Re: [PATCH] libdw: Add new dwarf_cu_info function.

2018-05-24 Thread Mark Wielaard
On Sun, 2018-05-20 at 15:21 +0200, Mark Wielaard wrote: > This allows getting a (split) subdie lazily, only when needed. > All arguments to dwarf_get_units are optional. When not given > then unit DIE and sub DIE are not looked up. This new function > allows them to be looked up when not immediatel

Re: [PATCH] readelf: print split CUs when given --debug-dump=info+

2018-05-24 Thread Mark Wielaard
On Sun, 2018-05-20 at 21:28 +0200, Mark Wielaard wrote: > To show the difference between "regular" CUs and split CUs print > offsets and references between { and } instead of [ and ]. > > When --debug-dump=info+ is given (implied by -w) instead of > --debug-dump=info any skeleton unit will be imme

Re: dwarf_begin_elf() won't create handle without .debug_* sections

2018-05-24 Thread Mark Wielaard
On Wed, 2018-05-23 at 20:09 +, Sasha Da Rocha Pinheiro wrote: > Hi all,  > > I have some binaries that do not have .debug_* sections but have > .eh_frame and .gcc_except_table. > Looking at: > https://sourceware.org/git/?p=elfutils.git;a=blob;f=libdw/dwarf_b > egin_elf.c;hb=144b73c49acf3ed

[PATCH] libdw: Handle .debug_rnglists in dwarf_ranges.

2018-05-24 Thread Mark Wielaard
Handle all new DW_RLE opcodes in .debug_rnglists in dwarf_ranges. Extract code for reading .debug_addr indexes from dwarf_formaddr as __libdw_addrx to reuse in __libdw_read_begin_end_pair_inc. And add new testcase. Signed-off-by: Mark Wielaard --- libdw/ChangeLog | 15 ++ l