mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-09 05:10:23 +00:00
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
30 lines
749 B
C
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 ---*/
|
|
/*--------------------------------------------------------------------*/
|