mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-26 21:13:42 +01:00
Fix i386 distinctions between freebsd and linux for mcontext.
This commit is contained in:
parent
bb41eba56c
commit
3b026a7ed8
1 changed files with 3 additions and 0 deletions
|
@ -181,7 +181,10 @@ sighandler (int signal, void *siginfo, void *context)
|
|||
}
|
||||
# endif
|
||||
#elif UNW_TARGET_X86
|
||||
#if defined __linux__
|
||||
printf (" @ %lx", (unsigned long) uc->uc_mcontext.gregs[REG_EIP]);
|
||||
#elif defined __FreeBSD__
|
||||
printf (" @ %lx", (unsigned long) uc->uc_mcontext.mc_eip);
|
||||
#endif
|
||||
printf ("\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue