diff options
author | 2010-07-06 00:52:36 +0000 | |
---|---|---|
committer | 2010-07-06 00:52:36 +0000 | |
commit | 5d21c672af07fa461ae6e0e989d2a866aff509b0 (patch) | |
tree | c0762c8e0af859079898f6442488d8f929e8e5d8 /src/emu/debug/dvdisasm.c | |
parent | 995097894f775112942bbe13549c9ef8ab6ef3e4 (diff) |
Moved debugging structure away from CPUs only and attached to all
devices. Debugger now creates one for each device. C++-ified most
debugger operations to hang off the debugging class, and updated
most callers. This still needs a little cleanup, but it fixes most
issues introduced when the CPUs were moved to their own devices.
Got rid of cpu_count, cpu_first, cpu_next, etc. as they were badly
broken. Also removed cpu_is_executing, cpu_is_suspended,
cpu_get_local_time, and cpu_abort_timeslice.
Some minor name changes:
state_value() -> state()
state_set_value() -> set_state()
Diffstat (limited to 'src/emu/debug/dvdisasm.c')
-rw-r--r-- | src/emu/debug/dvdisasm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/emu/debug/dvdisasm.c b/src/emu/debug/dvdisasm.c index 3a22f0ba9b5..d52020603f5 100644 --- a/src/emu/debug/dvdisasm.c +++ b/src/emu/debug/dvdisasm.c @@ -157,7 +157,7 @@ void debug_view_disasm::view_notify(debug_view_notification type) adjust_visible_y_for_cursor(); else if (type == VIEW_NOTIFY_SOURCE_CHANGED) - m_expression.set_context(debug_cpu_get_symtable(&downcast<const debug_view_disasm_source *>(m_source)->device())); + m_expression.set_context(downcast<const debug_view_disasm_source *>(m_source)->device().debug()->symtable()); } @@ -578,9 +578,8 @@ recompute: // if we're on a line with a breakpoint, tag it changed else { - const cpu_debug_data *cpuinfo = cpu_get_debug_data(&source.m_device); - for (debug_cpu_breakpoint *bp = cpuinfo->bplist; bp != NULL; bp = bp->next) - if (m_byteaddress[effrow] == (memory_address_to_byte(source.m_space, bp->address) & source.m_space->logbytemask)) + for (debug_cpu_breakpoint *bp = source.m_device.debug()->breakpoint_first(); bp != NULL; bp = bp->next()) + if (m_byteaddress[effrow] == (memory_address_to_byte(source.m_space, bp->address()) & source.m_space->logbytemask)) attrib = DCA_CHANGED; } |