summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcpu.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-06-17 13:39:42 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-06-17 13:39:42 +0200
commit402ad8ef85bb643b45699714475c026488cd6470 (patch)
treeb5c37258e5b56e22ace0f776fd6c4c486b69dbab /src/emu/debug/debugcpu.cpp
parentd46955ca651445cbd83630d6852c3a2c3d9c0849 (diff)
small debugger cleanup (nw)
Diffstat (limited to 'src/emu/debug/debugcpu.cpp')
-rw-r--r--src/emu/debug/debugcpu.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp
index c0ae97711b6..d9a63868899 100644
--- a/src/emu/debug/debugcpu.cpp
+++ b/src/emu/debug/debugcpu.cpp
@@ -55,7 +55,7 @@ debugger_cpu::debugger_cpu(running_machine &machine)
m_tempvar = make_unique_clear<UINT64[]>(NUM_TEMP_VARIABLES);
/* create a global symbol table */
- m_symtable = global_alloc(symbol_table(&m_machine));
+ m_symtable = std::make_unique<symbol_table>(&m_machine);
// configure our base memory accessors
configure_memory(*m_symtable);
@@ -84,8 +84,6 @@ debugger_cpu::debugger_cpu(running_machine &machine)
/* add callback for breaking on VBLANK */
if (m_machine.first_screen() != nullptr)
m_machine.first_screen()->register_vblank_callback(vblank_state_delegate(FUNC(debugger_cpu::on_vblank), this));
-
- machine.add_notifier(MACHINE_NOTIFY_EXIT, machine_notify_delegate(FUNC(debugger_cpu::exit), this));
}
void debugger_cpu::configure_memory(symbol_table &table)
@@ -163,7 +161,7 @@ bool debugger_cpu::is_stopped()
symbol_table* debugger_cpu::get_global_symtable()
{
- return m_symtable;
+ return m_symtable.get();
}
@@ -957,16 +955,6 @@ UINT64 debugger_cpu::read_opcode(address_space &space, offs_t address, int size)
***************************************************************************/
/*-------------------------------------------------
- exit - free all memory
--------------------------------------------------*/
-
-void debugger_cpu::exit()
-{
- global_free(m_symtable);
-}
-
-
-/*-------------------------------------------------
on_vblank - called when a VBLANK hits
-------------------------------------------------*/