blob: 7b5188d96fc744d5dd576be1a8495ac9ce982f3d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- src/zm_signal.cpp.orig 2016-10-03 17:21:50 UTC
+++ src/zm_signal.cpp
@@ -63,17 +63,9 @@ RETSIGTYPE zm_die_handler(int signal)
ucontext_t *uc = (ucontext_t *) context;
cr2 = info->si_addr;
#if defined(__x86_64__)
- #ifdef __FreeBSD_kernel__
ip = (void *)(uc->uc_mcontext.mc_rip);
- #else
- ip = (void *)(uc->uc_mcontext.gregs[REG_RIP]);
- #endif
#else
- #ifdef __FreeBSD_kernel__
ip = (void *)(uc->uc_mcontext.mc_eip);
- #else
- ip = (void *)(uc->uc_mcontext.gregs[REG_EIP]);
- #endif
#endif // defined(__x86_64__)
// Print the signal address and instruction pointer if available
|