RISC-V: Linux signal frame support.
authorJim Wilson <jimw@sifive.com>
Fri, 26 Oct 2018 17:32:58 +0000 (10:32 -0700)
committerJim Wilson <jimw@sifive.com>
Fri, 26 Oct 2018 17:32:58 +0000 (10:32 -0700)
commit77c6f5fcdae65da0428ff75fa81059f1b5271cf0
tree3d0a5035b8e0cd518705feabd5c0339aabc0a1a0
parent8a61382623e271fe2df0fe8f7558ea545db8b561
RISC-V: Linux signal frame support.

Add support for recognizing signal trampolines, parsing the signal frame,
and reading register values from it.

gdb/
* riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
(riscv_linux_sigframe_init): Declare.
(RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
(riscv_linux_sigframe): New.
(SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
(riscv_linux_sigframe_init): Define.
(riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
gdb/ChangeLog
gdb/riscv-linux-tdep.c