|
From: Tom H. <th...@cy...> - 2004-08-20 12:50:35
|
In message <412...@ya...>
pan...@ya... wrote:
> 1. But can we not trap signal(), sigaction() calls (similar to
> trapping malloc etc) to register the user function ptr
> in a internal data structure and then on the actual signal
> we do our job and then call user function ?
We already virtualise the signal handling anyway. The problem with
your suggestion is that the signal winds up having two effects, one
on valgrind and one on the target program, and that's pretty nasty.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|