summaryrefslogtreecommitdiff
path: root/src/stacktrace_powerpc-linux-inl.h
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-07-01 13:21:21 -0700
committerKhem Raj <raj.khem@gmail.com>2017-07-16 15:57:34 -0700
commite41bc414048eb4a37743e294bed3f1c63a1fa559 (patch)
tree2f3cc992527ee670bac9cd17411172553e7e715d /src/stacktrace_powerpc-linux-inl.h
parentbf840dec0495e17f5c8403e68e10b9d6bf05c559 (diff)
downloadgperftools-e41bc414048eb4a37743e294bed3f1c63a1fa559.tar.gz
Use ucontext_t instead of struct ucontext
Newer glibc has dropped the ucontext tag from exposing Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'src/stacktrace_powerpc-linux-inl.h')
-rw-r--r--src/stacktrace_powerpc-linux-inl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stacktrace_powerpc-linux-inl.h b/src/stacktrace_powerpc-linux-inl.h
index 3b3843b..a301a46 100644
--- a/src/stacktrace_powerpc-linux-inl.h
+++ b/src/stacktrace_powerpc-linux-inl.h
@@ -53,7 +53,6 @@
#elif defined(HAVE_UCONTEXT_H)
#include <ucontext.h> // for ucontext_t
#endif
-typedef ucontext ucontext_t;
// PowerPC64 Little Endian follows BE wrt. backchain, condition register,
// and LR save area, so no need to adjust the reading struct.
@@ -202,7 +201,7 @@ static int GET_STACK_TRACE_OR_FRAMES {
struct rt_signal_frame_32 {
char dummy[64 + 16];
siginfo_t info;
- struct ucontext uc;
+ ucontext_t uc;
// We don't care about the rest, since IP value is at 'uc' field.A
} *sigframe = reinterpret_cast<rt_signal_frame_32*>(current);
result[n] = (void*) sigframe->uc.uc_mcontext.uc_regs->gregs[PT_NIP];