Files
ftmemsim-valgrind/example/ex_main.c
Nicholas Nethercote 9c534e3a5f Added a basic core/skin interface versioning system. Each skin must use the
macro VG_DETERMINE_INTERFACE_VERSION exactly once.  If the X.Y core and skin
versions don't have a matching X (indicating binary incompatibility), Valgrind
will abort execution immediately at startup.

I even documented it in the skins guide!


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1279
2002-11-08 15:48:16 +00:00

38 lines
1.0 KiB
C

/*--------------------------------------------------------------------*/
/*--- An example skin. ex_main.c ---*/
/*--------------------------------------------------------------------*/
#include "vg_skin.h"
VG_DETERMINE_INTERFACE_VERSION
void SK_(pre_clo_init)(VgDetails* details, VgNeeds* needs, VgTrackEvents* track)
{
details->name = "Example";
details->version = "0.0.1";
details->description = "an example Valgrind skin";
details->copyright_author =
"Copyright (C) 2002, and put in the public domain, by Santa Claus.";
details->bug_reports_to = "santa.claus@northpole.org";
/* No needs, no core events to track */
}
void SK_(post_clo_init)(void)
{
}
UCodeBlock* SK_(instrument)(UCodeBlock* cb, Addr a)
{
return cb;
}
void SK_(fini)(void)
{
}
/*--------------------------------------------------------------------*/
/*--- end ex_main.c ---*/
/*--------------------------------------------------------------------*/