[PATCH 2/5] libdwfl: only use thread->unwound for initial frame

Mark Wielaard mark@klomp.org
Tue Oct 29 22:20:00 GMT 2019

Hi Omar,

On Mon, Oct 07, 2019 at 02:05:36AM -0700, Omar Sandoval wrote:
> thread->unwound is only used for set_initial_registers (via
> dwfl_thread_state_registers, dwfl_thread_state_register_pc, and a
> special case in core_set_initial_registers). At that point,
> thread->unwound is always the initial frame, so there's no need to
> update it as we unwind the stack. Let's set it to NULL after we do the
> initial setup. This simplifies the next change.

Very nice cleanup. Pushed to master.



More information about the Elfutils-devel mailing list