]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Add new function dwfl_frame_reg users/dichen/try-dwfl-frame-reg
authorDi Chen <dichen@redhat.com>
Thu, 28 Jul 2022 08:31:05 +0000 (16:31 +0800)
committerDi Chen <dichen@redhat.com>
Fri, 29 Jul 2022 14:09:37 +0000 (22:09 +0800)
commit5266d753623782fb1397cdd258b5ea5373bd91ab
tree7d786c5c902673b2f46b4c1269d69713e67e7349
parentcc2d459520de4f6680a0e9e9356d014356bd4718
libdwfl: Add new function dwfl_frame_reg

Dwfl has most of the infrastructure to keep the full unwind state,
including the state of unwound registers per frame using
Dwfl_Thread_Callbacks. But there is no public API to access the state,
except for the PC (dwfl_frame_pc).

This commit adds a new function dwfl_frame_reg to get the value of the
DWARF register number in the given frame.

https://sourceware.org/bugzilla/show_bug.cgi?id=28579

Signed-off-by: Di Chen <dichen@redhat.com>
NEWS
libdw/libdw.map
libdwfl/dwfl_frame_regs.c
libdwfl/frame_unwind.c
libdwfl/libdwfl.h
libdwfl/libdwflP.h
libdwfl/linux-core-attach.c