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 | /*--- Nulgrind: The null tool. nl_main.c ---*/ |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 4 | /*--------------------------------------------------------------------*/ |
| 5 | |
| 6 | /* |
nethercote | 137bc55 | 2003-11-14 17:47:54 +0000 | [diff] [blame] | 7 | This file is part of Nulgrind, the simplest possible Valgrind tool, |
njn | c953984 | 2002-10-02 13:26:35 +0000 | [diff] [blame] | 8 | which does nothing. |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 9 | |
njn | 5361242 | 2005-03-12 16:22:54 +0000 | [diff] [blame] | 10 | Copyright (C) 2002-2005 Nicholas Nethercote |
njn | 2bc1012 | 2005-05-08 02:10:27 +0000 | [diff] [blame] | 11 | njn@valgrind.org |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 12 | |
| 13 | This program is free software; you can redistribute it and/or |
| 14 | modify it under the terms of the GNU General Public License as |
| 15 | published by the Free Software Foundation; either version 2 of the |
| 16 | License, or (at your option) any later version. |
| 17 | |
| 18 | This program is distributed in the hope that it will be useful, but |
| 19 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 21 | General Public License for more details. |
| 22 | |
| 23 | You should have received a copy of the GNU General Public License |
| 24 | along with this program; if not, write to the Free Software |
| 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 26 | 02111-1307, USA. |
| 27 | |
| 28 | The GNU General Public License is contained in the file COPYING. |
| 29 | */ |
| 30 | |
nethercote | 4606320 | 2004-09-02 08:51:43 +0000 | [diff] [blame] | 31 | #include "tool.h" |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 32 | |
njn | 51d827b | 2005-05-09 01:02:08 +0000 | [diff] [blame^] | 33 | static void nl_post_clo_init(void) |
| 34 | { |
| 35 | } |
| 36 | |
| 37 | static IRBB* nl_instrument(IRBB* bb, VexGuestLayout* layout, |
| 38 | IRType gWordTy, IRType hWordTy) |
| 39 | { |
| 40 | return bb; |
| 41 | } |
| 42 | |
| 43 | static void nl_fini(Int exitcode) |
| 44 | { |
| 45 | } |
| 46 | |
| 47 | static void nl_pre_clo_init(void) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 48 | { |
njn | 810086f | 2002-11-14 12:42:47 +0000 | [diff] [blame] | 49 | VG_(details_name) ("Nulgrind"); |
| 50 | VG_(details_version) (NULL); |
| 51 | VG_(details_description) ("a binary JIT-compiler"); |
| 52 | VG_(details_copyright_author)( |
njn | 5361242 | 2005-03-12 16:22:54 +0000 | [diff] [blame] | 53 | "Copyright (C) 2002-2005, and GNU GPL'd, by Nicholas Nethercote."); |
nethercote | 421281e | 2003-11-20 16:20:55 +0000 | [diff] [blame] | 54 | VG_(details_bug_reports_to) (VG_BUGS_TO); |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 55 | |
njn | 51d827b | 2005-05-09 01:02:08 +0000 | [diff] [blame^] | 56 | VG_(basic_tool_funcs) (nl_post_clo_init, |
| 57 | nl_instrument, |
| 58 | nl_fini); |
njn | 8a97c6d | 2005-03-31 04:37:24 +0000 | [diff] [blame] | 59 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 60 | /* No needs, no core events to track */ |
| 61 | } |
| 62 | |
njn | 51d827b | 2005-05-09 01:02:08 +0000 | [diff] [blame^] | 63 | VG_DETERMINE_INTERFACE_VERSION(nl_pre_clo_init, 0) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 64 | |
| 65 | /*--------------------------------------------------------------------*/ |
nethercote | 3da4a8c | 2004-08-23 14:10:36 +0000 | [diff] [blame] | 66 | /*--- end ---*/ |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 67 | /*--------------------------------------------------------------------*/ |