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 |
njn | 2bc1012 | 2005-05-08 02:10:27 +0000 | [diff] [blame] | 12 | njn@valgrind.org |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 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" |
njn | 43b9a8a | 2005-05-10 04:37:01 +0000 | [diff] [blame] | 33 | #include "pub_tool_tooliface.h" |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 34 | |
njn | 51d827b | 2005-05-09 01:02:08 +0000 | [diff] [blame] | 35 | static void cc_post_clo_init(void) |
| 36 | { |
| 37 | } |
| 38 | |
| 39 | static IRBB* cc_instrument(IRBB* bb_in, VexGuestLayout* layout, |
| 40 | IRType gWordTy, IRType hWordTy ) |
| 41 | { |
| 42 | return bb_in; |
| 43 | } |
| 44 | |
| 45 | static void cc_fini(Int exitcode) |
| 46 | { |
| 47 | } |
| 48 | |
| 49 | static void cc_pre_clo_init(void) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 50 | { |
njn | b9c427c | 2004-12-01 14:14:42 +0000 | [diff] [blame] | 51 | VG_(details_name) ("Corecheck"); |
njn | 810086f | 2002-11-14 12:42:47 +0000 | [diff] [blame] | 52 | VG_(details_version) (NULL); |
| 53 | VG_(details_description) ("a rudimentary error detector"); |
| 54 | VG_(details_copyright_author)( |
njn | 5361242 | 2005-03-12 16:22:54 +0000 | [diff] [blame] | 55 | "Copyright (C) 2002-2005, and GNU GPL'd, by Nicholas Nethercote."); |
nethercote | 421281e | 2003-11-20 16:20:55 +0000 | [diff] [blame] | 56 | VG_(details_bug_reports_to) (VG_BUGS_TO); |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 57 | |
njn | 51d827b | 2005-05-09 01:02:08 +0000 | [diff] [blame] | 58 | VG_(basic_tool_funcs) (cc_post_clo_init, |
| 59 | cc_instrument, |
| 60 | cc_fini); |
njn | 8a97c6d | 2005-03-31 04:37:24 +0000 | [diff] [blame] | 61 | |
njn | 810086f | 2002-11-14 12:42:47 +0000 | [diff] [blame] | 62 | VG_(needs_core_errors)(); |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 63 | |
| 64 | /* No core events to track */ |
| 65 | } |
| 66 | |
njn | 51d827b | 2005-05-09 01:02:08 +0000 | [diff] [blame] | 67 | VG_DETERMINE_INTERFACE_VERSION(cc_pre_clo_init, 0) |
njn | 8a97c6d | 2005-03-31 04:37:24 +0000 | [diff] [blame] | 68 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 69 | /*--------------------------------------------------------------------*/ |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 70 | /*--- end cc_main.c ---*/ |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 71 | /*--------------------------------------------------------------------*/ |