|
From: Julian S. <js...@ac...> - 2012-09-24 15:10:18
|
On Monday, September 24, 2012, Tom Hughes wrote:
> 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?
Hmm, good point. Maybe not. Petar, if this is a mips-specific
value, then I think it would be safer to put it inside ifdef(VGA_mips32),
and put vg_assert(0) for all other platforms, since right now
it is only on mips that this will be used.
J
|