blob: f30f7709c23d4a4e3805b7aa7a39c2362895187e [file] [log] [blame]
sewardj35421a32004-07-05 13:12:34 +00001
2/*---------------------------------------------------------------*/
sewardj752f9062010-05-03 21:38:49 +00003/*--- begin main_globals.c ---*/
sewardj35421a32004-07-05 13:12:34 +00004/*---------------------------------------------------------------*/
5
sewardjf8ed9d82004-11-12 17:40:23 +00006/*
sewardj752f9062010-05-03 21:38:49 +00007 This file is part of Valgrind, a dynamic binary instrumentation
8 framework.
sewardjf8ed9d82004-11-12 17:40:23 +00009
sewardj89ae8472013-10-18 14:12:58 +000010 Copyright (C) 2004-2013 OpenWorks LLP
sewardj752f9062010-05-03 21:38:49 +000011 info@open-works.net
sewardjf8ed9d82004-11-12 17:40:23 +000012
sewardj752f9062010-05-03 21:38:49 +000013 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.
sewardjf8ed9d82004-11-12 17:40:23 +000017
sewardj752f9062010-05-03 21:38:49 +000018 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
sewardj7bd6ffe2005-08-03 16:07:36 +000026 02110-1301, USA.
27
sewardj752f9062010-05-03 21:38:49 +000028 The GNU General Public License is contained in the file COPYING.
sewardjf8ed9d82004-11-12 17:40:23 +000029
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.
sewardjf8ed9d82004-11-12 17:40:23 +000034*/
35
sewardj887a11a2004-07-05 17:26:47 +000036#include "libvex_basictypes.h"
sewardj35421a32004-07-05 13:12:34 +000037
sewardjcef7d3e2009-07-02 12:21:59 +000038#include "main_util.h"
39#include "main_globals.h"
sewardj35421a32004-07-05 13:12:34 +000040
41
42/* Global settings for the VEX library. These are the
43 only library-wide globals. */
44
45/* Are we started yet? */
46Bool vex_initdone = False;
47
48/* failure exit function */
sewardj2b515872004-07-05 20:50:45 +000049__attribute__ ((noreturn))
sewardj35421a32004-07-05 13:12:34 +000050void (*vex_failure_exit) ( void ) = NULL;
51
52/* logging output function */
sewardj58277842005-02-07 03:11:17 +000053void (*vex_log_bytes) ( HChar*, Int nbytes ) = NULL;
sewardj35421a32004-07-05 13:12:34 +000054
55/* debug paranoia level */
56Int vex_debuglevel = 0;
57
sewardjf48ac192004-10-29 00:41:29 +000058/* trace flags */
59Int vex_traceflags = 0;
sewardj35421a32004-07-05 13:12:34 +000060
61/* Are we supporting valgrind checking? */
62Bool vex_valgrind_support = False;
63
64/* Max # guest insns per bb */
sewardj08613742004-10-25 13:01:45 +000065VexControl vex_control = { 0,0,False,0,0,0 };
sewardj35421a32004-07-05 13:12:34 +000066
67
68
69/*---------------------------------------------------------------*/
sewardjcef7d3e2009-07-02 12:21:59 +000070/*--- end main_globals.c ---*/
sewardj35421a32004-07-05 13:12:34 +000071/*---------------------------------------------------------------*/