blob: 0d815120ba02246fa8bb03b5419bfd5d8034e46d [file] [log] [blame]
njn25e49d8e72002-09-23 09:36:25 +00001
2/*--------------------------------------------------------------------*/
nethercote137bc552003-11-14 17:47:54 +00003/*--- CoreCheck: a tool reporting errors detected in core. ---*/
njnc9539842002-10-02 13:26:35 +00004/*--- cc_main.c ---*/
njn25e49d8e72002-09-23 09:36:25 +00005/*--------------------------------------------------------------------*/
6
7/*
nethercote137bc552003-11-14 17:47:54 +00008 This file is part of CoreCheck, a rudimentary Valgrind tool for
njnc9539842002-10-02 13:26:35 +00009 detecting certain basic program errors.
njn25e49d8e72002-09-23 09:36:25 +000010
njn53612422005-03-12 16:22:54 +000011 Copyright (C) 2002-2005 Nicholas Nethercote
njn25e49d8e72002-09-23 09:36:25 +000012 njn25@cam.ac.uk
13
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License as
16 published by the Free Software Foundation; either version 2 of the
17 License, or (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 General Public License for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
27 02111-1307, USA.
28
29 The GNU General Public License is contained in the file COPYING.
30*/
31
nethercote46063202004-09-02 08:51:43 +000032#include "tool.h"
njn25e49d8e72002-09-23 09:36:25 +000033
njn26f02512004-11-22 18:33:15 +000034void TL_(pre_clo_init)(void)
njn25e49d8e72002-09-23 09:36:25 +000035{
njnb9c427c2004-12-01 14:14:42 +000036 VG_(details_name) ("Corecheck");
njn810086f2002-11-14 12:42:47 +000037 VG_(details_version) (NULL);
38 VG_(details_description) ("a rudimentary error detector");
39 VG_(details_copyright_author)(
njn53612422005-03-12 16:22:54 +000040 "Copyright (C) 2002-2005, and GNU GPL'd, by Nicholas Nethercote.");
nethercote421281e2003-11-20 16:20:55 +000041 VG_(details_bug_reports_to) (VG_BUGS_TO);
njn25e49d8e72002-09-23 09:36:25 +000042
njn810086f2002-11-14 12:42:47 +000043 VG_(needs_core_errors)();
njn25e49d8e72002-09-23 09:36:25 +000044
45 /* No core events to track */
46}
47
njn26f02512004-11-22 18:33:15 +000048VG_DETERMINE_INTERFACE_VERSION(TL_(pre_clo_init), 0)
fitzhardinge98abfc72003-12-16 02:05:15 +000049
njn26f02512004-11-22 18:33:15 +000050void TL_(post_clo_init)(void)
njn25e49d8e72002-09-23 09:36:25 +000051{
52}
53
sewardjd54babf2005-03-21 00:55:49 +000054IRBB* TL_(instrument)(IRBB* bb_in, VexGuestLayout* layout,
55 IRType gWordTy, IRType hWordTy )
njn25e49d8e72002-09-23 09:36:25 +000056{
sewardj9f649aa2004-11-22 20:38:40 +000057 return bb_in;
njn25e49d8e72002-09-23 09:36:25 +000058}
59
njn26f02512004-11-22 18:33:15 +000060void TL_(fini)(Int exitcode)
njn25e49d8e72002-09-23 09:36:25 +000061{
62}
63
64/*--------------------------------------------------------------------*/
njn25cac76cb2002-09-23 11:21:57 +000065/*--- end cc_main.c ---*/
njn25e49d8e72002-09-23 09:36:25 +000066/*--------------------------------------------------------------------*/