-
Notifications
You must be signed in to change notification settings - Fork 8
/
debug_option.c
88 lines (80 loc) · 3.29 KB
/
debug_option.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*$T debug_option.c GC 1.136 03/09/02 17:36:09 */
/*$6
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Global variables representing flags for switching on/off debugger output
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
/*
* 1964 Copyright (C) 1999-2002 Joel Middendorf, <[email protected]> This
* program is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version. This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details. You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. To contact the
* authors: email: [email protected], [email protected]
*/
#include "debug_option.h"
#ifdef DEBUG_COMMON
struct DEBUGOPTIONS debugoptions;
/*
=======================================================================================================================
=======================================================================================================================
*/
void init_debug_options(void)
{
debugoptions.debug_io = 0;
debugoptions.debug_io_vi = 0;
debugoptions.debug_io_sp = 0;
debugoptions.debug_io_pi = 0;
debugoptions.debug_io_ai = 0;
debugoptions.debug_io_mi = 0;
debugoptions.debug_io_si = 0;
debugoptions.debug_io_ri = 0;
debugoptions.debug_io_dp = 0;
debugoptions.debug_io_dps = 0;
debugoptions.debug_io_rdram = 0;
debugoptions.debug_audio = 0;
debugoptions.debug_trap = 1;
debugoptions.debug_si_controller = 1;
debugoptions.debug_compare_interrupt = 0;
debugoptions.debug_cpu_counter = 0;
debugoptions.debug_sp_task = 1;
debugoptions.debug_si_task = 0;
debugoptions.debug_sp_dma = 0;
debugoptions.debug_si_dma = 0;
debugoptions.debug_pi_dma = 1;
debugoptions.debug_si_mempak = 1;
debugoptions.debug_dump_mempak = 0;
debugoptions.debug_tlb = 1;
debugoptions.debug_tlb_detail = 0;
debugoptions.debug_tlb_extra = 0;
debugoptions.debug_si_eeprom = 1;
debugoptions.debug_vi_interrupt = 0;
debugoptions.debug_ai_interrupt = 0;
debugoptions.debug_si_interrupt = 0;
debugoptions.debug_pi_interrupt = 0;
debugoptions.debug_interrupt = 0;
debugoptions.debug_sram = 1;
debugoptions.debug_dyna_compiler = 0;
debugoptions.debug_dyna_execution = 0;
debugoptions.debug_dyna_log = 0;
debugoptions.debug_64bit_fpu = 0;
debugoptions.debug_cache = 0;
debugoptions.debug_dyna_mod_code = 0;
debugoptions.debug_protect_memory = 0;
debugoptions.debug_exception_services = 1;
}
#endif
#ifdef ENABLE_OPCODE_DEBUGGER
int debug_opcode = 1;
#else
int debug_opcode = 0;
#endif
int debug_opcode_block = 0;
int debug_dirty_only = 1;
int debug_annoying_messages = 0;
char tracemessage[256]; /* message buffer to display message into debug box */