arm/backtrace/unwind: skip unaligned instruction
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
9c30d3bf33
commit
0e873b51c6
|
@ -470,7 +470,11 @@ int unwind_frame(struct unwind_frame_s *frame)
|
|||
|
||||
/* Check the personality routine */
|
||||
|
||||
if ((*ctrl.insn & 0xff000000) == 0x80000000)
|
||||
if (((uintptr_t)ctrl.insn & 0x3) != 0)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
else if ((*ctrl.insn & 0xff000000) == 0x80000000)
|
||||
{
|
||||
ctrl.byte = 2;
|
||||
ctrl.entries = 1;
|
||||
|
|
Loading…
Reference in New Issue