summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-10-13 06:20:10 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-10-13 06:20:10 +0000
commit3beb0ec2462e3251000e4c479bbaeaf775cb44d2 (patch)
tree8ede7cad7423199a79f6abc18df352d564d49384 /src/emu/debug
parentf391c5f8d797a190a789ab3bc35e0e3fbce5df29 (diff)
Converted render.c objects into C++ objects. Updated all callers.
Diffstat (limited to 'src/emu/debug')
-rw-r--r--src/emu/debug/debugcmd.c8
-rw-r--r--src/emu/debug/debugcon.c10
-rw-r--r--src/emu/debug/debugcpu.c14
3 files changed, 16 insertions, 16 deletions
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c
index e7deb65a964..dc4e644b6b4 100644
--- a/src/emu/debug/debugcmd.c
+++ b/src/emu/debug/debugcmd.c
@@ -1114,7 +1114,7 @@ static void execute_comment(running_machine *machine, int ref, int params, const
/* Now try adding the comment */
cpu->debug()->comment_add(address, param[1], 0x00ff0000);
- cpu->machine->m_debug_view->update_all(DVT_DISASSEMBLY);
+ cpu->machine->debug_view().update_all(DVT_DISASSEMBLY);
}
@@ -1138,7 +1138,7 @@ static void execute_comment_del(running_machine *machine, int ref, int params, c
/* If it's a number, it must be an address */
/* The bankoff and cbn will be pulled from what's currently active */
cpu->debug()->comment_remove(address);
- cpu->machine->m_debug_view->update_all(DVT_DISASSEMBLY);
+ cpu->machine->debug_view().update_all(DVT_DISASSEMBLY);
}
@@ -2427,9 +2427,9 @@ static void execute_snap(running_machine *machine, int ref, int params, const ch
const char *filename = param[0];
int scrnum = (params > 1) ? atoi(param[1]) : 0;
- device_t *screen = machine->m_devicelist.find(SCREEN, scrnum);
+ screen_device *screen = downcast<screen_device *>(machine->m_devicelist.find(SCREEN, scrnum));
- if ((screen == NULL) || !render_is_live_screen(screen))
+ if ((screen == NULL) || !machine->render().is_live(*screen))
{
debug_console_printf(machine, "Invalid screen number '%d'\n", scrnum);
return;
diff --git a/src/emu/debug/debugcon.c b/src/emu/debug/debugcon.c
index 3b101ac8cf1..78641ed6797 100644
--- a/src/emu/debug/debugcon.c
+++ b/src/emu/debug/debugcon.c
@@ -382,7 +382,7 @@ CMDERR debug_console_execute_command(running_machine *machine, const char *comma
/* update all views */
if (echo)
{
- machine->m_debug_view->update_all();
+ machine->debug_view().update_all();
debugger_refresh_display(machine);
}
return result;
@@ -481,7 +481,7 @@ void CLIB_DECL debug_console_printf(running_machine *machine, const char *format
text_buffer_print(console_textbuf, buffer);
/* force an update of any console views */
- machine->m_debug_view->update_all(DVT_CONSOLE);
+ machine->debug_view().update_all(DVT_CONSOLE);
}
@@ -499,7 +499,7 @@ void CLIB_DECL debug_console_vprintf(running_machine *machine, const char *forma
text_buffer_print(console_textbuf, buffer);
/* force an update of any console views */
- machine->m_debug_view->update_all(DVT_CONSOLE);
+ machine->debug_view().update_all(DVT_CONSOLE);
}
@@ -521,7 +521,7 @@ void CLIB_DECL debug_console_printf_wrap(running_machine *machine, int wrapcol,
text_buffer_print_wrap(console_textbuf, buffer, wrapcol);
/* force an update of any console views */
- machine->m_debug_view->update_all(DVT_CONSOLE);
+ machine->debug_view().update_all(DVT_CONSOLE);
}
@@ -547,7 +547,7 @@ void debug_errorlog_write_line(running_machine &machine, const char *line)
text_buffer_print(errorlog_textbuf, line);
/* force an update of any log views */
- machine.m_debug_view->update_all(DVT_LOG);
+ machine.debug_view().update_all(DVT_LOG);
}
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c
index 72abfa14ac6..4802085c9d0 100644
--- a/src/emu/debug/debugcpu.c
+++ b/src/emu/debug/debugcpu.c
@@ -1813,8 +1813,8 @@ void device_debug::start_hook(attotime endtime)
// check for periodic updates
if (&m_device == global->visiblecpu && osd_ticks() > global->last_periodic_update_time + osd_ticks_per_second()/4)
{
- m_device.machine->m_debug_view->update_all();
- m_device.machine->m_debug_view->flush_osd_updates();
+ m_device.machine->debug_view().update_all();
+ m_device.machine->debug_view().flush_osd_updates();
global->last_periodic_update_time = osd_ticks();
}
@@ -1949,8 +1949,8 @@ void device_debug::instruction_hook(offs_t curpc)
// update every 100 steps until we are within 200 of the end
else if ((m_flags & DEBUG_FLAG_STEPPING_OUT) == 0 && (m_stepsleft < 200 || m_stepsleft % 100 == 0))
{
- m_device.machine->m_debug_view->update_all();
- m_device.machine->m_debug_view->flush_osd_updates();
+ m_device.machine->debug_view().update_all();
+ m_device.machine->debug_view().flush_osd_updates();
debugger_refresh_display(m_device.machine);
}
}
@@ -1998,7 +1998,7 @@ void device_debug::instruction_hook(offs_t curpc)
global->visiblecpu = &m_device;
// update all views
- m_device.machine->m_debug_view->update_all();
+ m_device.machine->debug_view().update_all();
debugger_refresh_display(m_device.machine);
// wait for the debugger; during this time, disable sound output
@@ -2006,7 +2006,7 @@ void device_debug::instruction_hook(offs_t curpc)
while (global->execution_state == EXECUTION_STATE_STOPPED)
{
// flush any pending updates before waiting again
- m_device.machine->m_debug_view->flush_osd_updates();
+ m_device.machine->debug_view().flush_osd_updates();
// clear the memory modified flag and wait
global->memory_modified = false;
@@ -2019,7 +2019,7 @@ void device_debug::instruction_hook(offs_t curpc)
// if something modified memory, update the screen
if (global->memory_modified)
{
- m_device.machine->m_debug_view->update_all(DVT_DISASSEMBLY);
+ m_device.machine->debug_view().update_all(DVT_DISASSEMBLY);
debugger_refresh_display(m_device.machine);
}