mirror of
https://github.com/apache/nuttx.git
synced 2026-08-25 07:27:11 +00:00
arch/arm64: fixed backtrace skip calc error
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
parent
2c599bb9e6
commit
f5f0af4f9c
1 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ static int backtrace(uintptr_t *base, uintptr_t *limit,
|
|||
|
||||
if (pc)
|
||||
{
|
||||
if (*skip-- <= 0)
|
||||
if ((*skip)-- <= 0)
|
||||
{
|
||||
buffer[i++] = pc;
|
||||
}
|
||||
|
|
@ -66,7 +66,7 @@ static int backtrace(uintptr_t *base, uintptr_t *limit,
|
|||
break;
|
||||
}
|
||||
|
||||
if (*skip-- <= 0)
|
||||
if ((*skip)-- <= 0)
|
||||
{
|
||||
buffer[i++] = (void *)*(fp + 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue