summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcpu.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-03-01 18:57:06 +1100
committer Vas Crabb <vas@vastheman.com>2016-03-01 18:57:06 +1100
commit9224c862b2c4c42b375fd58b7d99077439cbe635 (patch)
tree41e14e6fd25a9d4bf784dc5b70fc999d17aa70ba /src/emu/debug/debugcpu.cpp
parent529f4dd3418132b8faaa598e31df166abb536270 (diff)
Move more things to type-safe printf
Diffstat (limited to 'src/emu/debug/debugcpu.cpp')
-rw-r--r--src/emu/debug/debugcpu.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp
index 4bcb66588a9..2b8595b3c30 100644
--- a/src/emu/debug/debugcpu.cpp
+++ b/src/emu/debug/debugcpu.cpp
@@ -2231,10 +2231,9 @@ void device_debug::go_next_device()
// debugger on the next instruction
//-------------------------------------------------
-void device_debug::halt_on_next_instruction(const char *fmt, ...)
+void device_debug::halt_on_next_instruction_impl(util::format_argument_pack<std::ostream> &&args)
{
debugcpu_private *global = m_device.machine().debugcpu_data;
- va_list arg;
assert(m_exec != nullptr);
@@ -2243,9 +2242,7 @@ void device_debug::halt_on_next_instruction(const char *fmt, ...)
return;
// output the message to the console
- va_start(arg, fmt);
- debug_console_vprintf(m_device.machine(), fmt, arg);
- va_end(arg);
+ debug_console_vprintf(m_device.machine(), std::move(args));
// if we are live, stop now, otherwise note that we want to break there
if (&m_device == global->livecpu)