libdwfl: Add new function dwfl_frame_reg
authorDi Chen <dichen@redhat.com>
Thu, 28 Jul 2022 08:31:05 +0000 (16:31 +0800)
committerMark Wielaard <mark@klomp.org>
Sat, 30 Jul 2022 23:48:48 +0000 (01:48 +0200)
commitccc157dc2b96e47d6d1bbb1b066ecbea4975051b
tree88e8f5c0a9a7fb35e9519024f8f4215224a65cae
parent0873ae782d14e672e8344775e76b7fca0a8b41bf
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>
ChangeLog
NEWS
libdw/ChangeLog
libdw/libdw.map
libdwfl/ChangeLog
libdwfl/dwfl_frame_regs.c
libdwfl/frame_unwind.c
libdwfl/libdwfl.h
libdwfl/libdwflP.h
libdwfl/linux-core-attach.c