Previous 15994 Revisions Next

r14190 Thursday 26th January, 2012 at 09:32:00 UTC by Olivier Galibert
debug: Don't free device_debug->m_trace from a notifier because the object is already blown by then. [O. Galibert]
[src/emu/debug]debugcmd.c debugcpu.c

src/emu/debug/debugcpu.c
r14189r14190
16741674   memset(m_pc_history, 0, sizeof(m_pc_history));
16751675   memset(m_wplist, 0, sizeof(m_wplist));
16761676
1677   m_comment_change = 0;
1678
16771679   // find out which interfaces we have to work with
16781680   device.interface(m_exec);
16791681   device.interface(m_memory);
r14189r14190
17261728
17271729device_debug::~device_debug()
17281730{
1731   auto_free(m_device.machine(), m_trace);
1732
17291733   // free breakpoints and watchpoints
17301734   breakpoint_clear_all();
17311735   watchpoint_clear_all();
src/emu/debug/debugcmd.c
r14189r14190
390390
391391static void debug_command_exit(running_machine &machine)
392392{
393   /* turn off all traces */
394   device_iterator iter(machine.root_device());
395   for (device_t *device = iter.first(); device != NULL; device = iter.next())
396      device->debug()->trace(NULL, 0, NULL);
397
398393   if (cheat.length)
399394      auto_free(machine, cheat.cheatmap);
400395}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team