sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 1 | |
| 2 | /*---------------------------------------------------------------*/ |
sewardj | 752f906 | 2010-05-03 21:38:49 +0000 | [diff] [blame] | 3 | /*--- begin main_globals.h ---*/ |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 4 | /*---------------------------------------------------------------*/ |
| 5 | |
sewardj | f8ed9d8 | 2004-11-12 17:40:23 +0000 | [diff] [blame] | 6 | /* |
sewardj | 752f906 | 2010-05-03 21:38:49 +0000 | [diff] [blame] | 7 | This file is part of Valgrind, a dynamic binary instrumentation |
| 8 | framework. |
sewardj | f8ed9d8 | 2004-11-12 17:40:23 +0000 | [diff] [blame] | 9 | |
Elliott Hughes | ed39800 | 2017-06-21 14:41:24 -0700 | [diff] [blame^] | 10 | Copyright (C) 2004-2017 OpenWorks LLP |
sewardj | 752f906 | 2010-05-03 21:38:49 +0000 | [diff] [blame] | 11 | info@open-works.net |
sewardj | f8ed9d8 | 2004-11-12 17:40:23 +0000 | [diff] [blame] | 12 | |
sewardj | 752f906 | 2010-05-03 21:38:49 +0000 | [diff] [blame] | 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. |
sewardj | f8ed9d8 | 2004-11-12 17:40:23 +0000 | [diff] [blame] | 17 | |
sewardj | 752f906 | 2010-05-03 21:38:49 +0000 | [diff] [blame] | 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., 51 Franklin Street, Fifth Floor, Boston, MA |
sewardj | 7bd6ffe | 2005-08-03 16:07:36 +0000 | [diff] [blame] | 26 | 02110-1301, USA. |
| 27 | |
sewardj | 752f906 | 2010-05-03 21:38:49 +0000 | [diff] [blame] | 28 | The GNU General Public License is contained in the file COPYING. |
sewardj | f8ed9d8 | 2004-11-12 17:40:23 +0000 | [diff] [blame] | 29 | |
| 30 | Neither the names of the U.S. Department of Energy nor the |
| 31 | University of California nor the names of its contributors may be |
| 32 | used to endorse or promote products derived from this software |
| 33 | without prior written permission. |
sewardj | f8ed9d8 | 2004-11-12 17:40:23 +0000 | [diff] [blame] | 34 | */ |
| 35 | |
sewardj | cef7d3e | 2009-07-02 12:21:59 +0000 | [diff] [blame] | 36 | #ifndef __VEX_MAIN_GLOBALS_H |
| 37 | #define __VEX_MAIN_GLOBALS_H |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 38 | |
sewardj | 887a11a | 2004-07-05 17:26:47 +0000 | [diff] [blame] | 39 | #include "libvex_basictypes.h" |
sewardj | 0861374 | 2004-10-25 13:01:45 +0000 | [diff] [blame] | 40 | #include "libvex.h" |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 41 | |
| 42 | |
sewardj | 887a11a | 2004-07-05 17:26:47 +0000 | [diff] [blame] | 43 | /* Global settings for the VEX library. These are the |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 44 | only library-wide globals. */ |
| 45 | |
| 46 | /* Are we started yet? */ |
| 47 | extern Bool vex_initdone; |
| 48 | |
| 49 | /* failure exit function */ |
sewardj | 2b51587 | 2004-07-05 20:50:45 +0000 | [diff] [blame] | 50 | __attribute__ ((noreturn)) |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 51 | extern void (*vex_failure_exit) ( void ); |
| 52 | |
| 53 | /* logging output function */ |
florian | 04fc6b1 | 2014-12-29 20:22:26 +0000 | [diff] [blame] | 54 | extern void (*vex_log_bytes) ( const HChar*, SizeT nbytes ); |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 55 | |
| 56 | /* debug paranoia level */ |
| 57 | extern Int vex_debuglevel; |
| 58 | |
sewardj | f48ac19 | 2004-10-29 00:41:29 +0000 | [diff] [blame] | 59 | /* trace flags */ |
| 60 | extern Int vex_traceflags; |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 61 | |
sewardj | 0861374 | 2004-10-25 13:01:45 +0000 | [diff] [blame] | 62 | /* Optimiser/front-end control */ |
| 63 | extern VexControl vex_control; |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 64 | |
| 65 | |
sewardj | f48ac19 | 2004-10-29 00:41:29 +0000 | [diff] [blame] | 66 | /* vex_traceflags values */ |
| 67 | #define VEX_TRACE_FE (1 << 7) /* show conversion into IR */ |
| 68 | #define VEX_TRACE_OPT1 (1 << 6) /* show after initial opt */ |
| 69 | #define VEX_TRACE_INST (1 << 5) /* show after instrumentation */ |
| 70 | #define VEX_TRACE_OPT2 (1 << 4) /* show after second opt */ |
| 71 | #define VEX_TRACE_TREES (1 << 3) /* show after tree building */ |
| 72 | #define VEX_TRACE_VCODE (1 << 2) /* show selected insns */ |
| 73 | #define VEX_TRACE_RCODE (1 << 1) /* show after reg-alloc */ |
| 74 | #define VEX_TRACE_ASM (1 << 0) /* show final assembly */ |
| 75 | |
| 76 | |
sewardj | cef7d3e | 2009-07-02 12:21:59 +0000 | [diff] [blame] | 77 | #endif /* ndef __VEX_MAIN_GLOBALS_H */ |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 78 | |
| 79 | /*---------------------------------------------------------------*/ |
sewardj | cef7d3e | 2009-07-02 12:21:59 +0000 | [diff] [blame] | 80 | /*--- end main_globals.h ---*/ |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 81 | /*---------------------------------------------------------------*/ |