njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 1 | |
| 2 | /*--------------------------------------------------------------------*/ |
njn | 05a8917 | 2009-07-29 02:36:21 +0000 | [diff] [blame] | 3 | /*--- Nulgrind: The minimal Valgrind tool. nl_main.c ---*/ |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 4 | /*--------------------------------------------------------------------*/ |
| 5 | |
| 6 | /* |
njn | 05a8917 | 2009-07-29 02:36:21 +0000 | [diff] [blame] | 7 | This file is part of Nulgrind, the minimal Valgrind tool, |
| 8 | which does no instrumentation or analysis. |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 9 | |
sewardj | 0f157dd | 2013-10-18 14:27:36 +0000 | [diff] [blame] | 10 | Copyright (C) 2002-2013 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 | |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 31 | #include "pub_tool_basics.h" |
njn | 43b9a8a | 2005-05-10 04:37:01 +0000 | [diff] [blame] | 32 | #include "pub_tool_tooliface.h" |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 33 | |
njn | 51d827b | 2005-05-09 01:02:08 +0000 | [diff] [blame] | 34 | static void nl_post_clo_init(void) |
| 35 | { |
| 36 | } |
| 37 | |
sewardj | 4ba057c | 2005-10-18 12:04:18 +0000 | [diff] [blame] | 38 | static |
sewardj | 0b9d74a | 2006-12-24 02:24:11 +0000 | [diff] [blame] | 39 | IRSB* nl_instrument ( VgCallbackClosure* closure, |
| 40 | IRSB* bb, |
sewardj | 461df9c | 2006-01-17 02:06:39 +0000 | [diff] [blame] | 41 | VexGuestLayout* layout, |
| 42 | VexGuestExtents* vge, |
florian | ca503be | 2012-10-07 21:59:42 +0000 | [diff] [blame] | 43 | VexArchInfo* archinfo_host, |
sewardj | 461df9c | 2006-01-17 02:06:39 +0000 | [diff] [blame] | 44 | IRType gWordTy, IRType hWordTy ) |
njn | 51d827b | 2005-05-09 01:02:08 +0000 | [diff] [blame] | 45 | { |
| 46 | return bb; |
| 47 | } |
| 48 | |
| 49 | static void nl_fini(Int exitcode) |
| 50 | { |
| 51 | } |
| 52 | |
| 53 | static void nl_pre_clo_init(void) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 54 | { |
njn | 810086f | 2002-11-14 12:42:47 +0000 | [diff] [blame] | 55 | VG_(details_name) ("Nulgrind"); |
| 56 | VG_(details_version) (NULL); |
njn | 05a8917 | 2009-07-29 02:36:21 +0000 | [diff] [blame] | 57 | VG_(details_description) ("the minimal Valgrind tool"); |
njn | 810086f | 2002-11-14 12:42:47 +0000 | [diff] [blame] | 58 | VG_(details_copyright_author)( |
sewardj | 0f157dd | 2013-10-18 14:27:36 +0000 | [diff] [blame] | 59 | "Copyright (C) 2002-2013, and GNU GPL'd, by Nicholas Nethercote."); |
nethercote | 421281e | 2003-11-20 16:20:55 +0000 | [diff] [blame] | 60 | VG_(details_bug_reports_to) (VG_BUGS_TO); |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 61 | |
sewardj | 1e0fff6 | 2011-01-10 15:01:03 +0000 | [diff] [blame] | 62 | VG_(details_avg_translation_sizeB) ( 275 ); |
| 63 | |
njn | 51d827b | 2005-05-09 01:02:08 +0000 | [diff] [blame] | 64 | VG_(basic_tool_funcs) (nl_post_clo_init, |
| 65 | nl_instrument, |
| 66 | nl_fini); |
njn | 8a97c6d | 2005-03-31 04:37:24 +0000 | [diff] [blame] | 67 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 68 | /* No needs, no core events to track */ |
| 69 | } |
| 70 | |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 71 | VG_DETERMINE_INTERFACE_VERSION(nl_pre_clo_init) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 72 | |
| 73 | /*--------------------------------------------------------------------*/ |
nethercote | 3da4a8c | 2004-08-23 14:10:36 +0000 | [diff] [blame] | 74 | /*--- end ---*/ |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 75 | /*--------------------------------------------------------------------*/ |