Skip to content

Commit 20c1aa9

Browse files
add debug log
1 parent e22d884 commit 20c1aa9

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

libunwind/src/Registers.hpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,23 +1839,25 @@ class _LIBUNWIND_HIDDEN Registers_arm64 {
18391839
uint64_t ret;
18401840
register uint64_t x17 __asm("x17") = ptr;
18411841
register uint64_t x16 __asm("x16") = salt;
1842-
asm volatile ("hint 0xc" // autia1716
1843-
: "+r"(x17)
1844-
: "r"(x16)
1845-
:);
1842+
asm volatile("hint 0xc" // autia1716
1843+
: "+r"(x17)
1844+
: "r"(x16)
1845+
:);
18461846
ret = x17;
18471847
uint64_t checkValue = ptr;
18481848
// Support for machines without FPAC.
18491849
// Strip the upper bits with `XPACLRI` and compare with the
18501850
// authenticated value.
1851-
asm volatile ("mov x30, %[checkValue] \r\n" \
1852-
"hint 0x7 \r\n" \
1853-
"mov %[checkValue], x30 \r\n" \
1851+
asm volatile("mov x30, %[checkValue] \r\n" \
1852+
"hint 0x7 \r\n" \
1853+
"mov %[checkValue], x30 \r\n" \
18541854
: [checkValue] "+r"(checkValue)
18551855
:
18561856
: "x30");
1857-
if (x17 != checkValue)
1857+
if (x17 != checkValue) {
1858+
_LIBUNWIND_LOG("x17 %llx, strip %llx, ptr %llc", x17, checkValue, ptr);
18581859
_LIBUNWIND_ABORT("IP PAC authentication failure");
1860+
}
18591861
return ret;
18601862
}
18611863

0 commit comments

Comments
 (0)