|
From: Tom H. <to...@co...> - 2012-09-24 14:58:17
|
On 24/09/12 15:35, Petar Jovanovic wrote:
> +// Synthesise a SIGFPE.
> +void VG_(synth_sigfpe)(ThreadId tid)
> +{
> + vki_siginfo_t info;
> + struct vki_ucontext uc;
> +
> + vg_assert(VG_(threads)[tid].status == VgTs_Runnable);
> +
> + VG_(memset)(&info, 0, sizeof(info));
> + VG_(memset)(&uc, 0, sizeof(uc));
> + info.si_signo = VKI_SIGFPE;
> + info.si_code = VKI_TRAP_BRKPT;
Is that really the right code value?
Tom
--
Tom Hughes (to...@co...)
http://compton.nu/
|