njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 1 | |
| 2 | /*--------------------------------------------------------------------*/ |
nethercote | 137bc55 | 2003-11-14 17:47:54 +0000 | [diff] [blame] | 3 | /*--- CoreCheck: a tool reporting errors detected in core. ---*/ |
njn | c953984 | 2002-10-02 13:26:35 +0000 | [diff] [blame] | 4 | /*--- cc_main.c ---*/ |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 5 | /*--------------------------------------------------------------------*/ |
| 6 | |
| 7 | /* |
nethercote | 137bc55 | 2003-11-14 17:47:54 +0000 | [diff] [blame] | 8 | This file is part of CoreCheck, a rudimentary Valgrind tool for |
njn | c953984 | 2002-10-02 13:26:35 +0000 | [diff] [blame] | 9 | detecting certain basic program errors. |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 10 | |
njn | 5361242 | 2005-03-12 16:22:54 +0000 | [diff] [blame] | 11 | Copyright (C) 2002-2005 Nicholas Nethercote |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 12 | 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 | |
nethercote | 4606320 | 2004-09-02 08:51:43 +0000 | [diff] [blame] | 32 | #include "tool.h" |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 33 | |
njn | 26f0251 | 2004-11-22 18:33:15 +0000 | [diff] [blame] | 34 | void TL_(pre_clo_init)(void) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 35 | { |
njn | b9c427c | 2004-12-01 14:14:42 +0000 | [diff] [blame] | 36 | VG_(details_name) ("Corecheck"); |
njn | 810086f | 2002-11-14 12:42:47 +0000 | [diff] [blame] | 37 | VG_(details_version) (NULL); |
| 38 | VG_(details_description) ("a rudimentary error detector"); |
| 39 | VG_(details_copyright_author)( |
njn | 5361242 | 2005-03-12 16:22:54 +0000 | [diff] [blame] | 40 | "Copyright (C) 2002-2005, and GNU GPL'd, by Nicholas Nethercote."); |
nethercote | 421281e | 2003-11-20 16:20:55 +0000 | [diff] [blame] | 41 | VG_(details_bug_reports_to) (VG_BUGS_TO); |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 42 | |
njn | 810086f | 2002-11-14 12:42:47 +0000 | [diff] [blame] | 43 | VG_(needs_core_errors)(); |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 44 | |
| 45 | /* No core events to track */ |
| 46 | } |
| 47 | |
njn | 26f0251 | 2004-11-22 18:33:15 +0000 | [diff] [blame] | 48 | VG_DETERMINE_INTERFACE_VERSION(TL_(pre_clo_init), 0) |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 49 | |
njn | 26f0251 | 2004-11-22 18:33:15 +0000 | [diff] [blame] | 50 | void TL_(post_clo_init)(void) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 51 | { |
| 52 | } |
| 53 | |
sewardj | d54babf | 2005-03-21 00:55:49 +0000 | [diff] [blame] | 54 | IRBB* TL_(instrument)(IRBB* bb_in, VexGuestLayout* layout, |
| 55 | IRType gWordTy, IRType hWordTy ) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 56 | { |
sewardj | 9f649aa | 2004-11-22 20:38:40 +0000 | [diff] [blame] | 57 | return bb_in; |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 58 | } |
| 59 | |
njn | 26f0251 | 2004-11-22 18:33:15 +0000 | [diff] [blame] | 60 | void TL_(fini)(Int exitcode) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 61 | { |
| 62 | } |
| 63 | |
| 64 | /*--------------------------------------------------------------------*/ |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 65 | /*--- end cc_main.c ---*/ |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 66 | /*--------------------------------------------------------------------*/ |