blob: 91431d31631f5ebf839b592e6c627569aa6da4ad (
plain) (
blame)
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
|
// license:BSD-3-Clause
// copyright-holders:Nicola Salmoria, Aaron Giles
/****************************************************************************
debugger.h
General debugging interfaces
****************************************************************************/
#ifndef MAME_EMU_DEBUGGER_H
#define MAME_EMU_DEBUGGER_H
#pragma once
// ======================> debugger_manager
class debugger_manager
{
public:
// construction/destruction
debugger_manager(running_machine &machine);
~debugger_manager();
// break into the debugger
void debug_break();
bool within_instruction_hook();
// redraw the current video display
void refresh_display();
// getters
running_machine &machine() const { return m_machine; }
debugger_commands &commands() const { return *m_commands; }
debugger_cpu &cpu() const { return *m_cpu; }
debugger_console &console() const { return *m_console; }
private:
running_machine & m_machine;
std::unique_ptr<debugger_commands> m_commands;
std::unique_ptr<debugger_cpu> m_cpu;
std::unique_ptr<debugger_console> m_console;
};
/***************************************************************************
FUNCTION PROTOTYPES
***************************************************************************/
/* OSD can call this to safely flush all traces in the event of a crash */
void debugger_flush_all_traces_on_abnormal_exit();
/***************************************************************************
CPU CORE STATIC FUNCTIONS
***************************************************************************/
void debugger_instruction_hook(device_t *device, offs_t curpc);
void debugger_exception_hook(device_t *device, int exception);
/***************************************************************************
CPU EXECUTION SYSTEM STATIC FUNCTIONS
***************************************************************************/
void debugger_start_cpu_hook(device_t *device, const attotime &endtime);
void debugger_stop_cpu_hook(device_t *device);
void debugger_interrupt_hook(device_t *device, int irqline);
#endif // MAME_EMU_DEBUGGER_H
|