diff options
author | 2018-06-23 22:41:01 +0700 | |
---|---|---|
committer | 2018-06-23 17:41:01 +0200 | |
commit | a714997f439ed763fff423b95ea3243ea1245f61 (patch) | |
tree | f81aecbce27862fe983b26672f4fbb2495963c9b /src/emu/debug/debugcmd.cpp | |
parent | e7c798da50b6e4ccdbcb97f0c3e2b46321186706 (diff) |
debugger: add command for go_exception (#3682)
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r-- | src/emu/debug/debugcmd.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index c0ef82c8d36..cc3b8d4c481 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -156,6 +156,8 @@ debugger_commands::debugger_commands(running_machine& machine, debugger_cpu& cpu m_console.register_command("gv", CMDFLAG_NONE, 0, 0, 0, std::bind(&debugger_commands::execute_go_vblank, this, _1, _2)); m_console.register_command("gint", CMDFLAG_NONE, 0, 0, 1, std::bind(&debugger_commands::execute_go_interrupt, this, _1, _2)); m_console.register_command("gi", CMDFLAG_NONE, 0, 0, 1, std::bind(&debugger_commands::execute_go_interrupt, this, _1, _2)); + m_console.register_command("gex", CMDFLAG_NONE, 0, 0, 1, std::bind(&debugger_commands::execute_go_exception, this, _1, _2)); + m_console.register_command("ge", CMDFLAG_NONE, 0, 0, 1, std::bind(&debugger_commands::execute_go_exception, this, _1, _2)); m_console.register_command("gtime", CMDFLAG_NONE, 0, 0, 1, std::bind(&debugger_commands::execute_go_time, this, _1, _2)); m_console.register_command("gt", CMDFLAG_NONE, 0, 0, 1, std::bind(&debugger_commands::execute_go_time, this, _1, _2)); m_console.register_command("next", CMDFLAG_NONE, 0, 0, 0, std::bind(&debugger_commands::execute_next, this, _1, _2)); @@ -865,6 +867,21 @@ void debugger_commands::execute_go_interrupt(int ref, const std::vector<std::str m_cpu.get_visible_cpu()->debug()->go_interrupt(irqline); } +/*------------------------------------------------- + execute_go_exception - execute the goex command +-------------------------------------------------*/ + +void debugger_commands::execute_go_exception(int ref, const std::vector<std::string> ¶ms) +{ + u64 exception = -1; + + /* if we have a parameter, use it instead */ + if (params.size() > 0 && !validate_number_parameter(params[0], exception)) + return; + + m_cpu.get_visible_cpu()->debug()->go_exception(exception); +} + /*------------------------------------------------- execute_go_time - execute the gtime command |