Skip to content

Commit

Permalink
Merge pull request #248 from okeuday/powerpc-nip-register-fix
Browse files Browse the repository at this point in the history
Fix Linux powerpc use of struct pt_regs
  • Loading branch information
bombela committed Dec 8, 2021
2 parents 8723507 + 4bec538 commit 4924389
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backward.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@
#else
#include <link.h>
#endif
#if defined(__ppc__) || defined(__powerpc) || defined(__powerpc__) || \
defined(__POWERPC__)
// Linux kernel header required for the struct pt_regs definition
// to access the NIP (Next Instruction Pointer) register value
#include <asm/ptrace.h>
#endif
#include <signal.h>
#include <sys/stat.h>
#include <syscall.h>
Expand Down

0 comments on commit 4924389

Please sign in to comment.