libdwfl: only use thread->unwound for initial frame
authorOmar Sandoval <osandov@fb.com>
Mon, 7 Oct 2019 09:05:36 +0000 (02:05 -0700)
committerMark Wielaard <mark@klomp.org>
Tue, 29 Oct 2019 21:50:24 +0000 (22:50 +0100)
commit347ff6f437420303b95cd1cfa6992a37a769e84a
tree228cc867316dba994bbd29574d78b8de7adba510
parent6f447ef7f0c5000e88d11312c06df9d5021d4ecd
libdwfl: only use thread->unwound for initial frame

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.

Signed-off-by: Omar Sandoval <osandov@fb.com>
libdwfl/ChangeLog
libdwfl/dwfl_frame.c
libdwfl/libdwflP.h