|
From: Chris J. <ch...@at...> - 2005-02-04 09:20:31
|
> On Thu, 2005-02-03 at 21:17 +0000, Chris January wrote: > > I think the breakpoints patch I've posted to this list could be > > informative here since it handles INT $3. The same > principles could be > > extended to handle other interrupts. Basically what the > patch does is > > translate the trap instruction into code to return from the > innerloop > > with a particular TRC value. This value is then caught in > > VG_(scheduler) which raises a real signal (SIGTRAP in this case). > > Raising a real signal has the benefit it can be seen by a debugger. > > Actually, that's what my patch does, only much more simply. > It calls a helper which invokes a real int3 instruction; the > generated SIGTRAP is then delivered to the thread using the > normal signal machinery. Doesn't that mean %eip isn't in the baseBlock/VG_(threads) at exception time? Chris |