blob: e0790b19a306b93958e8c6967e5d2c573f18b679 [file] [log] [blame]
njn25e49d8e72002-09-23 09:36:25 +00001
2/*--------------------------------------------------------------------*/
njn05a89172009-07-29 02:36:21 +00003/*--- Nulgrind: The minimal Valgrind tool. nl_main.c ---*/
njn25e49d8e72002-09-23 09:36:25 +00004/*--------------------------------------------------------------------*/
5
6/*
njn05a89172009-07-29 02:36:21 +00007 This file is part of Nulgrind, the minimal Valgrind tool,
8 which does no instrumentation or analysis.
njn25e49d8e72002-09-23 09:36:25 +00009
Elliott Hughesed398002017-06-21 14:41:24 -070010 Copyright (C) 2002-2017 Nicholas Nethercote
njn2bc10122005-05-08 02:10:27 +000011 njn@valgrind.org
njn25e49d8e72002-09-23 09:36:25 +000012
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
njnc7561b92005-06-19 01:24:32 +000031#include "pub_tool_basics.h"
njn43b9a8a2005-05-10 04:37:01 +000032#include "pub_tool_tooliface.h"
njn25e49d8e72002-09-23 09:36:25 +000033
njn51d827b2005-05-09 01:02:08 +000034static void nl_post_clo_init(void)
35{
36}
37
sewardj4ba057c2005-10-18 12:04:18 +000038static
sewardj0b9d74a2006-12-24 02:24:11 +000039IRSB* nl_instrument ( VgCallbackClosure* closure,
40 IRSB* bb,
florian3c0c9472014-09-24 12:06:55 +000041 const VexGuestLayout* layout,
42 const VexGuestExtents* vge,
43 const VexArchInfo* archinfo_host,
sewardj461df9c2006-01-17 02:06:39 +000044 IRType gWordTy, IRType hWordTy )
njn51d827b2005-05-09 01:02:08 +000045{
46 return bb;
47}
48
49static void nl_fini(Int exitcode)
50{
51}
52
53static void nl_pre_clo_init(void)
njn25e49d8e72002-09-23 09:36:25 +000054{
njn810086f2002-11-14 12:42:47 +000055 VG_(details_name) ("Nulgrind");
56 VG_(details_version) (NULL);
njn05a89172009-07-29 02:36:21 +000057 VG_(details_description) ("the minimal Valgrind tool");
njn810086f2002-11-14 12:42:47 +000058 VG_(details_copyright_author)(
Elliott Hughesed398002017-06-21 14:41:24 -070059 "Copyright (C) 2002-2017, and GNU GPL'd, by Nicholas Nethercote.");
nethercote421281e2003-11-20 16:20:55 +000060 VG_(details_bug_reports_to) (VG_BUGS_TO);
njn25e49d8e72002-09-23 09:36:25 +000061
sewardj1e0fff62011-01-10 15:01:03 +000062 VG_(details_avg_translation_sizeB) ( 275 );
63
njn51d827b2005-05-09 01:02:08 +000064 VG_(basic_tool_funcs) (nl_post_clo_init,
65 nl_instrument,
66 nl_fini);
njn8a97c6d2005-03-31 04:37:24 +000067
njn25e49d8e72002-09-23 09:36:25 +000068 /* No needs, no core events to track */
69}
70
sewardj45f4e7c2005-09-27 19:20:21 +000071VG_DETERMINE_INTERFACE_VERSION(nl_pre_clo_init)
njn25e49d8e72002-09-23 09:36:25 +000072
73/*--------------------------------------------------------------------*/
nethercote3da4a8c2004-08-23 14:10:36 +000074/*--- end ---*/
njn25e49d8e72002-09-23 09:36:25 +000075/*--------------------------------------------------------------------*/