summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcpu.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-21 16:01:14 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-21 16:01:14 +0100
commita55ab6d6159c3393cc66ee2bb5aeefcee855225d (patch)
treec30568eea65273a64983dc7bb6ccbe5d30ca73f5 /src/emu/debug/debugcpu.cpp
parent1fefd835ce03ff8ebb09a9af09e6da2300425b63 (diff)
some handmade changes (nw)
Diffstat (limited to 'src/emu/debug/debugcpu.cpp')
-rw-r--r--src/emu/debug/debugcpu.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp
index 3a95a823594..a075696b348 100644
--- a/src/emu/debug/debugcpu.cpp
+++ b/src/emu/debug/debugcpu.cpp
@@ -1690,8 +1690,6 @@ device_debug::device_debug(device_t &device)
device_debug::~device_debug()
{
- auto_free(m_device.machine(), m_trace);
-
// free breakpoints and watchpoints
breakpoint_clear_all();
watchpoint_clear_all();
@@ -2759,12 +2757,11 @@ UINT32 device_debug::compute_opcode_crc32(offs_t pc) const
void device_debug::trace(FILE *file, bool trace_over, const char *action)
{
// delete any existing tracers
- auto_free(m_device.machine(), m_trace);
m_trace = nullptr;
// if we have a new file, make a new tracer
if (file != nullptr)
- m_trace = auto_alloc(m_device.machine(), tracer(*this, *file, trace_over, action));
+ m_trace = std::make_unique<tracer>(*this, *file, trace_over, action);
}