arch/arm64: fixed backtrace skip calc error
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
parent
2c599bb9e6
commit
f5f0af4f9c
|
@ -53,7 +53,7 @@ static int backtrace(uintptr_t *base, uintptr_t *limit,
|
||||||
|
|
||||||
if (pc)
|
if (pc)
|
||||||
{
|
{
|
||||||
if (*skip-- <= 0)
|
if ((*skip)-- <= 0)
|
||||||
{
|
{
|
||||||
buffer[i++] = pc;
|
buffer[i++] = pc;
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ static int backtrace(uintptr_t *base, uintptr_t *limit,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*skip-- <= 0)
|
if ((*skip)-- <= 0)
|
||||||
{
|
{
|
||||||
buffer[i++] = (void *)*(fp + 1);
|
buffer[i++] = (void *)*(fp + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue