blob: 95658eb8250f369d84ffef7d726aa6d66a503148 (
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
|
// 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();
#endif // MAME_EMU_DEBUGGER_H
|