1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-05 01:09:27 +01:00

Fix i386 distinctions between freebsd and linux for mcontext.

This commit is contained in:
Konstantin Belousov 2010-03-10 23:51:09 +02:00
parent bb41eba56c
commit 3b026a7ed8

View file

@ -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");
}