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 | |
nethercote | bb1c991 | 2004-01-04 16:43:23 +0000 | [diff] [blame] | 11 | Copyright (C) 2002-2004 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 | 810086f | 2002-11-14 12:42:47 +0000 | [diff] [blame] | 36 | VG_(details_name) ("Coregrind"); |
| 37 | VG_(details_version) (NULL); |
| 38 | VG_(details_description) ("a rudimentary error detector"); |
| 39 | VG_(details_copyright_author)( |
nethercote | bb1c991 | 2004-01-04 16:43:23 +0000 | [diff] [blame] | 40 | "Copyright (C) 2002-2004, 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 | 9f649aa | 2004-11-22 20:38:40 +0000 | [diff] [blame^] | 54 | IRBB* TL_(instrument)(IRBB* bb_in, VexGuestLayout* layout, IRType hWordTy ) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 55 | { |
sewardj | 9f649aa | 2004-11-22 20:38:40 +0000 | [diff] [blame^] | 56 | return bb_in; |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 57 | } |
| 58 | |
njn | 26f0251 | 2004-11-22 18:33:15 +0000 | [diff] [blame] | 59 | void TL_(fini)(Int exitcode) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 60 | { |
| 61 | } |
| 62 | |
| 63 | /*--------------------------------------------------------------------*/ |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 64 | /*--- end cc_main.c ---*/ |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 65 | /*--------------------------------------------------------------------*/ |