gdb/csky add unwinder for long branch cases
authorJiangshuai Li <jiangshuai_li@linux.alibaba.com>
Tue, 13 Sep 2022 06:19:26 +0000 (14:19 +0800)
committerJiangshuai Li <jiangshuai_li@linux.alibaba.com>
Tue, 13 Sep 2022 06:19:26 +0000 (14:19 +0800)
commitd354e0c8e7d333d2ec1796f8ce4216e892a4c714
treec2357f7c769fe7950f731f3660c56c2537fb2d76
parent02cd1b4e97120f71710c4246953bcb2d63cb4aea
gdb/csky add unwinder for long branch cases

There are two sequences of instructions for long branch:
1. jmpi [pc+4]    //insn code: 0xeac00001
   .long addr

2. lrw t1, [pc+8] //insn code: 0xea8d0002
   jmp t1         //insn code: 0x7834
   nop            //insn code: 0x6c03
   .long addr
gdb/csky-tdep.c
gdb/csky-tdep.h