diff options
author | Jiangshuai Li <jiangshuai_li@linux.alibaba.com> | 2022-08-15 10:40:29 +0800 |
---|---|---|
committer | Jiangshuai Li <jiangshuai_li@linux.alibaba.com> | 2022-08-15 10:40:29 +0800 |
commit | 105afa7f230e5fed8f5a2eb28bc14d7696f5ac72 (patch) | |
tree | 752b654d349bfd76d4a0f2f462792978ed2c648a /gdb/csky-tdep.h | |
parent | a9c09a3667cce34a9b5f7f0983254cc66a90e145 (diff) | |
download | gdb-105afa7f230e5fed8f5a2eb28bc14d7696f5ac72.zip gdb-105afa7f230e5fed8f5a2eb28bc14d7696f5ac72.tar.gz gdb-105afa7f230e5fed8f5a2eb28bc14d7696f5ac72.tar.bz2 |
gdb/csky add unwinder for sigtramp frame when kernel 4.x and later
When kernel veriosn >= V4.x, the characteristic values used to
determine whether it is a signal function call are:
movi r7, 139
trap 0
Registers are saved at (sp + CSKY_SIGINFO_OFFSET + CSKY_SIGINFO_SIZE
+ CSKY_UCONTEXT_SIGCONTEXT + CSKY_SIGCONTEXT_PT_REGS_TLS). The order
is described in csky_linux_rt_sigreturn_init_pt_regs.
Diffstat (limited to 'gdb/csky-tdep.h')
-rw-r--r-- | gdb/csky-tdep.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/csky-tdep.h b/gdb/csky-tdep.h index 3ee50fc..f845b9a 100644 --- a/gdb/csky-tdep.h +++ b/gdb/csky-tdep.h @@ -379,4 +379,10 @@ enum csky_regnum #define CSKY_MOVI_R7_173 0x00adea07 #define CSKY_TRAP_0 0x2020c000 +/* Sizeof (tls) */ +#define CSKY_SIGCONTEXT_PT_REGS_TLS 4 + +/* Macro for kernel 4.x */ +#define CSKY_MOVI_R7_139 0x008bea07 + #endif |