From: Nicholas Nethercote Date: Mon, 23 Aug 2004 14:10:36 +0000 (+0000) Subject: Make some changes to Nulgrind -- it looks like Jeremy made some changes to it X-Git-Tag: svn/VALGRIND_2_2_0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d60edc277cbf9892c7f4a2773348e079216d643a;p=thirdparty%2Fvalgrind.git Make some changes to Nulgrind -- it looks like Jeremy made some changes to it as part of FV, but then later these changes become unnecessary. Anyway, it now looks more like the other tools again. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2598 --- diff --git a/none/nl_main.c b/none/nl_main.c index 5cb5e56810..a784960b67 100644 --- a/none/nl_main.c +++ b/none/nl_main.c @@ -30,22 +30,7 @@ #include "vg_skin.h" -//float SK_(shadow_ratio) = 9. / 8.; - -static void post_clo_init(void) -{ -} - -static UCodeBlock* instrument(UCodeBlock* cb, Addr a) -{ - return cb; -} - -static void fini(Int exitcode) -{ -} - -static void pre_clo_init(void) +void SK_(pre_clo_init)(void) { VG_(details_name) ("Nulgrind"); VG_(details_version) (NULL); @@ -55,15 +40,23 @@ static void pre_clo_init(void) VG_(details_bug_reports_to) (VG_BUGS_TO); /* No needs, no core events to track */ +} + +void SK_(post_clo_init)(void) +{ +} - /* entrypoints */ - VG_(init_post_clo_init)(post_clo_init); - VG_(init_instrument)(instrument); - VG_(init_fini)(fini); +UCodeBlock* SK_(instrument)(UCodeBlock* cb, Addr a) +{ + return cb; +} + +void SK_(fini)(Int exitcode) +{ } -VG_DETERMINE_INTERFACE_VERSION(pre_clo_init, 0) +VG_DETERMINE_INTERFACE_VERSION(SK_(pre_clo_init), 0) /*--------------------------------------------------------------------*/ -/*--- end nl_main.c ---*/ +/*--- end ---*/ /*--------------------------------------------------------------------*/