blob: bae14a82dc6e23372ec4d612b3df920d920d502c [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
njn2bc10122005-05-08 02:10:27 +000012 njn@valgrind.org
njn25e49d8e72002-09-23 09:36:25 +000013
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"
njn43b9a8a2005-05-10 04:37:01 +000033#include "pub_tool_tooliface.h"
njn25e49d8e72002-09-23 09:36:25 +000034
njn51d827b2005-05-09 01:02:08 +000035static void cc_post_clo_init(void)
36{
37}
38
39static IRBB* cc_instrument(IRBB* bb_in, VexGuestLayout* layout,
40 IRType gWordTy, IRType hWordTy )
41{
42 return bb_in;
43}
44
45static void cc_fini(Int exitcode)
46{
47}
48
49static void cc_pre_clo_init(void)
njn25e49d8e72002-09-23 09:36:25 +000050{
njnb9c427c2004-12-01 14:14:42 +000051 VG_(details_name) ("Corecheck");
njn810086f2002-11-14 12:42:47 +000052 VG_(details_version) (NULL);
53 VG_(details_description) ("a rudimentary error detector");
54 VG_(details_copyright_author)(
njn53612422005-03-12 16:22:54 +000055 "Copyright (C) 2002-2005, and GNU GPL'd, by Nicholas Nethercote.");
nethercote421281e2003-11-20 16:20:55 +000056 VG_(details_bug_reports_to) (VG_BUGS_TO);
njn25e49d8e72002-09-23 09:36:25 +000057
njn51d827b2005-05-09 01:02:08 +000058 VG_(basic_tool_funcs) (cc_post_clo_init,
59 cc_instrument,
60 cc_fini);
njn8a97c6d2005-03-31 04:37:24 +000061
njn810086f2002-11-14 12:42:47 +000062 VG_(needs_core_errors)();
njn25e49d8e72002-09-23 09:36:25 +000063
64 /* No core events to track */
65}
66
njn51d827b2005-05-09 01:02:08 +000067VG_DETERMINE_INTERFACE_VERSION(cc_pre_clo_init, 0)
njn8a97c6d2005-03-31 04:37:24 +000068
njn25e49d8e72002-09-23 09:36:25 +000069/*--------------------------------------------------------------------*/
njn25cac76cb2002-09-23 11:21:57 +000070/*--- end cc_main.c ---*/
njn25e49d8e72002-09-23 09:36:25 +000071/*--------------------------------------------------------------------*/