File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 12
12
#define __UNWINDCURSOR_HPP__
13
13
14
14
#include " cet_unwind.h"
15
+ #include < errno.h>
16
+ #include < signal.h>
15
17
#include < stdint.h>
16
18
#include < stdio.h>
17
19
#include < stdlib.h>
33
35
#if defined(_LIBUNWIND_TARGET_LINUX) && \
34
36
(defined(_LIBUNWIND_TARGET_AARCH64) || defined(_LIBUNWIND_TARGET_RISCV) || \
35
37
defined (_LIBUNWIND_TARGET_S390X))
36
- #include < fcntl.h>
37
38
#include < sys/syscall.h>
38
39
#include < sys/uio.h>
39
40
#include < unistd.h>
@@ -2725,7 +2726,7 @@ bool UnwindCursor<A, R>::setInfoForSigReturn(Registers_arm64 &) {
2725
2726
if (!isReadableAddr (static_cast <void *>(pc)) ||
2726
2727
!isReadableAddr (static_cast <void *>(pc + 4 )))
2727
2728
return false ;
2728
- auto *instructions = static_cast <uint32_t *>(pc);
2729
+ auto *instructions = reinterpret_cast <uint32_t *>(pc);
2729
2730
// Look for instructions: mov x8, #0x8b; svc #0x0
2730
2731
if (instructions[0 ] != 0xd2801168 || instructions[1 ] != 0xd4000001 )
2731
2732
return false ;
@@ -2781,7 +2782,7 @@ bool UnwindCursor<A, R>::setInfoForSigReturn(Registers_riscv &) {
2781
2782
if (!isReadableAddr (static_cast <void *>(pc)) ||
2782
2783
!isReadableAddr (static_cast <void *>(pc + 4 )))
2783
2784
return false ;
2784
- const auto *instructions = static_cast <uint32_t *>(pc);
2785
+ const auto *instructions = reinterpret_cast <uint32_t *>(pc);
2785
2786
// Look for the two instructions used in the sigreturn trampoline
2786
2787
// __vdso_rt_sigreturn:
2787
2788
//
You can’t perform that action at this time.
0 commit comments