diff options
Diffstat (limited to 'tests/Gtest-trace.c')
-rw-r--r-- | tests/Gtest-trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Gtest-trace.c b/tests/Gtest-trace.c index fc1f646e..48667bb9 100644 --- a/tests/Gtest-trace.c +++ b/tests/Gtest-trace.c @@ -207,7 +207,7 @@ sighandler (int signal, void *siginfo UNUSED, void *context) printf (" @ %lx", (unsigned long) uc->uc_mcontext.mc_eip); #endif #elif UNW_TARGET_X86_64 -#if defined __linux__ +#if defined __linux__ || defined __sun printf (" @ %lx", (unsigned long) uc->uc_mcontext.gregs[REG_RIP]); #elif defined __FreeBSD__ printf (" @ %lx", (unsigned long) uc->uc_mcontext.mc_rip); |