From 234ad468eb149060282b5d3a8c0d76e3570057a4 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Fri, 3 Mar 2017 19:41:46 -0500 Subject: Fixed a few more issues broken similarly to 'bpset' --- src/emu/debug/debugcmd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index 384da714f4e..796f2dd94d0 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -1302,11 +1302,11 @@ void debugger_commands::execute_wpset(int ref, const std::vector &p /* param 4 is the condition */ parsed_expression condition(&space->device().debug()->symtable()); - if (!debug_command_parameter_expression(params[3], condition)) + if (params.size() > 3 && !debug_command_parameter_expression(params[3], condition)) return; /* param 5 is the action */ - if (!debug_command_parameter_command(action = params[4].c_str())) + if (params.size() > 4 && !debug_command_parameter_command(action = params[4].c_str())) return; /* set the watchpoint */ @@ -1444,11 +1444,11 @@ void debugger_commands::execute_rpset(int ref, const std::vector &p /* param 1 is the condition */ parsed_expression condition(&cpu->debug()->symtable()); - if (!debug_command_parameter_expression(params[0], condition)) + if (params.size() > 0 && !debug_command_parameter_expression(params[0], condition)) return; /* param 2 is the action */ - if (!debug_command_parameter_command(action = params[1].c_str())) + if (params.size() > 1 && !debug_command_parameter_command(action = params[1].c_str())) return; /* set the breakpoint */ -- cgit v1.2.3