Files
ftmemsim-valgrind/example/ex_main.c
Nicholas Nethercote ad2f86232e Added some reasonably thorough documentation on how to write skins. Also added
an example skin which is referred to in the documentation, and is designed to
be a template which can be copied.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1122
2002-09-27 10:29:51 +00:00

30 lines
749 B
C

/*--------------------------------------------------------------------*/
/*--- An example skin. ex_main.c ---*/
/*--------------------------------------------------------------------*/
#include "vg_skin.h"
void SK_(pre_clo_init)(VgNeeds* needs, VgTrackEvents* track)
{
needs->name = "example";
needs->description = "an example Valgrind skin";
}
void SK_(post_clo_init)(void)
{
}
UCodeBlock* SK_(instrument)(UCodeBlock* cb, Addr a)
{
return cb;
}
void SK_(fini)(void)
{
}
/*--------------------------------------------------------------------*/
/*--- end ex_main.c ---*/
/*--------------------------------------------------------------------*/