mc-manual.xml fix new/delete expresions -> expression
[valgrind.git] / none / nl_main.c
blob6d4da55ccd2dac67eda8c5d2fd146e9ee365f7b7
2 /*--------------------------------------------------------------------*/
3 /*--- Nulgrind: The minimal Valgrind tool. nl_main.c ---*/
4 /*--------------------------------------------------------------------*/
6 /*
7 This file is part of Nulgrind, the minimal Valgrind tool,
8 which does no instrumentation or analysis.
10 Copyright (C) 2002-2017 Nicholas Nethercote
11 njn@valgrind.org
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.
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.
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, see <http://www.gnu.org/licenses/>.
26 The GNU General Public License is contained in the file COPYING.
29 #include "pub_tool_basics.h"
30 #include "pub_tool_tooliface.h"
31 #include "pub_tool_options.h"
33 static void nl_post_clo_init(void)
35 /* Unless we are actually tracking file descriptors we act as if we don't
36 handle any errors. */
37 if (!VG_(clo_track_fds))
38 VG_(needs_core_errors)(False);
41 static
42 IRSB* nl_instrument ( VgCallbackClosure* closure,
43 IRSB* bb,
44 const VexGuestLayout* layout,
45 const VexGuestExtents* vge,
46 const VexArchInfo* archinfo_host,
47 IRType gWordTy, IRType hWordTy )
49 return bb;
52 static void nl_fini(Int exitcode)
56 static void nl_pre_clo_init(void)
58 VG_(details_name) ("Nulgrind");
59 VG_(details_version) (NULL);
60 VG_(details_description) ("the minimal Valgrind tool");
61 VG_(details_copyright_author)(
62 "Copyright (C) 2002-2024, and GNU GPL'd, by Nicholas Nethercote et al.");
63 VG_(details_bug_reports_to) (VG_BUGS_TO);
65 VG_(details_avg_translation_sizeB) ( 275 );
67 VG_(basic_tool_funcs) (nl_post_clo_init,
68 nl_instrument,
69 nl_fini);
70 VG_(needs_xml_output) ();
71 VG_(needs_core_errors) (True); /* Yes, but... see nl_post_clo_init */
73 /* No needs, no core events to track */
76 VG_DETERMINE_INTERFACE_VERSION(nl_pre_clo_init)
78 /*--------------------------------------------------------------------*/
79 /*--- end ---*/
80 /*--------------------------------------------------------------------*/