summaryrefslogtreecommitdiffstats
path: root/src/emu/debug/debugcmd.cpp
diff options
context:
space:
mode:
author Patrick Mackinlay <pmackinlay@hotmail.com>2018-06-23 22:41:01 +0700
committer Olivier Galibert <galibert@pobox.com>2018-06-23 17:41:01 +0200
commita714997f439ed763fff423b95ea3243ea1245f61 (patch)
treef81aecbce27862fe983b26672f4fbb2495963c9b /src/emu/debug/debugcmd.cpp
parente7c798da50b6e4ccdbcb97f0c3e2b46321186706 (diff)
debugger: add command for go_exception (#3682)
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r--src/emu/debug/debugcmd.cpp17
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> &params)
+{
+ 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