blob: 16f4a35cc9e35605db12fb86b6c290c71243288d [file] [log] [blame]
sewardj32824022005-05-17 13:45:04 +00001
2/*--------------------------------------------------------------------*/
3/*--- Command line options. ---*/
4/*--- m_options.c ---*/
5/*--------------------------------------------------------------------*/
6
7/*
8 This file is part of Valgrind, a dynamic binary instrumentation
9 framework.
10
11 Copyright (C) 2000-2005 Nicholas Nethercote
12 njn@valgrind.org
13
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License as
16 published by the Free Software Foundation; either version 2 of the
17 License, or (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 General Public License for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
27 02111-1307, USA.
28
29 The GNU General Public License is contained in the file COPYING.
30*/
31
njnc7561b92005-06-19 01:24:32 +000032#include "pub_core_basics.h"
njna3506d32005-05-18 04:36:01 +000033#include "pub_core_options.h"
sewardj32824022005-05-17 13:45:04 +000034
njna3506d32005-05-18 04:36:01 +000035// See pub_{core,tool}_options.h for explanations of all these.
36
37
38/* Define, and set defaults. */
39VexControl VG_(clo_vex_control);
40Bool VG_(clo_error_limit) = True;
41Bool VG_(clo_db_attach) = False;
42Char* VG_(clo_db_command) = GDB_PATH " -nw %f %p";
43Int VG_(clo_gen_suppressions) = 0;
44Int VG_(clo_sanity_level) = 1;
45Int VG_(clo_verbosity) = 1;
sewardj71bc3cb2005-05-19 00:25:45 +000046Bool VG_(clo_xml) = False;
njna3506d32005-05-18 04:36:01 +000047Bool VG_(clo_demangle) = True;
48Bool VG_(clo_trace_children) = False;
49Int VG_(clo_log_fd) = 2;
50Char* VG_(clo_log_name) = NULL;
51Bool VG_(clo_time_stamp) = False;
52Int VG_(clo_input_fd) = 0; /* stdin */
53Int VG_(clo_n_suppressions) = 0;
54Char* VG_(clo_suppressions)[VG_CLO_MAX_SFILES];
55Bool VG_(clo_profile) = False;
56UChar VG_(clo_trace_flags) = 0; // 00000000b
57UChar VG_(clo_profile_flags) = 0; // 00000000b
58Int VG_(clo_trace_notbelow) = 0;
59Bool VG_(clo_trace_syscalls) = False;
60Bool VG_(clo_trace_signals) = False;
61Bool VG_(clo_trace_symtab) = False;
62Bool VG_(clo_trace_cfi) = False;
63Bool VG_(clo_trace_redir) = False;
64Bool VG_(clo_trace_sched) = False;
65Bool VG_(clo_trace_pthreads) = False;
66Int VG_(clo_dump_error) = 0;
67Int VG_(clo_backtrace_size) = 12;
68Char* VG_(clo_weird_hacks) = NULL;
69Bool VG_(clo_run_libc_freeres) = True;
70Bool VG_(clo_track_fds) = False;
71Bool VG_(clo_show_below_main)= False;
72Bool VG_(clo_pointercheck) = True;
73Bool VG_(clo_support_elan3) = False;
74Bool VG_(clo_branchpred) = False;
75Bool VG_(clo_model_pthreads) = False;
76Bool VG_(clo_show_emwarns) = False;
77Int VG_(clo_max_stackframe) = 2000000;
78Bool VG_(clo_wait_for_gdb) = False;
sewardj26412bd2005-07-07 10:05:05 +000079VgSmc VG_(clo_smc_support) = Vg_SmcStack;
80
sewardj32824022005-05-17 13:45:04 +000081
82/*--------------------------------------------------------------------*/
83/*--- end m_options.c ---*/
84/*--------------------------------------------------------------------*/