| 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 |
| r14189 | r14190 | |
|---|---|---|
| 1674 | 1674 | memset(m_pc_history, 0, sizeof(m_pc_history)); |
| 1675 | 1675 | memset(m_wplist, 0, sizeof(m_wplist)); |
| 1676 | 1676 | |
| 1677 | m_comment_change = 0; | |
| 1678 | ||
| 1677 | 1679 | // find out which interfaces we have to work with |
| 1678 | 1680 | device.interface(m_exec); |
| 1679 | 1681 | device.interface(m_memory); |
| r14189 | r14190 | |
| 1726 | 1728 | |
| 1727 | 1729 | device_debug::~device_debug() |
| 1728 | 1730 | { |
| 1731 | auto_free(m_device.machine(), m_trace); | |
| 1732 | ||
| 1729 | 1733 | // free breakpoints and watchpoints |
| 1730 | 1734 | breakpoint_clear_all(); |
| 1731 | 1735 | watchpoint_clear_all(); |
| r14189 | r14190 | |
|---|---|---|
| 390 | 390 | |
| 391 | 391 | static void debug_command_exit(running_machine &machine) |
| 392 | 392 | { |
| 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 | ||
| 398 | 393 | if (cheat.length) |
| 399 | 394 | auto_free(machine, cheat.cheatmap); |
| 400 | 395 | } |
| Previous | 15994 Revisions | Next |