summaryrefslogtreecommitdiffstats
path: root/backends/ppc_initreg.c
Commit message (Collapse)AuthorAgeFilesLines
* backends: ppc use define instead of const for size of dwarf_regs array.Mark Wielaard2018-10-201-4/+4
| | | | | | | | | The size of the dwarf_regs is a constant, but when building without optimizations the compiler doesn't see that and will warn that it cannot proof the stack size is bounded. Use a define instead of a const, so the compiler will use a constant expression everywhere. Signed-off-by: Mark Wielaard <[email protected]>
* Include sys/ptrace.h as early as possible.Mark Wielaard2018-02-151-2/+3
| | | | | | | | | | | | | | | | | | | On some systems, at least on Fedora 27 ppc64le with glibc 2.26-24 and kernel 4.14.18-300, including sys/ptrace.h late (after signal.h or sys/wait.h for example) will cause issues and produce errors like: In file included from /usr/include/asm/sigcontext.h:12:0, from /usr/include/bits/sigcontext.h:30, from /usr/include/signal.h:287, from /usr/include/sys/wait.h:36, from linux-pid-attach.c:38: /usr/include/sys/ptrace.h:73:3: error: expected identifier before numeric constant PTRACE_GETREGS = 12, ^ Swapping the include order fixes these issues. Signed-off-by: Mark Wielaard <[email protected]>
* Clean up linux-specific system includesUlf Hermann2017-04-261-2/+2
| | | | | | We only include them where we actually need them and only on linux. Signed-off-by: Ulf Hermann <[email protected]>
* unwinder: ppc and ppc64Jan Kratochvil2013-12-151-0/+114
Signed-off-by: Jan Kratochvil <[email protected]>