]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: LoongArch: Refactor member functions of loongarch_frame_unwind
authorHui Li <lihui@loongson.cn>
Tue, 26 Aug 2025 01:35:11 +0000 (09:35 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 26 Aug 2025 13:57:21 +0000 (21:57 +0800)
commitd7a2fed3c29ad3ddba45d6b8bca3433d54b22c42
tree4bb2ccd314450177504de84ffb297f7ab3a82cbb
parenta9baa37ce95141589359e2a11f1698cfd7fedda4
gdb: LoongArch: Refactor member functions of loongarch_frame_unwind

In the current code, loongarch_frame_unwind is a LoongArch prologue unwinder,
it contains the required member functions, but they do not calculate a valid
frame id through prologue of a function frame. Refactor these functions and
use loongarch_frame_cache to record the information of the function frame.
No functional change intended.

Signed-off-by: Hui Li <lihui@loongson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
gdb/loongarch-tdep.c