diff options
author | Jason King <jason.king@joyent.com> | 2020-04-05 04:31:23 +0000 |
---|---|---|
committer | Dave Watson <dade.watson@gmail.com> | 2020-04-29 08:35:44 -0700 |
commit | 6bba070f49138f0569f29088207322fde03e7b04 (patch) | |
tree | 9bd3666f6ac47e85002df65d58390ccd66720484 | |
parent | d433df57a7fa72cda1513a77683e932e25845e79 (diff) | |
download | libunwind-6bba070f49138f0569f29088207322fde03e7b04.tar.gz |
Fix Gtest-trace output for illumos/Solaris
-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); |