|
From: Tom H. <to...@co...> - 2005-08-17 14:58:51
|
In message <1124289766.7051.21.camel@localhost.localdomain>
Rob Holland <ti...@ge...> wrote:
> Sorry if it wasn't clear from my previous email. I have it sorted now :)
>
> Just figuring out how to report errors from the replacement functions
> now, looks like they can't resolve the VG_ symbols.
Replacement functions are running on the virtual CPU not the real
one so they can't call valgrind directly. You will have to use client
requests which are implemented by the valgrind side of your extension.
If you just want to print something then the generic VALGRIND_PRINTF
and VALGRIND_PRINTF_BACKTRACE may be enough, but to get the full error
grouping and suppression you will need your own client requests. Look
at the overlap detection in memcheck's string replacement library for
an example.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|