2 /*---------------------------------------------------------------*/
3 /*--- begin main_globals.c ---*/
4 /*---------------------------------------------------------------*/
7 This file is part of Valgrind, a dynamic binary instrumentation
10 Copyright (C) 2004-2017 OpenWorks LLP
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.
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.
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
28 The GNU General Public License is contained in the file COPYING.
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.
36 #include "libvex_basictypes.h"
38 #include "main_util.h"
39 #include "main_globals.h"
42 /* Global settings for the VEX library. These are the
43 only library-wide globals. */
45 /* Are we started yet? */
46 Bool vex_initdone
= False
;
48 /* failure exit function */
49 __attribute__ ((noreturn
))
50 void (*vex_failure_exit
) ( void ) = NULL
;
52 /* logging output function */
53 void (*vex_log_bytes
) ( const HChar
*, SizeT nbytes
) = NULL
;
55 /* debug paranoia level */
56 Int vex_debuglevel
= 0;
59 Int vex_traceflags
= 0;
61 /* Max # guest insns per bb */
62 VexControl vex_control
= { 0,0,False
,0,0,0 };
66 /*---------------------------------------------------------------*/
67 /*--- end main_globals.c ---*/
68 /*---------------------------------------------------------------*/