blob: c181d82614d3e172fe04992a4e434ad592ebad9b [file] [log] [blame]
njn25e49d8e72002-09-23 09:36:25 +00001
2/*--------------------------------------------------------------------*/
nethercote137bc552003-11-14 17:47:54 +00003/*--- Nulgrind: The null tool. nl_main.c ---*/
njn25e49d8e72002-09-23 09:36:25 +00004/*--------------------------------------------------------------------*/
5
6/*
nethercote137bc552003-11-14 17:47:54 +00007 This file is part of Nulgrind, the simplest possible Valgrind tool,
njnc9539842002-10-02 13:26:35 +00008 which does nothing.
njn25e49d8e72002-09-23 09:36:25 +00009
njn53612422005-03-12 16:22:54 +000010 Copyright (C) 2002-2005 Nicholas Nethercote
njn25e49d8e72002-09-23 09:36:25 +000011 njn25@cam.ac.uk
12
13 This program is free software; you can redistribute it and/or
14 modify it under the terms of the GNU General Public License as
15 published by the Free Software Foundation; either version 2 of the
16 License, or (at your option) any later version.
17
18 This program is distributed in the hope that it will be useful, but
19 WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
26 02111-1307, USA.
27
28 The GNU General Public License is contained in the file COPYING.
29*/
30
nethercote46063202004-09-02 08:51:43 +000031#include "tool.h"
njn25e49d8e72002-09-23 09:36:25 +000032
njn26f02512004-11-22 18:33:15 +000033void TL_(pre_clo_init)(void)
njn25e49d8e72002-09-23 09:36:25 +000034{
njn810086f2002-11-14 12:42:47 +000035 VG_(details_name) ("Nulgrind");
36 VG_(details_version) (NULL);
37 VG_(details_description) ("a binary JIT-compiler");
38 VG_(details_copyright_author)(
njn53612422005-03-12 16:22:54 +000039 "Copyright (C) 2002-2005, and GNU GPL'd, by Nicholas Nethercote.");
nethercote421281e2003-11-20 16:20:55 +000040 VG_(details_bug_reports_to) (VG_BUGS_TO);
njn25e49d8e72002-09-23 09:36:25 +000041
njn8a97c6d2005-03-31 04:37:24 +000042 VG_(basic_tool_funcs) (TL_(post_clo_init),
43 TL_(instrument),
44 TL_(fini));
45
njn25e49d8e72002-09-23 09:36:25 +000046 /* No needs, no core events to track */
47}
48
njn26f02512004-11-22 18:33:15 +000049void TL_(post_clo_init)(void)
nethercote3da4a8c2004-08-23 14:10:36 +000050{
51}
52
sewardjd54babf2005-03-21 00:55:49 +000053IRBB* TL_(instrument)(IRBB* bb, VexGuestLayout* layout,
54 IRType gWordTy, IRType hWordTy)
nethercote3da4a8c2004-08-23 14:10:36 +000055{
sewardj9f649aa2004-11-22 20:38:40 +000056 return bb;
nethercote3da4a8c2004-08-23 14:10:36 +000057}
58
njn26f02512004-11-22 18:33:15 +000059void TL_(fini)(Int exitcode)
nethercote3da4a8c2004-08-23 14:10:36 +000060{
61}
62
njn26f02512004-11-22 18:33:15 +000063VG_DETERMINE_INTERFACE_VERSION(TL_(pre_clo_init), 0)
njn25e49d8e72002-09-23 09:36:25 +000064
65/*--------------------------------------------------------------------*/
nethercote3da4a8c2004-08-23 14:10:36 +000066/*--- end ---*/
njn25e49d8e72002-09-23 09:36:25 +000067/*--------------------------------------------------------------------*/