summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-01-26 10:28:50 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-01-26 10:28:50 +0000
commit960b0edc7523f5266bf8469d260a28ca761e127a (patch)
tree1cd3813e904b511483f4ddcf7ccfbc20f97b7701 /src/emu/debug
parent7c58c635f040320ac82576687871013d015b14b8 (diff)
Sync with MESS, including OG's fix for exiting with debugger active (no whatsnew)
Diffstat (limited to 'src/emu/debug')
-rw-r--r--src/emu/debug/debugcmd.c5
-rw-r--r--src/emu/debug/debugcpu.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c
index 4711418c06d..5bba55c55d3 100644
--- a/src/emu/debug/debugcmd.c
+++ b/src/emu/debug/debugcmd.c
@@ -390,11 +390,6 @@ void debug_command_init(running_machine &machine)
static void debug_command_exit(running_machine &machine)
{
- /* turn off all traces */
- device_iterator iter(machine.root_device());
- for (device_t *device = iter.first(); device != NULL; device = iter.next())
- device->debug()->trace(NULL, 0, NULL);
-
if (cheat.length)
auto_free(machine, cheat.cheatmap);
}
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c
index 9e46112abf6..e87eaec0c02 100644
--- a/src/emu/debug/debugcpu.c
+++ b/src/emu/debug/debugcpu.c
@@ -1674,6 +1674,8 @@ device_debug::device_debug(device_t &device)
memset(m_pc_history, 0, sizeof(m_pc_history));
memset(m_wplist, 0, sizeof(m_wplist));
+ m_comment_change = 0;
+
// find out which interfaces we have to work with
device.interface(m_exec);
device.interface(m_memory);
@@ -1726,6 +1728,8 @@ 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();