diff options
author | Jason King <jason.king@joyent.com> | 2020-04-04 06:31:08 +0000 |
---|---|---|
committer | Dave Watson <dade.watson@gmail.com> | 2020-04-29 08:35:24 -0700 |
commit | 7783f6379b9d59d07071d725aa14181df574236a (patch) | |
tree | 2157b887007a3bbe6a86c6ca6b8e130ff6a30a36 | |
parent | a8b94341faf8b04d9041bbaecb54481b70295a6c (diff) | |
download | libunwind-7783f6379b9d59d07071d725aa14181df574236a.tar.gz |
Update Gtest-bt for illumos and Solaris
-rw-r--r-- | tests/Gtest-bt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Gtest-bt.c b/tests/Gtest-bt.c index beae2a3c..d5b48447 100644 --- a/tests/Gtest-bt.c +++ b/tests/Gtest-bt.c @@ -176,7 +176,7 @@ sighandler (int signal, void *siginfo UNUSED, void *context) { printf ("sighandler: got signal %d, sp=%p", signal, &sp); #if UNW_TARGET_IA64 -# if defined(__linux__) +# if defined(__linux__) || defined __sun printf (" @ %lx", uc->uc_mcontext.sc_ip); # else { @@ -189,13 +189,13 @@ sighandler (int signal, void *siginfo UNUSED, void *context) } # endif #elif UNW_TARGET_X86 -#if defined __linux__ +#if defined __linux__ || defined __sun printf (" @ %lx", (unsigned long) uc->uc_mcontext.gregs[REG_EIP]); #elif defined __FreeBSD__ 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); |