summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcpu.h
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.h
parent529f4dd3418132b8faaa598e31df166abb536270 (diff)
Move more things to type-safe printf
Diffstat (limited to 'src/emu/debug/debugcpu.h')
-rw-r--r--src/emu/debug/debugcpu.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/emu/debug/debugcpu.h b/src/emu/debug/debugcpu.h
index 754411cb3f0..5222c1c6ab5 100644
--- a/src/emu/debug/debugcpu.h
+++ b/src/emu/debug/debugcpu.h
@@ -209,7 +209,11 @@ public:
void go_exception(int exception);
void go_milliseconds(UINT64 milliseconds);
void go_next_device();
- void halt_on_next_instruction(const char *fmt, ...) ATTR_PRINTF(2,3);
+ template <typename Format, typename... Params>
+ void halt_on_next_instruction(Format &&fmt, Params &&... args)
+ {
+ halt_on_next_instruction_impl(util::make_format_argument_pack(std::forward<Format>(fmt), std::forward<Params>(args)...));
+ }
// breakpoints
breakpoint *breakpoint_first() const { return m_bplist; }
@@ -275,6 +279,8 @@ public:
static const int HISTORY_SIZE = 256;
private:
+ void halt_on_next_instruction_impl(util::format_argument_pack<std::ostream> &&args);
+
// internal helpers
void compute_debug_flags();
void prepare_for_step_overout(offs_t pc);