bombela / backward-cpp

A beautiful stack trace pretty printer for C++
MIT License
3.68k stars 467 forks source link

Fix Linux powerpc use of struct pt_regs #248

Closed okeuday closed 2 years ago

okeuday commented 2 years ago

Requires using the Linux kernel header file ptrace.h. Allows struct pt_regs to be used for accessing the nip (Next Instruction Pointer) register value.

This fixes a compilation problem at https://github.com/bombela/backward-cpp/blob/872350775655ad610f66aea325c319950daa7c95/backward.hpp#L4225 on Alpine Linux.