Re: [PATCH] libdw: Restructure address range reading for .debug_loc and .debug_ranges.

2018-04-13 Thread Mark Wielaard
On Fri, 2018-04-06 at 14:27 +0200, Mark Wielaard wrote: > This caches the CU base address, makes error checking slight more relaxed > and restructures the code so it will be easier to add different forms > of ranges. Adds a new test for the new CU base address code. Pushed to master.

Re: [PATCH] aarch64: Add default cfi rule to restore SP from CFA address.

2018-04-13 Thread Mark Wielaard
On Wed, 2018-04-11 at 10:47 +0200, Mark Wielaard wrote: > The CFA is set by default to the stack pointer of the previous frame. > So that is also how we can always restore the SP. This default aarch64 > CFI rule is necessary on Fedora 28 with GCC8 to make the run-deleted.sh > and run-backtrace-dwar

Re: [PATCH] libdwfl: Handle unwind frame when the return address register isn't set.

2018-04-13 Thread Mark Wielaard
On Tue, 2018-04-10 at 16:23 +0200, Mark Wielaard wrote: > When we have unwound the frame and then cannot set the return address > we wouldn't set any error. That meant that a dwfl_thread_getframes () > call could end in an error, but without any dwfl_errno set, producing > the "no error" error mess

[COMMITTED] readelf: Only lookup files and show errors in attr_callback when not silent.

2018-04-13 Thread Mark Wielaard
We recently added a couple more sanity checks and show an error when attributes that represent files cannot be resolved. We should only do this when the attr_callback should print the attribute information. When not (for example when not showing the .debug_info section, but only collecting informat