mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-09 13:18:15 +00:00
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
38 lines
1.0 KiB
C
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 ---*/
|
|
/*--------------------------------------------------------------------*/
|