summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcmd.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-11-08 09:20:43 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-11-08 09:20:43 +0000
commit2ba1a992834e8b50712f6dfbe87da3b7beb1ba05 (patch)
tree8281f706ae83c8adcefda66dcdfab9b1b457f50e /src/emu/debug/debugcmd.c
parente8ec5637ac26e2129abd0607818fc68e3148d30e (diff)
Added macros for all CPU callbacks to ease future changes.
Updated all CPU cores to use them.
Diffstat (limited to 'src/emu/debug/debugcmd.c')
-rw-r--r--src/emu/debug/debugcmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c
index 4555b40ab63..3e572752c0d 100644
--- a/src/emu/debug/debugcmd.c
+++ b/src/emu/debug/debugcmd.c
@@ -247,10 +247,10 @@ void debug_command_init(running_machine *machine)
/* ask all the CPUs if they would like to register functions or symbols */
for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++)
{
- void (*setup_commands)(void);
- setup_commands = cpunum_get_info_fct(cpunum, CPUINFO_PTR_DEBUG_SETUP_COMMANDS);
- if (setup_commands)
- setup_commands();
+ cpu_debug_init_func debug_init;
+ debug_init = cpunum_get_info_fct(cpunum, CPUINFO_PTR_DEBUG_INIT);
+ if (debug_init != NULL)
+ (*debug_init)();
}
add_exit_callback(machine, debug_command_exit);